diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-08-20 01:11:39 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-21 11:10:30 +0200 |
commit | f779b3e513478218cbaaaa0a506d7801cab6fd14 (patch) | |
tree | 977258791900e68ed2fbcd78d631c22f4185e48a /drivers/gpu/drm/radeon/r300.c | |
parent | drm/radeon/kms: add r100/r200 OQ support. (diff) | |
download | linux-f779b3e513478218cbaaaa0a506d7801cab6fd14.tar.xz linux-f779b3e513478218cbaaaa0a506d7801cab6fd14.zip |
drm/radeon: add GET_PARAM/INFO support for Z pipes
Needed for occlusion queries on rv530 chips.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index c47579dcafa1..053f4ec397f7 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c @@ -448,6 +448,7 @@ void r300_gpu_init(struct radeon_device *rdev) /* rv350,rv370,rv380 */ rdev->num_gb_pipes = 1; } + rdev->num_z_pipes = 1; gb_tile_config = (R300_ENABLE_TILING | R300_TILE_SIZE_16); switch (rdev->num_gb_pipes) { case 2: @@ -486,7 +487,8 @@ void r300_gpu_init(struct radeon_device *rdev) printk(KERN_WARNING "Failed to wait MC idle while " "programming pipes. Bad things might happen.\n"); } - DRM_INFO("radeon: %d pipes initialized.\n", rdev->num_gb_pipes); + DRM_INFO("radeon: %d quad pipes, %d Z pipes initialized.\n", + rdev->num_gb_pipes, rdev->num_z_pipes); } int r300_ga_reset(struct radeon_device *rdev) |