diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-06 17:05:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-06 17:05:13 +0100 |
commit | 06b1b875ba13227ddaf7f28dbdcdaa3eb49f0857 (patch) | |
tree | 559b4bdb567d405ae0c6762f6a0d6d2834a27f6b /src/i915_video.c | |
parent | c553dcae2dd714cac413ffc7c7779cd78c9a3e61 (diff) |
uxa/i915: check for failure to allocate temporary destination
If the target drawable is too large for the render pipeline, we need to
create a temporary surface. This may fail, so abort if it does.
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i915_video.c')
-rw-r--r-- | src/i915_video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i915_video.c b/src/i915_video.c index c73615e6..ae2e6bb5 100644 --- a/src/i915_video.c +++ b/src/i915_video.c @@ -74,6 +74,8 @@ I915DisplayVideoTextured(ScrnInfoPtr scrn, dstRegion->extents.y2 - dyo, pixmap->drawable.depth, CREATE_PIXMAP_USAGE_SCRATCH); + if (target == NULL) + return; pix_xoff = -dxo; pix_yoff = -dyo; |