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

Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Feb  9 15:53:32 2023 -0500

zink: unset gfx shader read when unbinding shader images

this otherwise will never be unset

Fixes: 50e764fa50d ("zink: track gfx/compute descriptor barrier info")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21229>

---

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

diff --git a/src/gallium/drivers/zink/zink_context.c 
b/src/gallium/drivers/zink/zink_context.c
index d43bfbc10a4..da555ea0232 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -1673,6 +1673,7 @@ unbind_shader_image(struct zink_context *ctx, 
gl_shader_stage stage, unsigned sl
       zink_buffer_view_reference(zink_screen(ctx->base.screen), 
&image_view->buffer_view, NULL);
    } else {
       unbind_descriptor_stage(res, stage);
+      unbind_descriptor_reads(res, stage);
       if (!res->image_bind_count[is_compute])
          check_for_layout_update(ctx, res, is_compute);
       zink_surface_reference(zink_screen(ctx->base.screen), 
&image_view->surface, NULL);

Reply via email to