r300: Added R300_AA_DISABLE for R300_GB_AA_CONFIG.
authorOliver McFadden <z3ro.geek@gmail.com>
Sun, 6 May 2007 12:09:42 +0000 (12:09 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Sun, 6 May 2007 12:09:42 +0000 (12:09 +0000)
src/mesa/drivers/dri/r300/r300_reg.h
src/mesa/drivers/dri/r300/r300_state.c

index b296aaa07a991389dcc74a9c266edf1621bdad15..3754a5be395c438bd036b62fd48b78262e6e0ddf 100644 (file)
@@ -488,6 +488,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #      define R300_GB_W_SELECT_1               (1<<4)
 
 #define R300_GB_AA_CONFIG              0x4020
+#      define R300_AA_DISABLE                  0x00
 #      define R300_AA_ENABLE                   0x01
 #      define R300_AA_SUBSAMPLES_2             0
 #      define R300_AA_SUBSAMPLES_3             (1<<1)
index ded140cf27fe5e2ab7dd54cf13a09b5b7da43a1f..3e06c44381a20814e13127c3c6dce0a6fe2fcdbe 100644 (file)
@@ -1983,7 +1983,7 @@ void r300ResetHwState(r300ContextPtr r300)
                                                        | R300_GB_TILE_SIZE_16;
        /* set to 0 when fog is disabled? */
        r300->hw.gb_misc.cmd[R300_GB_MISC_SELECT] = R300_GB_FOG_SELECT_1_1_W;
-       r300->hw.gb_misc.cmd[R300_GB_MISC_AA_CONFIG] = 0x00000000; /* No antialiasing */
+       r300->hw.gb_misc.cmd[R300_GB_MISC_AA_CONFIG] = R300_AA_DISABLE; /* No antialiasing */
 
        r300->hw.unk4200.cmd[1] = r300PackFloat32(0.0);
        r300->hw.unk4200.cmd[2] = r300PackFloat32(0.0);