gallium/radeon: unify and simplify checking for an empty gfx IB
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Aug 2016 23:26:54 +0000 (01:26 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 25 Aug 2016 19:19:17 +0000 (21:19 +0200)
commitfe91ae06d3ecc2080b61a6bc35867653de0da418
tree75c65d7de7807da4a8826193477b1ee8c742cb7b
parente6673e7ac285e013ba25ce0e8c5bba691b1cdf3e
gallium/radeon: unify and simplify checking for an empty gfx IB

We can take advantage of the fact that multi_fence does the obvious thing
with NULL fences.

This fixes unflushed fences that can get stuck due to empty IBs.
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_hw_context.c