zink: unset gfx shader read when unbinding shader images

this otherwise will never be unset

Fixes: 50e764fa50 ("zink: track gfx/compute descriptor barrier info")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21229>
This commit is contained in:
Mike Blumenkrantz 2023-02-09 15:53:32 -05:00 committed by Marge Bot
parent 892eae9af0
commit ee53b07c0a

View file

@ -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);