nvc0: make sure to delete samplers used by compute shaders
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 Mar 2016 12:15:44 +0000 (13:15 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 Mar 2016 21:04:18 +0000 (22:04 +0100)
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>
src/gallium/drivers/nouveau/nvc0/nvc0_state.c

index 090a03954320e4390229a40ecc1039b67035cd51..a100fc4c47834ecad8436b5b60ae962641f4866d 100644 (file)
@@ -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;