sna: Always readback shadow damage after replacing the buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jun 2014 08:47:02 +0000 (09:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jun 2014 08:47:02 +0000 (09:47 +0100)
commitb1aab55d594f03e51c3abf1743d00c56ef6d7797
tree7a6c70a6e6592c4fe83dfb8c8b031754c6cd8dfc
parentf4b930318c68e0e07d677ebc7b4caa27912561db
sna: Always readback shadow damage after replacing the buffer

Instead track what we explicitly want to discard for the next operation,
so that we don't have to copy back the whole buffer if we have to
replace the shadow and intend to overwrite it all.

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