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 <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27251>
This commit is contained in:
Ryan Neph 2024-01-24 14:34:49 -08:00 committed by Marge Bot
parent 5275df0cfe
commit 9f99685c1b

View file

@ -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]);