From 9f99685c1ba0dca101813d6271ccd8e05b90af72 Mon Sep 17 00:00:00 2001 From: Ryan Neph Date: Wed, 24 Jan 2024 14:34:49 -0800 Subject: [PATCH] virgl: use PIPE_MAX_SAMPLERS in bind_samplers_states Fix incorrect use of PIPE_MAX_SHADER_SAMPLER_VIEWS in virgl_bind_samplers_states. Signed-off-by: Ryan Neph Part-of: --- src/gallium/drivers/virgl/virgl_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index f632f50cae3..f47c469e858 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -1225,7 +1225,7 @@ static void virgl_bind_sampler_states(struct pipe_context *ctx, void **samplers) { struct virgl_context *vctx = virgl_context(ctx); - uint32_t handles[PIPE_MAX_SHADER_SAMPLER_VIEWS]; + uint32_t handles[PIPE_MAX_SAMPLERS]; int i; for (i = 0; i < num_samplers; i++) { handles[i] = (unsigned long)(samplers[i]);