r300: fix primary color on rs480
authorAapo Tahkola <aet@rasterburn.org>
Sun, 6 May 2007 11:28:23 +0000 (14:28 +0300)
committerAapo Tahkola <aapo@aapo-desktop.(none)>
Sun, 6 May 2007 11:28:23 +0000 (14:28 +0300)
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_maos.c

index c4dc97b..8241425 100644 (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);
index b0d96f7..b2ce6cb 100644 (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 );
        }