summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2005-03-15 20:55:29 +0000
committerAapo Tahkola <aet@rasterburn.org>2005-03-15 20:55:29 +0000
commit75417943737d49670dd4fbc600cd05dc29e2ba51 (patch)
treefbde3433d9a65dc51f3b5dd6028afe1edd3d15e0
parent3c4c86aff2b2536085d909344dfe3e23b9a2ea3c (diff)
Fix to get glxgears display anything.
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index aa9eb5e28b..3941147b45 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -1459,7 +1459,11 @@ void r300_setup_rs_unit(GLcontext *ctx)
| (cur_reg /* count */ << R300_RS_CNTL_TC_CNT_SHIFT)
| R300_RS_CNTL_0_UNKNOWN_7
| R300_RS_CNTL_0_UNKNOWN_18;
- r300->hw.rc.cmd[2] = (0xC0 | (cur_reg-1) /* index of highest */ );
+
+ if(cur_reg == 0)
+ r300->hw.rc.cmd[2] = 0x0;
+ else
+ r300->hw.rc.cmd[2] = 0xC0 | (cur_reg-1); /* index of highest */
#else
for(i = 1; i <= 8; ++i)
r300->hw.ri.cmd[i] = 0x00d10000;