summaryrefslogtreecommitdiff
path: root/src/atombios_crtc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-04-02 09:58:05 +1000
committerDave Airlie <airlied@redhat.com>2008-04-02 09:58:05 +1000
commita8593482c1f2e0f2dbac06c2e5325ba8c83ed9ff (patch)
treeebe71b6167d62e7e8b5dfd57aeba06cf6cabcdf9 /src/atombios_crtc.c
parent61d883d116fab3e9b513432d65e705afc5bb39f1 (diff)
atombios: fix the dual-head hopefully.
tested on r600 with DVI and VGA
Diffstat (limited to 'src/atombios_crtc.c')
-rw-r--r--src/atombios_crtc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index 229ca75e..08f8386d 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -448,10 +448,10 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc,
OUTREG(AVIVO_D1GRPH_SURFACE_OFFSET_X + radeon_crtc->crtc_offset, 0);
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, mode->HDisplay);
- OUTREG(AVIVO_D1GRPH_Y_END + radeon_crtc->crtc_offset, mode->VDisplay);
+ OUTREG(AVIVO_D1GRPH_X_START + radeon_crtc->crtc_offset, x);
+ OUTREG(AVIVO_D1GRPH_Y_START + radeon_crtc->crtc_offset, y);
+ OUTREG(AVIVO_D1GRPH_X_END + radeon_crtc->crtc_offset, x + mode->HDisplay);
+ OUTREG(AVIVO_D1GRPH_Y_END + radeon_crtc->crtc_offset, y + mode->VDisplay);
OUTREG(AVIVO_D1GRPH_PITCH + radeon_crtc->crtc_offset,
crtc->scrn->displayWidth);
OUTREG(AVIVO_D1GRPH_ENABLE + radeon_crtc->crtc_offset, 1);