Module: Mesa Branch: master Commit: 91fb5e0394f702a795f317c6c78af7e9676e46c3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91fb5e0394f702a795f317c6c78af7e9676e46c3
Author: Christoph Bumiller <e0425...@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; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit