diff mbox

[1/2] xv: Fix interlace computation

Message ID 1294095147-21017-1-git-send-email-ajax@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Adam Jackson Jan. 3, 2011, 10:52 p.m. UTC
None
diff mbox

Patch

diff --git a/src/intel_video.c b/src/intel_video.c
index cdff149..d086cbf 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 && (crtc->mode->Flags & V_INTERLACE)) {
 		/* DSL count field lines */
 		y1 /= 2;
 		y2 /= 2;