diff options
author | Adam Jackson <ajax@redhat.com> | 2011-01-03 17:52:26 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-03 23:02:49 +0000 |
commit | b0d10ff04a24a951256a79710ba22b325b549ba4 (patch) | |
tree | 25e433fdcaba61e9ed30627cc883c68a6376b56d | |
parent | 0ad6d6e1a678de7d8c2d4cd7c734887e1deb2f9b (diff) |
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 <ajax@redhat.com>
[ickle: crtc->mode is a ModeRec]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | 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 cdff149d..2786201c 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; |