xf86-video-ati: Branch 'master'

Alex Deucher agd5f at kemper.freedesktop.org
Fri Oct 29 13:57:19 PDT 2010


 src/drmmode_display.c |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 2a7b080727f61559cf8444c93a5088f4155a8fdf
Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Fri Oct 29 16:56:45 2010 -0400

    radeon/kms: more alignment fixes

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index adc7ba7..050dadd 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -263,10 +263,21 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
 	int fb_id;
 	drmModeModeInfo kmode;
 	int pitch = pScrn->displayWidth * info->CurrentLayout.pixel_bytes;
+	uint32_t tiling_flags = 0;
+	int height;
+
+	/* no tiled scanout on r6xx+ yet */
+	if (info->allowColorTiling) {
+		if (info->ChipFamily < CHIP_FAMILY_R600)
+			tiling_flags |= RADEON_TILING_MACRO;
+	}
+
+	pitch = RADEON_ALIGN(pitch, drmmode_get_pitch_align(pScrn, info->CurrentLayout.pixel_bytes, tiling_flags));
+	height = RADEON_ALIGN(pScrn->virtualY, drmmode_get_height_align(pScrn, tiling_flags));
 
 	if (drmmode->fb_id == 0) {
 		ret = drmModeAddFB(drmmode->fd,
-				   pScrn->virtualX, pScrn->virtualY,
+				   pScrn->virtualX, height,
                                    pScrn->depth, pScrn->bitsPerPixel,
 				   pitch,
 				   info->front_bo->handle,


More information about the xorg-commit mailing list