ilo: unref old fence
authorRob Clark <robclark@freedesktop.org>
Wed, 8 Jul 2015 18:51:10 +0000 (14:51 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 10 Jul 2015 15:57:30 +0000 (11:57 -0400)
commit749dced4b363963b2230a18b0776fa92653116b8
treecb8e17b1819dc459e1af6f9b346cfa66a047fbea
parent7e0a26defe65dad7ffc8e7a95b5577be51feb2bc
ilo: 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: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_context.c