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 <a...@redhat.com>
---
 src/intel_video.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
-- 
1.7.3.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to