Mesa (main): zink: remove barriers from buffer rebinds

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 7 01:42:35 UTC 2021


Module: Mesa
Branch: main
Commit: f6e058ea4a08db1375e77bb70e53870e59aa97b4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6e058ea4a08db1375e77bb70e53870e59aa97b4

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue May 11 10:53:58 2021 -0400

zink: remove barriers from buffer rebinds

these aren't needed anymore

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11747>

---

 src/gallium/drivers/zink/zink_context.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 22b0ea1fd92..4110cd7adb2 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3184,13 +3184,6 @@ check_and_rebind_buffer(struct zink_context *ctx, struct zink_resource *res, uns
 
    zink_screen(ctx->base.screen)->context_invalidate_descriptor_state(ctx, shader, type, i, 1);
    zink_batch_resource_usage_set(&ctx->batch, res, is_write);
-   VkAccessFlags access = 0;
-   if (is_read)
-      access |= VK_ACCESS_SHADER_READ_BIT;
-   if (is_write)
-      access |= VK_ACCESS_SHADER_WRITE_BIT;
-   zink_resource_buffer_barrier(ctx, NULL, res, access,
-                                zink_pipeline_flags_from_pipe_stage(shader));
    return true;
 }
 
@@ -3255,8 +3248,6 @@ out:
       return;
    zink_batch_resource_usage_set(&ctx->batch, res, false);
    ctx->vertex_buffers_dirty = true;
-   zink_resource_buffer_barrier(ctx, NULL, res, VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT,
-                                VK_PIPELINE_STAGE_VERTEX_INPUT_BIT);
 }
 
 static inline struct zink_screen **



More information about the mesa-commit mailing list