From: Samuel Pitoiset Date: Wed, 17 Feb 2016 21:01:18 +0000 (+0100) Subject: nvc0: invalidate compute state when switching pipe contexts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=807901b6397dccc5530e5a597b7a3fa0988e386b;p=mesa.git nvc0: invalidate compute state when switching pipe contexts Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c index e2a4e4220d1..d97267a583b 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c @@ -653,10 +653,11 @@ nvc0_switch_pipe_context(struct nvc0_context *ctx_to) ctx_to->state = ctx_to->screen->save_state; ctx_to->dirty = ~0; + ctx_to->dirty_cp = ~0; ctx_to->viewports_dirty = ~0; ctx_to->scissors_dirty = ~0; - for (s = 0; s < 5; ++s) { + for (s = 0; s < 6; ++s) { ctx_to->samplers_dirty[s] = ~0; ctx_to->textures_dirty[s] = ~0; ctx_to->constbuf_dirty[s] = (1 << NVC0_MAX_PIPE_CONSTBUFS) - 1;