replace magic number with macro constant RADEON_ZBLOCK16
authorRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 26 Jan 2005 14:20:14 +0000 (14:20 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 26 Jan 2005 14:20:14 +0000 (14:20 +0000)
src/mesa/drivers/dri/radeon/radeon_state_init.c
src/mesa/drivers/dri/radeon/server/radeon_reg.h

index 1dece862088b22ed4c40c040723cc61e036a88f3..8db3c88192a48509d77ab90aa7da5655992ba8ef 100644 (file)
@@ -357,7 +357,7 @@ void radeonInitState( radeonContextPtr rmesa )
 
    rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] = (RADEON_PLANE_MASK_ENABLE |
                                       color_fmt |
-                                      (1<<15));
+                                      RADEON_ZBLOCK16);
 
    switch ( driQueryOptioni( &rmesa->optionCache, "dither_mode" ) ) {
    case DRI_CONF_DITHER_XERRORDIFFRESET:
index a35aa21a8b26e4a3a9e69f2a0d260a9b8685ef25..f8c71d62709147e06bda887baef2d435b25895b9 100644 (file)
 #       define RADEON_COLOR_FORMAT_aYUV444     (14 << 10)
 #       define RADEON_COLOR_FORMAT_ARGB4444    (15 << 10)
 #       define RADEON_CLRCMP_FLIP_ENABLE       (1  << 14)
+#       define RADEON_ZBLOCK16                 (1  << 15)
 #define RADEON_RB3D_COLOROFFSET             0x1c40
 #       define RADEON_COLOROFFSET_MASK      0xfffffff0
 #define RADEON_RB3D_COLORPITCH              0x1c48