From b0d10ff04a24a951256a79710ba22b325b549ba4 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Jan 2011 17:52:26 -0500 Subject: xv: Fix interlace computation scrn->currentMode is a hack for xf86vidmode and in general is wrong for RANDRful drivers. Use the mode on the associated CRTC instead. Signed-off-by: Adam Jackson [ickle: crtc->mode is a ModeRec] Signed-off-by: Chris Wilson --- src/intel_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel_video.c b/src/intel_video.c index cdff149d6..2786201c5 100644 --- a/src/intel_video.c +++ b/src/intel_video.c @@ -1348,7 +1348,7 @@ intel_wait_for_scanline(ScrnInfoPtr scrn, PixmapPtr pixmap, event = MI_WAIT_FOR_PIPEB_SVBLANK; } - if (scrn->currentMode->Flags & V_INTERLACE) { + if (crtc->mode.Flags & V_INTERLACE) { /* DSL count field lines */ y1 /= 2; y2 /= 2; -- cgit v1.2.3