From 91fb5e0394f702a795f317c6c78af7e9676e46c3 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 22 May 2012 12:41:17 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+) 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; -- 2.30.2