freedreno: unref old fence
authorRob Clark <robclark@freedesktop.org>
Wed, 8 Jul 2015 18:48:01 +0000 (14:48 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 10 Jul 2015 15:57:30 +0000 (11:57 -0400)
commit7e0a26defe65dad7ffc8e7a95b5577be51feb2bc
treee50d7aee7d781a4adf3fe0da71c542f632fd498e
parentf60354ee72fdee988fd604994e8b8c8d75fe78be
freedreno: unref old fence

Some, but not all, state trackers will explicitly unref (and set to
NULL) the previous *fence before calling pipe->flush().  So driver
should use fence_ref() which will unref the old fence if not NULL.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_context.c