mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
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:
parent
5275df0cfe
commit
9f99685c1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue