From: Christoph Bumiller Date: Tue, 22 May 2012 10:41:17 +0000 (+0200) Subject: nvc0: don't set NEW_IDXBUF in nvc0_switch_pipe_context if none is bound X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91fb5e0394f702a795f317c6c78af7e9676e46c3;p=mesa.git nvc0: don't set NEW_IDXBUF in nvc0_switch_pipe_context if none is bound --- diff --git a/src/gallium/drivers/nvc0/nvc0_state_validate.c b/src/gallium/drivers/nvc0/nvc0_state_validate.c index c2d115e715f..e35aae532e8 100644 --- a/src/gallium/drivers/nvc0/nvc0_state_validate.c +++ b/src/gallium/drivers/nvc0/nvc0_state_validate.c @@ -463,6 +463,8 @@ nvc0_switch_pipe_context(struct nvc0_context *ctx_to) if (!ctx_to->vertex) ctx_to->dirty &= ~(NVC0_NEW_VERTEX | NVC0_NEW_ARRAYS); + if (!ctx_to->idxbuf.buffer) + ctx_to->dirty &= ~NVC0_NEW_IDXBUF; if (!ctx_to->vertprog) ctx_to->dirty &= ~NVC0_NEW_VERTPROG;