zink: flush gfx/compute batches when the other pipeline needs resource sync
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 12 Aug 2020 21:00:09 +0000 (17:00 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Feb 2021 00:19:39 +0000 (00:19 +0000)
commitce6d08a0e76e1b5976695b3f2b3d7acfca731941
treeef144446807e698163f568e96bbd166dd80571b6
parentdac99517ff2f6dcc8d5057d79385bb2e967945f8
zink: flush gfx/compute batches when the other pipeline needs resource sync

if compute or gfx use a resource which is already in use by the other pipeline,
we need to ensure tha we flush that pipeline now in order to have commands execute
in the expected order

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8781>
src/gallium/drivers/zink/zink_draw.c