summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-11-17 17:37:25 -0500
committerAlex Deucher <alexdeucher@gmail.com>2010-12-01 20:30:24 -0500
commitfccdca8db34010f566bd068c74cdef0f4a8cb7f5 (patch)
tree0c92849103181f7cfca01fcf8fbc2860f2891dd4 /src/drmmode_display.c
parent035f7f3ab529ca19b853066792af8a23d08a0f53 (diff)
radeon/kms: allow tiled front buffer on 6xx/7xx
Use UTS/DFS to tile/untile as appropriate for sw access. Also enables pageflipping with tiling enabled.
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 0a6e338e..33012315 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -266,9 +266,10 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
uint32_t tiling_flags = 0;
int height;
- /* no tiled scanout on r6xx+ yet */
if (info->allowColorTiling) {
- if (info->ChipFamily < CHIP_FAMILY_R600)
+ if (info->ChipFamily >= CHIP_FAMILY_R600)
+ tiling_flags |= RADEON_TILING_MICRO;
+ else
tiling_flags |= RADEON_TILING_MACRO;
}
@@ -1167,9 +1168,10 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height)
if (front_bo)
radeon_bo_wait(front_bo);
- /* no tiled scanout on r6xx+ yet */
if (info->allowColorTiling) {
- if (info->ChipFamily < CHIP_FAMILY_R600)
+ if (info->ChipFamily >= CHIP_FAMILY_R600)
+ tiling_flags |= RADEON_TILING_MICRO;
+ else
tiling_flags |= RADEON_TILING_MACRO;
}