mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
nvc0: make sure to delete samplers used by compute shaders
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
4b0a5b21ae
commit
9efd8b590f
1 changed files with 1 additions and 1 deletions
|
|
@ -413,7 +413,7 @@ nvc0_sampler_state_delete(struct pipe_context *pipe, void *hwcso)
|
|||
{
|
||||
unsigned s, i;
|
||||
|
||||
for (s = 0; s < 5; ++s)
|
||||
for (s = 0; s < 6; ++s)
|
||||
for (i = 0; i < nvc0_context(pipe)->num_samplers[s]; ++i)
|
||||
if (nvc0_context(pipe)->samplers[s][i] == hwcso)
|
||||
nvc0_context(pipe)->samplers[s][i] = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue