Mesa (master): r300g: fix up the CS size of the rasterizer state

Marek Olšák mareko at kemper.freedesktop.org
Fri Jun 18 20:23:34 PDT 2010


Module: Mesa
Branch: master
Commit: 8ea45a2c0ec5e53210761753dc9122c2771ba57b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ea45a2c0ec5e53210761753dc9122c2771ba57b

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat Jun 19 04:04:21 2010 +0200

r300g: fix up the CS size of the rasterizer state

---

 src/gallium/drivers/r300/r300_state.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index ed0dbe8..e1149d7 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -984,8 +984,8 @@ static void r300_bind_rs_state(struct pipe_context* pipe, void* state)
     }
 
     UPDATE_STATE(state, r300->rs_state);
-    r300->rs_state.size = 25 + (r300->polygon_offset_enabled ? 5 : 0 +
-        r300->rws->get_value(r300->rws, R300_VID_DRM_2_3_0) ? 5 : 0);
+    r300->rs_state.size = 25 + (r300->polygon_offset_enabled ? 5 : 0) +
+        (r300->rws->get_value(r300->rws, R300_VID_DRM_2_3_0) ? 5 : 0);
 
     if (last_sprite_coord_enable != r300->sprite_coord_enable ||
         last_two_sided_color != r300->two_sided_color) {



More information about the mesa-commit mailing list