diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-03-16 08:37:24 +0000 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2011-03-16 20:20:14 +0000 |
commit | c4c9cb20d00784ed40631a72d9cb061c8b6d1b6c (patch) | |
tree | 32556041b265c307a63b1796ad53174de57e78ff | |
parent | cdd2895372d8406c1010d6cbf2c189fd061908e9 (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>
(cherry picked from commit ee740778f5d5355c04f6fc4564f598993b106d62)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r-- | src/i915_video.c | 3 |
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); |