From d133f950844c4e4ad0c5b6abb9bb8f09ffffa1d9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 28 Feb 2023 14:00:34 -0500 Subject: [PATCH] zink: check for layout updates when unbinding samplerviews not sure if it's a bug, but it should be consistent with shader image unbinding, so here it is Part-of: --- src/gallium/drivers/zink/zink_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 021fa0ad837..58efac96751 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -1928,6 +1928,8 @@ unbind_samplerview(struct zink_context *ctx, gl_shader_stage stage, unsigned slo } else { unbind_descriptor_stage(res, stage); unbind_descriptor_reads(res, stage == MESA_SHADER_COMPUTE); + if (!res->sampler_bind_count[stage == MESA_SHADER_COMPUTE]) + check_for_layout_update(ctx, res, stage == MESA_SHADER_COMPUTE); } }