diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 804ec369136..278e2ef9edf 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -1671,6 +1671,8 @@ unbind_shader_image(struct zink_context *ctx, gl_shader_stage stage, unsigned sl unbind_buffer_descriptor_stage(res, stage); unbind_buffer_descriptor_reads(res, stage); zink_buffer_view_reference(zink_screen(ctx->base.screen), &image_view->buffer_view, NULL); + if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB) + pipe_resource_reference(&image_view->base.resource, NULL); } else { unbind_descriptor_stage(res, stage); unbind_descriptor_reads(res, stage);