From: Aapo Tahkola Date: Tue, 15 Mar 2005 20:55:29 +0000 (+0000) Subject: Fix to get glxgears display anything. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75417943737d49670dd4fbc600cd05dc29e2ba51;p=mesa.git Fix to get glxgears display anything. --- diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index aa9eb5e28bd..3941147b455 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;