Mesa (master): r300g: fix a compile error on non-debug builds

Marek Olšák mareko at kemper.freedesktop.org
Sun Jun 27 08:15:55 PDT 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Jun 27 17:15:23 2010 +0200

r300g: fix a compile error on non-debug builds

---

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

diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 6177ab3..15de533 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1025,7 +1025,7 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
     OUT_CB(line_control);
     OUT_CB_REG_SEQ(R300_SU_POLY_OFFSET_ENABLE, 2);
     OUT_CB(polygon_offset_enable);
-    rs->cull_mode_index = 25 - cs_count;
+    rs->cull_mode_index = 9;
     OUT_CB(cull_mode);
     OUT_CB_REG(R300_GA_LINE_STIPPLE_CONFIG, line_stipple_config);
     OUT_CB_REG(R300_GA_LINE_STIPPLE_VALUE, line_stipple_value);



More information about the mesa-commit mailing list