diff options
author | Marek Olšák <[email protected]> | 2010-08-24 17:16:44 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-08-25 02:44:28 +0200 |
commit | cb925970eeade17016f59497d2123e4e8a447164 (patch) | |
tree | 20280d87606c9075b5bd34b0550a80522c0c42aa /src/gallium/drivers/r300/r300_flush.c | |
parent | 5755d1d6a7ff68c7d690d67c4cd64ef8e01ec2ed (diff) |
r300g: reset the index bias to 0 at the end of CS
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index f00707b0665..2b5d2e42ba5 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -45,9 +45,12 @@ static void r300_flush(struct pipe_context* pipe, if (r300->draw) r300_draw_flush_vbuf(r300); + if (r300->dirty_hw) { r300_emit_hyperz_end(r300); r300_emit_query_end(r300); + if (r500_index_bias_supported(r300)) + r500_emit_index_bias(r300, 0); r300->flush_counter++; r300->rws->cs_flush(r300->cs); |