freedreno: allow fence_fd fences to be recycled
authorRob Clark <robdclark@chromium.org>
Tue, 4 Aug 2020 21:24:44 +0000 (14:24 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 19:05:29 +0000 (19:05 +0000)
commit141b295311aed28d64a850531490d2044f5b6a78
tree250f428555f361359252b91862cf06e7a5b5b23f
parent07a49bf59766b7c40d35608a98bd4a5796dcc2fe
freedreno: allow fence_fd fences to be recycled

This allows us to avoid a no-op flush if there has been no rendering,
but we hit pctx->flush(PIPE_FLUSH_FENCE_FD).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6177>
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_fence.c
src/gallium/drivers/freedreno/freedreno_fence.h