diff options
author | Marek Olšák <[email protected]> | 2010-01-16 00:56:33 +0100 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-01-17 01:00:35 -0800 |
commit | 37897a65e27842bbbfe32c37d2fcf775a5c127eb (patch) | |
tree | 5e0aab85a7a0aa10cdb9ca6e884c11a78f894bf9 /src | |
parent | 816cb90e7c41ee9cc02a8b12f64b368bd0c2fd03 (diff) |
r300g: fix the CS size when emitting invariant state
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_invariant.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state_invariant.c b/src/gallium/drivers/r300/r300_state_invariant.c index b0f309695c9..47d7e60a40d 100644 --- a/src/gallium/drivers/r300/r300_state_invariant.c +++ b/src/gallium/drivers/r300/r300_state_invariant.c @@ -79,7 +79,8 @@ void r300_emit_invariant_state(struct r300_context* r300) END_CS; /* XXX unsorted stuff from surface_fill */ - BEGIN_CS(44 + (caps->has_tcl ? 7 : 0) + (caps->is_r500 ? 4 : 0)); + BEGIN_CS(44 + (caps->has_tcl ? 7 : 0) + + (caps->family >= CHIP_FAMILY_RV350 ? 4 : 0)); if (caps->has_tcl) { /*Flushing PVS is required before the VAP_GB registers can be changed*/ |