xf86-video-ati: Branch 'master'
Alex Deucher
agd5f at kemper.freedesktop.org
Fri Feb 6 16:21:22 PST 2009
src/atombios_crtc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 28cf3492f431f325cb08d7c6aade43d8886df3f6
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Fri Feb 6 19:20:18 2009 -0500
AVIVO: fix rotation
When rotation is active, virtualX and virtualY change.
diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index 3299740..e86f186 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -465,8 +465,11 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc,
OUTREG(AVIVO_D1GRPH_SURFACE_OFFSET_Y + radeon_crtc->crtc_offset, 0);
OUTREG(AVIVO_D1GRPH_X_START + radeon_crtc->crtc_offset, 0);
OUTREG(AVIVO_D1GRPH_Y_START + radeon_crtc->crtc_offset, 0);
- OUTREG(AVIVO_D1GRPH_X_END + radeon_crtc->crtc_offset, pScrn->virtualX);
- OUTREG(AVIVO_D1GRPH_Y_END + radeon_crtc->crtc_offset, pScrn->virtualY);
+ if (crtc->rotatedData == NULL) {
+ /* rotation changes the virtualX and virtualY */
+ OUTREG(AVIVO_D1GRPH_X_END + radeon_crtc->crtc_offset, pScrn->virtualX);
+ OUTREG(AVIVO_D1GRPH_Y_END + radeon_crtc->crtc_offset, pScrn->virtualY);
+ }
OUTREG(AVIVO_D1GRPH_PITCH + radeon_crtc->crtc_offset,
crtc->scrn->displayWidth);
OUTREG(AVIVO_D1GRPH_ENABLE + radeon_crtc->crtc_offset, 1);
More information about the xorg-commit
mailing list