projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c4c86a
)
Fix to get glxgears display anything.
author
Aapo Tahkola
<aet@rasterburn.org>
Tue, 15 Mar 2005 20:55:29 +0000
(20:55 +0000)
committer
Aapo Tahkola
<aet@rasterburn.org>
Tue, 15 Mar 2005 20:55:29 +0000
(20:55 +0000)
src/mesa/drivers/dri/r300/r300_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_state.c
b/src/mesa/drivers/dri/r300/r300_state.c
index aa9eb5e28bdc25ce49d0c79160030dd13bdcbd9f..3941147b455e07f0fb6ef086f6401ee28546dd76 100644
(file)
--- 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;