rs480: set vap cntl to what fglrx uses for non-TCL cards
authorDave Airlie <airlied@nx6125b.(none)>
Tue, 10 Apr 2007 10:46:58 +0000 (11:46 +0100)
committerDave Airlie <airlied@nx6125b.(none)>
Tue, 10 Apr 2007 10:46:58 +0000 (11:46 +0100)
src/mesa/drivers/dri/r300/r300_state.c

index 545b2f03aab35bc71332bceb1ccc41b855b21253..870d683f004a2a109fee20d5085f7280f0417606 100644 (file)
@@ -2005,8 +2005,10 @@ void r300ResetHwState(r300ContextPtr r300)
                /* Initialize magic registers
                 TODO : learn what they really do, or get rid of
                 those we don't have to touch */
-       r300->hw.vap_cntl.cmd[1] = 0x0030045A; //0x0030065a /* Dangerous */
-
+       if (!(r300->radeon.radeonScreen->chip_flags & RADEON_CHIPSET_TCL))
+               r300->hw.vap_cntl.cmd[1] = 0x0014045a;
+       else
+               r300->hw.vap_cntl.cmd[1] = 0x0030045A; //0x0030065a /* Dangerous */
        r300->hw.vte.cmd[1] = R300_VPORT_X_SCALE_ENA
                                | R300_VPORT_X_OFFSET_ENA
                                | R300_VPORT_Y_SCALE_ENA