From d79fa228016f12fa663ccb34f10ccffbef7342e7 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 28 Dec 2024 11:41:53 +0100 Subject: [PATCH] gallium/vl: Fix unbinding sampler views Reviewed-by: Leo Liu Part-of: --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c b/src/gallium/auxiliary/vl/vl_compositor_cs.c index 49faeff41fd..3271a90a4cf 100644 --- a/src/gallium/auxiliary/vl/vl_compositor_cs.c +++ b/src/gallium/auxiliary/vl/vl_compositor_cs.c @@ -772,7 +772,7 @@ draw_layers(struct vl_compositor *c, /* Unbind. */ c->pipe->set_shader_images(c->pipe, PIPE_SHADER_COMPUTE, 0, 0, 1, NULL); c->pipe->set_constant_buffer(c->pipe, PIPE_SHADER_COMPUTE, 0, false, NULL); - c->pipe->set_sampler_views(c->pipe, PIPE_SHADER_FRAGMENT, 0, 0, + c->pipe->set_sampler_views(c->pipe, PIPE_SHADER_COMPUTE, 0, 0, num_sampler_views, false, NULL); c->pipe->bind_compute_state(c->pipe, NULL); c->pipe->bind_sampler_states(c->pipe, PIPE_SHADER_COMPUTE, 0,