summaryrefslogtreecommitdiff
path: root/src/sna/sna_dri2.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-11-10 11:27:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-11-10 11:28:50 +0000
commit5a18f1fc7e90484729c8e3bb8224658a585998ae (patch)
treeaf5d418845d6e041df22742f4e2b6677f8484da1 /src/sna/sna_dri2.c
parent64dbcdd4de1fe1941196265d054272d7d93e5d59 (diff)
sna/dri2: Flip logic for shadow_wait
Simply sedding the name over to the new variable was insufficient as it is now the logical opposite. Fixes commit 64dbcdd4de1fe1941196265d054272d7d93e5d59 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Nov 10 09:56:07 2015 +0000 sna/dri2: Add a specific recursion indicator for TearFree/DRI2 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri2.c')
-rw-r--r--src/sna/sna_dri2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index e9d91591..6f5e9f7f 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -2464,7 +2464,7 @@ static void chain_swap(struct sna_dri2_event *chain)
switch (chain->type) {
case SWAP_COMPLETE:
DBG(("%s: emitting chained vsync'ed blit\n", __FUNCTION__));
- if (chain->sna->mode.shadow && !chain->sna->mode.shadow_wait) {
+ if (chain->sna->mode.shadow && chain->sna->mode.shadow_wait) {
/* recursed from wait_for_shadow(), simply requeue */
DBG(("%s -- recursed from wait_for_shadow(), requeuing\n", __FUNCTION__));
if (sna_next_vblank(chain))
@@ -2561,7 +2561,7 @@ void sna_dri2_vblank_handler(struct drm_event_vblank *event)
/* else fall through to blit */
case SWAP:
assert(info->signal);
- if (sna->mode.shadow && !sna->mode.shadow_wait) {
+ if (sna->mode.shadow && sna->mode.shadow_wait) {
/* recursed from wait_for_shadow(), simply requeue */
DBG(("%s -- recursed from wait_for_shadow(), requeuing\n", __FUNCTION__));
} else if (can_xchg(info->sna, draw, info->front, info->back)) {
@@ -2599,7 +2599,7 @@ void sna_dri2_vblank_handler(struct drm_event_vblank *event)
}
if (info->pending.bo) {
- if (sna->mode.shadow && !sna->mode.shadow_wait) {
+ if (sna->mode.shadow && sna->mode.shadow_wait) {
/* recursed from wait_for_shadow(), simply requeue */
DBG(("%s -- recursed from wait_for_shadow(), requeuing\n", __FUNCTION__));
if (sna_next_vblank(info))