From cb925970eeade17016f59497d2123e4e8a447164 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 24 Aug 2010 17:16:44 +0200 Subject: r300g: reset the index bias to 0 at the end of CS --- src/gallium/drivers/r300/r300_emit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/r300/r300_emit.c') 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; } -- cgit v1.2.3