From 7b74b77557aa4100017ef3f9d344fb4071ae8470 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 6 Apr 2009 14:36:33 -0700 Subject: Don't clip video to CRTC in the case of textured video Since we're not limited by a single overlay plane on a single pipe, we want to not clip at all, (so that the correct video appears on both pipes). This fixes bug #20980 which shows a video spanning two pipes being rendered incorrectly. (cherry picked from commit 940c2aad4d174b6609bdc49f8c99a4bc37926516) --- src/i830_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/i830_video.c b/src/i830_video.c index 13f3ab14..4ed30478 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -2146,7 +2146,8 @@ i830_clip_video_helper (ScrnInfoPtr pScrn, pPriv->desired_crtc, &crtc_box); - if (crtc) + /* For textured video, we don't actually want to clip at all. */ + if (crtc && !pPriv->textured) { REGION_INIT (pScreen, &crtc_region_local, &crtc_box, 1); crtc_region = &crtc_region_local; -- cgit v1.2.3