summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-11-10 09:56:07 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-11-10 09:58:52 +0000
commit64dbcdd4de1fe1941196265d054272d7d93e5d59 (patch)
treedd2431605316acb4da845639001cc1d1f8397df8 /src/sna/sna.h
parent47f6c5b211c0458f2bf1e05a736e466bd8b64763 (diff)
sna/dri2: Add a specific recursion indicator for TearFree/DRI2
Avoid conflating the DRI3/Present flag for controlling TearFree by adding a separate flag to indicate when we are waiting inside the TearFree shadow handler to avoid recursion in DRI2. Reported-by: Andreas Reis <andreas.reis@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92873 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 7592f7b4..3c19aa5d 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -304,6 +304,7 @@ struct sna {
unsigned flip_active;
unsigned hidden;
bool shadow_enabled;
+ bool shadow_wait;
bool dirty;
int max_crtc_width, max_crtc_height;