summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-08-24 17:16:44 +0200
committerMarek Olšák <maraeo@gmail.com>2010-08-25 02:44:28 +0200
commitcb925970eeade17016f59497d2123e4e8a447164 (patch)
tree20280d87606c9075b5bd34b0550a80522c0c42aa /src/gallium/drivers/r300/r300_emit.c
parent5755d1d6a7ff68c7d690d67c4cd64ef8e01ec2ed (diff)
r300g: reset the index bias to 0 at the end of CS
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index d0fd45349e..87d995010e 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -1219,6 +1219,8 @@ unsigned r300_get_num_cs_end_dwords(struct r300_context *r300)
/* Emitted in flush. */
dwords += 26; /* emit_query_end */
dwords += r300->hyperz_state.size + 2; /* emit_hyperz_end + zcache flush */
+ if (r500_index_bias_supported(r300))
+ dwords += 2;
return dwords;
}