Mesa (staging/22.1): zink: relax zink_resource_buffer_needs_barrier checks

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 20 01:14:50 UTC 2022


Module: Mesa
Branch: staging/22.1
Commit: 6e8bbed87a95b1faa9c70a9baf85ecd4b8739234
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e8bbed87a95b1faa9c70a9baf85ecd4b8739234

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Sat Jun 18 10:05:55 2022 -0400

zink: relax zink_resource_buffer_needs_barrier checks

this now matches zink_resource_image_needs_barrier

cc: mesa-stable

Acked-by: Dave Airlie <airlied at redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17111>

---

 src/gallium/drivers/zink/zink_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 5e94582cdd9..df8307d0947 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3214,7 +3214,7 @@ zink_resource_buffer_needs_barrier(struct zink_resource *res, VkAccessFlags flag
       pipeline = pipeline_access_stage(flags);
    return zink_resource_access_is_write(res->obj->access) ||
           zink_resource_access_is_write(flags) ||
-          ((res->obj->access_stage & pipeline) != pipeline && !(res->obj->access_stage & (pipeline - 1))) ||
+          (res->obj->access_stage & pipeline) != pipeline ||
           (res->obj->access & flags) != flags;
 }
 



More information about the mesa-commit mailing list