diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-17 17:16:56 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-17 17:16:56 +0100 |
commit | 930b2c76c78dabc42749f819cb1f9566a6d870a1 (patch) | |
tree | 70775138448d20ee4270c4c0b9a58ff293b13a04 | |
parent | 2cf2312372ebde4168ae1e66a97d5c6b8daff1c3 (diff) |
sna: Check return of source_bo for a potential failure
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index d63b1f40..3b0871dd 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -11458,6 +11458,12 @@ sna_poly_fill_rect_tiled_blt(DrawablePtr drawable, bool ret; tile_bo = sna_pixmap_get_source_bo(tile); + if (tile_bo == NULL) { + DBG(("%s: unable to move tile go GPU, fallback\n", + __FUNCTION__)); + return false; + } + ret = sna_poly_fill_rect_tiled_8x8_blt(drawable, bo, damage, tile_bo, gc, n, rect, extents, clipped); |