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.
This commit is contained in:
Keith Packard 2007-08-17 22:21:47 -07:00
parent e443f83dd6
commit 0c20fbabd1
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}