summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-03-16 08:37:24 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-03-16 08:40:08 +0000
commitee740778f5d5355c04f6fc4564f598993b106d62 (patch)
treebe60fca49d9f93468d5902fa96db23ca612d0aa0
parent014fc7abb7b2cc2110e3ab9a0bd6f7cff2c64c05 (diff)
i915/video: Clip indirect Xv output
In the case of a singular clip box and rendering onto the front buffer larger than 2048, the clip extents were being ignored. Here we can simply reduce the size of the indirect pixmap to the clip extents. Reported-by: Michael Chang <mchang@novell.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35346 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i915_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i915_video.c b/src/i915_video.c
index 861bea61..d46c6d15 100644
--- a/src/i915_video.c
+++ b/src/i915_video.c
@@ -69,7 +69,8 @@ I915DisplayVideoTextured(ScrnInfoPtr scrn,
ScreenPtr screen = pixmap->drawable.pScreen;
target = screen->CreatePixmap(screen,
- drw_w, drw_h,
+ dstRegion->extents.x2 - dxo,
+ dstRegion->extents.y2 - dyo,
pixmap->drawable.depth,
CREATE_PIXMAP_USAGE_SCRATCH);