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 c4dc97b8d4959acffb91e57269b292be591ac0a4..82414259df9966980bac78641ddb0dae6549ee4d 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 b0d96f7601ab3e6f6bbed3d229b39eebef781227..b2ce6cb991c7156a06bd3fbf3003008fe7115906 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 );
        }