diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-14 12:34:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-14 12:50:35 +0000 |
commit | 23fb2cebbe1d4d7df7403a64635339efa08a4dfe (patch) | |
tree | 64a5ac3606bb06af6071ad919b2a90b9bf2320e7 | |
parent | 5b0f3ff9a83b7cc932e96400999dc5e4a49369cb (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.c | 3 |
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; |