summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-14 12:34:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-14 12:50:35 +0000
commit23fb2cebbe1d4d7df7403a64635339efa08a4dfe (patch)
tree64a5ac3606bb06af6071ad919b2a90b9bf2320e7
parent5b0f3ff9a83b7cc932e96400999dc5e4a49369cb (diff)
sna/blt: Add a missing allocation check upon the source CPU pixmap
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_blt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index 0fec71cf..a4af20d9 100644
--- a/src/sna/sna_blt.c
+++ b/src/sna/sna_blt.c
@@ -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;