From b0624f40343f6239014e474106117fb3e147c21a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 9 Jul 2025 10:12:59 -0400 Subject: [PATCH] cso: use unbind_trailing for sampler view unbinds on context unbinds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is a bit less noisy for drivers Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/cso_cache/cso_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index f1c1069d94a..c57bc357ee5 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -402,7 +402,7 @@ cso_unbind_context(struct cso_context *cso) ctx->base.pipe->bind_sampler_states(ctx->base.pipe, sh, 0, maxsam, zeros); } if (maxview > 0) { - ctx->base.pipe->set_sampler_views(ctx->base.pipe, sh, 0, maxview, 0, views); + ctx->base.pipe->set_sampler_views(ctx->base.pipe, sh, 0, 0, maxview, views); } if (maxssbo > 0) { ctx->base.pipe->set_shader_buffers(ctx->base.pipe, sh, 0, maxssbo, ssbos, 0);