aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/atombios_crtc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-08 00:45:13 -0500
committerDave Airlie <airlied@redhat.com>2009-12-10 00:09:00 -0500
commitcf2f05d30dacab32e6866347be6cbfa4030b33b7 (patch)
treeab7ca861cc3e92aefa60ba4e9ac1573aaf81331d /drivers/gpu/drm/radeon/atombios_crtc.c
parentd3f420d1089169fb48366e1aa750bdd92db0a04b (diff)
drm/radeon/kms: fix avivo tiling regression since radeon object rework
The object rework moved the tiling flag setup around wrongly, so tiling we getting setup then overwritten by fb format. Fixes regression with drm-radeon-next on rv530 laptop tiling test. 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
index fba3c96b915b..6d82417fb903 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -599,8 +599,6 @@ int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y,
599 } 599 }
600 radeon_bo_get_tiling_flags(rbo, &tiling_flags, NULL); 600 radeon_bo_get_tiling_flags(rbo, &tiling_flags, NULL);
601 radeon_bo_unreserve(rbo); 601 radeon_bo_unreserve(rbo);
602 if (tiling_flags & RADEON_TILING_MACRO)
603 fb_format |= AVIVO_D1GRPH_MACRO_ADDRESS_MODE;
604 602
605 switch (crtc->fb->bits_per_pixel) { 603 switch (crtc->fb->bits_per_pixel) {
606 case 8: 604 case 8:
@@ -630,6 +628,9 @@ int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y,
630 return -EINVAL; 628 return -EINVAL;
631 } 629 }
632 630
631 if (tiling_flags & RADEON_TILING_MACRO)
632 fb_format |= AVIVO_D1GRPH_MACRO_ADDRESS_MODE;
633
633 if (tiling_flags & RADEON_TILING_MICRO) 634 if (tiling_flags & RADEON_TILING_MICRO)
634 fb_format |= AVIVO_D1GRPH_TILED; 635 fb_format |= AVIVO_D1GRPH_TILED;
635 636