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>
This commit is contained in:
Chris Wilson 2012-06-06 17:05:13 +01:00
parent c553dcae2d
commit 06b1b875ba
1 changed files with 2 additions and 0 deletions

View File

@ -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;