diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/radeon_cp.c | 3 | ||||
-rw-r--r-- | shared/radeon_drv.h | 1 | ||||
-rw-r--r-- | shared/radeon_state.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/shared/radeon_cp.c b/shared/radeon_cp.c index 5d13f479..5e23452b 100644 --- a/shared/radeon_cp.c +++ b/shared/radeon_cp.c @@ -1343,7 +1343,8 @@ static int radeon_do_init_cp( drm_device_t *dev, drm_radeon_init_t *init ) */ dev_priv->depth_clear.rb3d_cntl = (RADEON_PLANE_MASK_ENABLE | (dev_priv->color_fmt << 10) | - (1<<15)); + (dev_priv->microcode_version == UCODE_R100 ? + RADEON_ZBLOCK16 : 0)); dev_priv->depth_clear.rb3d_zstencilcntl = (dev_priv->depth_fmt | diff --git a/shared/radeon_drv.h b/shared/radeon_drv.h index 9e0e8fed..60252db1 100644 --- a/shared/radeon_drv.h +++ b/shared/radeon_drv.h @@ -411,6 +411,7 @@ extern void radeon_driver_irq_uninstall( drm_device_t *dev ); # define RADEON_ROP_ENABLE (1 << 6) # define RADEON_STENCIL_ENABLE (1 << 7) # define RADEON_Z_ENABLE (1 << 8) +# define RADEON_ZBLOCK16 (1 << 15) #define RADEON_RB3D_DEPTHOFFSET 0x1c24 #define RADEON_RB3D_DEPTHCLEARVALUE 0x3230 #define RADEON_RB3D_DEPTHPITCH 0x1c28 diff --git a/shared/radeon_state.c b/shared/radeon_state.c index caba6a3a..66efb5c8 100644 --- a/shared/radeon_state.c +++ b/shared/radeon_state.c @@ -953,7 +953,6 @@ static void radeon_cp_dispatch_clear( drm_device_t *dev, tempRE_CNTL = 0; tempRB3D_CNTL = depth_clear->rb3d_cntl; - tempRB3D_CNTL &= ~(1<<15); /* unset radeon magic flag */ tempRB3D_ZSTENCILCNTL = depth_clear->rb3d_zstencilcntl; tempRB3D_STENCILREFMASK = 0x0; |