summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-04-06 14:36:33 -0700
committerCarl Worth <cworth@cworth.org>2009-04-07 12:32:58 -0700
commit940c2aad4d174b6609bdc49f8c99a4bc37926516 (patch)
tree18ca40b06cdb1da8c5ddc92c29276656a697b13a
parent63b4b5efac936c674dedad8125a8dbac4f000908 (diff)
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.
-rw-r--r--src/i830_video.c3
1 files changed, 2 insertions, 1 deletions
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;