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

Chris Wilson ickle at kemper.freedesktop.org
Thu Jun 6 15:19:46 PDT 2013


 src/sna/sna_video_textured.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ab47433b20a623bf790acfbf2005a8782d177f64
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Jun 6 23:15:14 2013 +0100

    sna/video: Select vsync by default based on "SwapbuffersWait"
    
    To be strictly identical to the DRI code, we should override the user
    when the option is set. However, this a baby step for simple bug
    testing.
    
    References: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1176647
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index 96f4f55..b9ccec0 100644
--- a/src/sna/sna_video_textured.c
+++ b/src/sna/sna_video_textured.c
@@ -397,7 +397,7 @@ void sna_video_textured_setup(struct sna *sna, ScreenPtr screen)
 		v->textured = true;
 		v->alignment = 4;
 		v->rotation = RR_Rotate_0;
-		v->SyncToVblank = 1;
+		v->SyncToVblank = (sna->flags & SNA_NO_WAIT) == 0;
 
 		RegionNull(&v->clip);
 


More information about the xorg-commit mailing list