From 8a67d3f808fcc7c8c51553b1703e8312f28b87a1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 21 Dec 2012 10:21:06 +0000 Subject: [PATCH] sna/dri: Set the correct current_msc for the no readback path If we are asked to render immediately, then in order to pass the tests when comparing it to target, we need to set the current_msc to the ultimate future value, -1. Signed-off-by: Chris Wilson --- src/sna/sna_dri.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 72244f85..fd5e3de3 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -2090,10 +2090,10 @@ sna_dri_schedule_swap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front, goto blit_fallback; current_msc = vbl.reply.sequence; } else - current_msc = 0; + current_msc = -1; - DBG(("%s: target_msc=%u, current_msc=%u, divisor=%u\n", - __FUNCTION__, *target_msc, current_msc, divisor)); + DBG(("%s: target_msc=%u, current_msc=%u, divisor=%u\n", __FUNCTION__, + (uint32_t)*target_msc, (uint32_t)current_msc, (uint32_t)divisor)); if (divisor == 0 && current_msc >= *target_msc) { if (can_exchange(sna, draw, front, back)) {