sna: Rearrange damage allocation to handle malloc failure more gracefully
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Jan 2014 21:48:33 +0000 (21:48 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Jan 2014 21:48:33 +0000 (21:48 +0000)
commit47effa1854e331643302146db238e6b092de8a9a
tree9559c3f2f6155975a888c70f996ed133fc361eb9
parentad7daf9aae487af13c0578de95652675d4d2ed7d
sna: Rearrange damage allocation to handle malloc failure more gracefully

If we fail to allocate new damage boxes, first try collescing the
existing boxes to free up memory.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_damage.c