iris: Flush any current work in iris_fence_await before adding deps
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 15 Feb 2020 00:40:07 +0000 (16:40 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 19:00:02 +0000 (19:00 +0000)
commit07fb925ad82f2b61cbdd239956c16e752c64e05d
tree3d5417be00ba01d216eea0c8268fed7a7e40ac97
parent3dbde891118af0c64a16c729be5b551447aaae18
iris: Flush any current work in iris_fence_await before adding deps

Receiving a fence_server_sync (iris_fence_await) means that any future
work needs to wait for the fence.  But previous work doesn't need to.

So flush it now, to avoid delaying it arbitrarily.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3802>
src/gallium/drivers/iris/iris_fence.c