nvc0: invalidate all buffers when switching pipe contexts
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 17 Feb 2016 20:14:24 +0000 (21:14 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 17 Feb 2016 20:14:24 +0000 (21:14 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c

index 31ef34c..7e181a9 100644 (file)
@@ -636,6 +636,7 @@ nvc0_switch_pipe_context(struct nvc0_context *ctx_to)
       ctx_to->samplers_dirty[s] = ~0;
       ctx_to->textures_dirty[s] = ~0;
       ctx_to->constbuf_dirty[s] = (1 << NVC0_MAX_PIPE_CONSTBUFS) - 1;
+      ctx_to->buffers_dirty[s]  = ~0;
    }
 
    /* Reset tfb as the shader that owns it may have been deleted. */