summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-19 09:47:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-19 09:47:02 +0100
commitb1aab55d594f03e51c3abf1743d00c56ef6d7797 (patch)
tree7a6c70a6e6592c4fe83dfb8c8b031754c6cd8dfc /src/sna/sna.h
parentf4b930318c68e0e07d677ebc7b4caa27912561db (diff)
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>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 76869444..1985ad84 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -290,6 +290,7 @@ struct sna {
int max_crtc_width, max_crtc_height;
RegionRec shadow_region;
+ RegionRec shadow_cancel;
struct list shadow_crtc;
bool shadow_dirty;