r300: fix primary color on rs480

This commit is contained in:
Aapo Tahkola
2007-05-06 14:28:23 +03:00
committed by Aapo Tahkola
parent 5e2a66466d
commit 16cec9f767
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -206,6 +206,7 @@ static void r300EmitClearState(GLcontext * ctx)
e32(0x00000405);
if (!has_tcl) {
R300_STATECHANGE(r300, vte);
/* comes from fglrx startup of clear */
reg_start(R300_SE_VTE_CNTL, 1);
e32(0x043f);
+6
View File
@@ -440,6 +440,12 @@ int r300EmitArrays(GLcontext *ctx)
inputs[i] = nr++;
else
inputs[i] = -1;
if(!(r300->radeon.radeonScreen->chip_flags & RADEON_CHIPSET_TCL)) {
for (i = 0; i < VERT_ATTRIB_MAX; i++)
if (inputs[i] > 0)
inputs[i]++;
}
RENDERINPUTS_COPY( rmesa->state.render_inputs_bitset, inputs_bitset );
}