glx/dri3: Request non-vsynced Present for swapinterval zero. (v3)
authorMario Kleiner <mario.kleiner.de@gmail.com>
Fri, 5 Dec 2014 07:42:31 +0000 (08:42 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 14 Dec 2014 15:09:49 +0000 (15:09 +0000)
commit455d3036fab2c5da7e589644f12435fb104a69fc
treeb91f427b997da6dbdd0c25d0e39ee54efcaa63bb
parentad8b0e8bf68850a57daba0b47629ca14807ea3ad
glx/dri3: Request non-vsynced Present for swapinterval zero. (v3)

Restores proper immediate tearing swap behaviour for
OpenGL bufferswap under DRI3/Present.

Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
v2: Add Frank Binns signed off by for his original earlier
patch from April 2014, which is identical to this one, and
Chris Wilsons reviewed tag from May 2014 for that patch, ergo
also for this one.

v3: Incorporate comment about triple buffering as suggested
by Axel Davy, and reference to relevant spec provided by
Eric Anholt.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/dri3_glx.c