r3/500: emit RS state before VAP
authorDave Airlie <airlied@redhat.com>
Thu, 15 May 2008 04:51:50 +0000 (14:51 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 15 May 2008 08:40:07 +0000 (18:40 +1000)
src/mesa/drivers/dri/r300/r300_state.c

index 82fa6579a581987bbe4bba28bb24d733e3febb0d..25d1627074e96cc7b3fe9d3affc1260790de42bb 100644 (file)
@@ -2500,13 +2500,14 @@ void r300UpdateShaderStates(r300ContextPtr rmesa)
                r300SetupPixelShader(rmesa);
        r300SetupTextures(ctx);
 
-       if ((rmesa->radeon.radeonScreen->chip_flags & RADEON_CHIPSET_TCL))
-               r300SetupVertexProgram(rmesa);
-
        if (rmesa->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515)
                r500SetupRSUnit(ctx);
        else
                r300SetupRSUnit(ctx);
+
+       if ((rmesa->radeon.radeonScreen->chip_flags & RADEON_CHIPSET_TCL))
+               r300SetupVertexProgram(rmesa);
+
 }
 
 /**