xf86-video-intel: src/sna/sna_dri.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Dec 21 02:27:21 PST 2012


 src/sna/sna_dri.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8a67d3f808fcc7c8c51553b1703e8312f28b87a1
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Dec 21 10:21:06 2012 +0000

    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 <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index 72244f8..fd5e3de 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)) {


More information about the xorg-commit mailing list