Mesa (master): nvc0: don' t set NEW_IDXBUF in nvc0_switch_pipe_context if none is bound
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Tue May 22 11:56:42 UTC 2012
Module: Mesa
Branch: master
Commit: 91fb5e0394f702a795f317c6c78af7e9676e46c3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91fb5e0394f702a795f317c6c78af7e9676e46c3
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Tue May 22 12:41:17 2012 +0200
nvc0: don't set NEW_IDXBUF in nvc0_switch_pipe_context if none is bound
---
src/gallium/drivers/nvc0/nvc0_state_validate.c | 2 ++
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 c2d115e..e35aae5 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;
More information about the mesa-commit
mailing list