sna: Add missing alloc failure check for creating tile source
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
9cc6f7ccc5
commit
c8502e350c
|
|
@ -8767,6 +8767,9 @@ sna_pixmap_get_source_bo(PixmapPtr pixmap)
|
|||
pixmap->drawable.bitsPerPixel,
|
||||
KGEM_BUFFER_WRITE_INPLACE,
|
||||
&ptr);
|
||||
if (upload == NULL)
|
||||
return NULL;
|
||||
|
||||
memcpy_blt(pixmap->devPrivate.ptr, ptr,
|
||||
pixmap->drawable.bitsPerPixel,
|
||||
pixmap->devKind, upload->pitch,
|
||||
|
|
|
|||
Loading…
Reference in New Issue