xf86-video-ati: Branch 'master'
Alex Deucher
agd5f at kemper.freedesktop.org
Mon Mar 9 12:14:05 PDT 2009
src/atombios_crtc.c | 4 +++-
src/radeon_crtc.c | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 1d355798f3d421cabf2a3a0ba32a580483476ab0
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Mon Mar 9 15:13:01 2009 -0400
AVIVO: fix panning
low 2 bits of X need to be 0.
diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index bf207bf..c004719 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -1,4 +1,4 @@
- /*
+/*
* Copyright © 2007 Red Hat, Inc.
* Copyright 2007 Advanced Micro Devices, Inc.
*
@@ -469,6 +469,8 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc,
OUTREG(AVIVO_D1GRPH_ENABLE + radeon_crtc->crtc_offset, 1);
OUTREG(AVIVO_D1MODE_DESKTOP_HEIGHT + radeon_crtc->crtc_offset, mode->VDisplay);
+ x &= ~3;
+ y &= ~1;
OUTREG(AVIVO_D1MODE_VIEWPORT_START + radeon_crtc->crtc_offset, (x << 16) | y);
OUTREG(AVIVO_D1MODE_VIEWPORT_SIZE + radeon_crtc->crtc_offset,
(mode->HDisplay << 16) | mode->VDisplay);
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c
index a87e99b..3a9432f 100644
--- a/src/radeon_crtc.c
+++ b/src/radeon_crtc.c
@@ -507,6 +507,8 @@ radeon_crtc_set_origin(xf86CrtcPtr crtc, int x, int y)
unsigned char *RADEONMMIO = info->MMIO;
if (IS_AVIVO_VARIANT) {
+ x &= ~3;
+ y &= ~1;
atombios_lock_crtc(info->atomBIOS, radeon_crtc->crtc_id, 1);
OUTREG(AVIVO_D1MODE_VIEWPORT_START + radeon_crtc->crtc_offset, (x << 16) | y);
atombios_lock_crtc(info->atomBIOS, radeon_crtc->crtc_id, 0);
More information about the xorg-commit
mailing list