sna: Remove the replace indirection prior to performing write_boxes
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2013 11:30:39 +0000 (11:30 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2013 11:30:39 +0000 (11:30 +0000)
commit94f9beb8fbb31c2b6158e492e02ff05c9ebc674f
tree5ef215a34a966a7b8a63c52c82e26e76120886f5
parentad3959324c02de2e73e7d1142d42248f7dbb4518
sna: Remove the replace indirection prior to performing write_boxes

As write_boxes itself decides whether or not to stage the upload into
the destination bo, we can destroy the temporary allocation along the
write_boxes fallback path (i.e. after failing to map the destination
bo).

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