mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
cso: make sure all sampler states are set/cleared
This commit is contained in:
parent
7d7a9714d2
commit
1e2fbf2657
1 changed files with 9 additions and 2 deletions
|
|
@ -1089,10 +1089,17 @@ single_sampler_done(struct cso_context *ctx, unsigned shader_stage)
|
|||
memcpy(info->hw.samplers,
|
||||
info->samplers,
|
||||
info->nr_samplers * sizeof(void *));
|
||||
info->hw.nr_samplers = info->nr_samplers;
|
||||
|
||||
/* set remaining slots/pointers to null */
|
||||
for (i = info->nr_samplers; i < info->hw.nr_samplers; i++)
|
||||
info->samplers[i] = NULL;
|
||||
|
||||
ctx->pipe->bind_sampler_states(ctx->pipe, shader_stage, 0,
|
||||
info->nr_samplers, info->samplers);
|
||||
MAX2(info->nr_samplers,
|
||||
info->hw.nr_samplers),
|
||||
info->samplers);
|
||||
|
||||
info->hw.nr_samplers = info->nr_samplers;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue