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:
parent
e443f83dd6
commit
0c20fbabd1
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue