summaryrefslogtreecommitdiff
path: root/src/atombios_crtc.c
diff options
context:
space:
mode:
authorPierre Ossman <pierre@ossman.eu>2008-12-03 21:49:37 +0100
committerPierre Ossman <pierre@ossman.eu>2008-12-04 22:20:56 +0100
commitd1690f5cc096e2f735c8b407c370a1c1cd7a8afc (patch)
tree28d23088139de1800fb7d18c692d2f1c2df1f24b /src/atombios_crtc.c
parent4d98acbca2e630056bf56cdcd0e23007fded2ced (diff)
Improve tearing avoidance for Xvideo in two steps
- Fix up VLINE handling to trigger whenever scanout is outside the visible area. - Render the video as a scissored triangle as R300+ cannot render a quad in a single pass.
Diffstat (limited to 'src/atombios_crtc.c')
-rw-r--r--src/atombios_crtc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index 620bc8dc..bbd0c0a9 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -513,8 +513,9 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc,
0);
OUTREG(AVIVO_D1MODE_VLINE_START_END + radeon_crtc->crtc_offset,
- ((0 << AVIVO_D1MODE_VLINE_START_SHIFT) |
- (mode->VDisplay << AVIVO_D1MODE_VLINE_END_SHIFT)));
+ (((0) << AVIVO_D1MODE_VLINE_START_SHIFT) |
+ ((mode->VDisplay) << AVIVO_D1MODE_VLINE_END_SHIFT) |
+ AVIVO_D1MODE_VLINE_INV));
}
atombios_crtc_set_pll(crtc, adjusted_mode, pll_flags);