zink: improve barrier helper for buffer resources and add check for barrier need
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Aug 2020 14:39:20 +0000 (10:39 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 Jan 2021 13:21:37 +0000 (13:21 +0000)
commitaedde2d60d524f45fb2b14728aa6dc0059380d6e
tree48a3d8879bdbceaa4ed7bf30649c682e930259cf
parent49ee821eb9a926cf978942d65a3a2206f8514284
zink: improve barrier helper for buffer resources and add check for barrier need

now we've got the ability to add fine-grained barriers for buffer resources, so we
can also have a utility function to check whether we need to use barriers and
then skip them when we don't

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8669>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h