From 0c20fbabd18c19b2753cb60280f89e240ce5645f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 17 Aug 2007 22:21:47 -0700 Subject: [PATCH] Make sure XV_PIPE is used whenever possible. The code was not consistently using XV_PIPE when the desired crtc contained any portion of the video output. --- src/i830_video.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/i830_video.c b/src/i830_video.c index 926e1227..2128eb88 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -1712,11 +1712,14 @@ i830_covering_crtc (ScrnInfoPtr pScrn, i830_crtc_box (crtc, &crtc_box); i830_box_intersect (&cover_box, &crtc_box, box); coverage = i830_box_area (&cover_box); + if (coverage && crtc == desired) + { + *crtc_box_ret = crtc_box; + return crtc; + } if (coverage > best_coverage) { *crtc_box_ret = crtc_box; - if (crtc == desired) - return crtc; best_crtc = crtc; best_coverage = coverage; }