aboutsummaryrefslogtreecommitdiff
path: root/shared/radeon_cp.c
diff options
context:
space:
mode:
authorRoland Scheidegger <rscheidegger_lists@hispeed.ch>2005-01-26 14:19:24 +0000
committerRoland Scheidegger <rscheidegger_lists@hispeed.ch>2005-01-26 14:19:24 +0000
commit408376b2031cf301f1a8e35e89ceefc72f2fdc94 (patch)
treecb7802545105fee0e58f2e28547018cf43abc9e3 /shared/radeon_cp.c
parent310abb39b24159be9839156b4034426cea6a7449 (diff)
replace magic number with macro constant RADEON_ZBLOCK16
Diffstat (limited to 'shared/radeon_cp.c')
-rw-r--r--shared/radeon_cp.c3
1 files changed, 2 insertions, 1 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 |