aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/atombios_crtc.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-05-20 12:04:59 -0400
committerDave Airlie <airlied@redhat.com>2010-08-01 20:00:01 -0400
commit40c4ac1c1931eb48ca0cf5e9ec464d13c5921994 (patch)
treef83bf40236519c2eef1fbefb561575aa62845384 /drivers/gpu/drm/radeon/atombios_crtc.c
parent21a8122ad38c60d73fe5dc51051414c3564d174a (diff)
drm/radeon/kms: Add crtc tiling setup support for r6xx/r7xx
Needed for scanning out of a tiled buffer. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_crtc.c')
-rw-r--r--drivers/gpu/drm/radeon/atombios_crtc.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
index a22d5a3bca4e..3b8f087eaf62 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -1000,11 +1000,18 @@ static int avivo_crtc_set_base(struct drm_crtc *crtc, int x, int y,
1000 return -EINVAL; 1000 return -EINVAL;
1001 } 1001 }
1002 1002
1003 if (tiling_flags & RADEON_TILING_MACRO) 1003 if (rdev->family >= CHIP_R600) {
1004 fb_format |= AVIVO_D1GRPH_MACRO_ADDRESS_MODE; 1004 if (tiling_flags & RADEON_TILING_MACRO)
1005 fb_format |= R600_D1GRPH_ARRAY_MODE_2D_TILED_THIN1;
1006 else if (tiling_flags & RADEON_TILING_MICRO)
1007 fb_format |= R600_D1GRPH_ARRAY_MODE_1D_TILED_THIN1;
1008 } else {
1009 if (tiling_flags & RADEON_TILING_MACRO)
1010 fb_format |= AVIVO_D1GRPH_MACRO_ADDRESS_MODE;
1005 1011
1006 if (tiling_flags & RADEON_TILING_MICRO) 1012 if (tiling_flags & RADEON_TILING_MICRO)
1007 fb_format |= AVIVO_D1GRPH_TILED; 1013 fb_format |= AVIVO_D1GRPH_TILED;
1014 }
1008 1015
1009 if (radeon_crtc->crtc_id == 0) 1016 if (radeon_crtc->crtc_id == 0)
1010 WREG32(AVIVO_D1VGA_CONTROL, 0); 1017 WREG32(AVIVO_D1VGA_CONTROL, 0);