sna/blt: Add a missing allocation check upon the source CPU pixmap

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-14 12:34:03 +00:00
parent 5b0f3ff9a8
commit 23fb2cebbe
1 changed files with 3 additions and 0 deletions

View File

@ -1140,6 +1140,9 @@ prepare_blt_put(struct sna *sna,
GXcopy))
return FALSE;
} else {
if (!sna_pixmap_move_to_cpu(src, false))
return FALSE;
op->blt = blt_put_composite;
op->box = blt_put_composite_box;
op->boxes = blt_put_composite_boxes;