diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-07-26 18:40:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-07-26 18:41:03 +0100 |
commit | 7e5e006be496f338337ac9baea9be5fa5fbd8fd0 (patch) | |
tree | 61dea1c4b65e9b75d9a3589bb943b0ed2009a4c1 /src/sna/sna_driver.c | |
parent | 50f3e9c41c6de98f917a9ddc78aabdda421f920a (diff) |
sna: Add a few more DBG and assertions around Present/TearFree interactions
References: https://bugs.freedesktop.org/show_bug.cgi?id=91467#c12
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index de2bb770..43d2707d 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -681,9 +681,10 @@ cleanup: static bool has_shadow(struct sna *sna) { - if (!sna->mode.shadow_damage) + if (!sna->mode.shadow_enabled) return false; + assert(sna->mode.shadow_damage); if (RegionNil(DamageRegion(sna->mode.shadow_damage))) return false; |