summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-05-22 12:41:17 +0200
committerChristoph Bumiller <[email protected]>2012-05-22 12:45:19 +0200
commit91fb5e0394f702a795f317c6c78af7e9676e46c3 (patch)
treef16ac9728b35ef44ce3fb0a82662bfc255b5c450
parent8a933e36d1f91d3b8a5377a8d23c2dcdd403e8ad (diff)
nvc0: don't set NEW_IDXBUF in nvc0_switch_pipe_context if none is bound
-rw-r--r--src/gallium/drivers/nvc0/nvc0_state_validate.c2
1 files changed, 2 insertions, 0 deletions
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;