zink: use fake buffer barriers for descriptors
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 7 Apr 2021 14:49:39 +0000 (10:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 17 Jun 2021 01:18:39 +0000 (01:18 +0000)
commit5341b985e49a5e79468c4a55c3bb02bbf4542007
treee2500c8270b74bb0ff0afb946dba59224b04034f
parent3c2f343618535bf9833111adb47c8e83f30810bc
zink: use fake buffer barriers for descriptors

GL requires explicit glMemoryBarrier calls for shader synchronization
and only calls that map/copy buffers get implicit sync, so we don't actually
need barriers for any of these cases, only the state needs to be updated

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11393>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h