xserver-multidpi/hw
Alex Goins 266d9868ca xf86-video-modesetting: Fix ms_queue_vblank(flags = MS_QUEUE_RELATIVE)
Change 677c32bc refactored all usages of drmWaitVBlank() into a helper function,
ms_queue_vblank().

ms_queue_vblank() takes in an MS_QUEUE_RELATIVE flag to indicate that the
sequence number is relative rather than absolute, but still treats the actual
sequence number as absolute, passing it through ms_crtc_msc_to_kernel_msc()
unconditionally before calling drmWaitVBlank().

ms_crtc_msc_to_kernel_msc() works by subtracting a vblank offset from the
provided sequence number, which only makes sense for absolute sequence numbers.
In the case of PRIME Sync, drmmode_SharedPixmapPrsentOnVBlank() passes in 1,
which results in a large negative vblank offset. After subtracting, we're left
with a relative sequence number of 100,000+, i.e. wait for 100,000+ vblanks...

In the relative case we want to pass in the sequence number unmodified. Simply
add a check to do this.

Signed-off-by: Alex Goins <agoins@nvidia.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
2017-10-27 10:00:47 -04:00
..
dmx meson: Don't use '' in link_with, ever 2017-10-24 10:53:56 -04:00
kdrive xephyr: Fix regeneration 2017-05-11 14:13:12 -04:00
vfb test: Add basic SYNC tests. 2017-09-20 13:19:27 -04:00
xfree86 xf86-video-modesetting: Fix ms_queue_vblank(flags = MS_QUEUE_RELATIVE) 2017-10-27 10:00:47 -04:00
xnest Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xquartz XQuartz: Hack around an issue that can occur on macOS due to background apps incorrectly stealing focus 2017-07-20 01:17:40 -07:00
xwayland xwayland: Avoid repeatedly looping through window ancestor chain 2017-09-13 11:51:10 -04:00
xwin xwin: automake: remove unused {SRCS, DEFS}_{NATIVEGDI, PRIMARYFB} 2017-08-22 10:59:41 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00