vc4: unref old fence
authorRob Clark <robclark@freedesktop.org>
Wed, 8 Jul 2015 18:51:46 +0000 (14:51 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 10 Jul 2015 15:57:30 +0000 (11:57 -0400)
commitab3ba21f979605b90b2fb44482138732b42514b0
tree0da36706959518da0ec22ac934b039cd43775256
parent749dced4b363963b2230a18b0776fa92653116b8
vc4: 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>
Acked-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_context.c