xserver/present
Ville Syrjälä a80aff283b present: Don't ping-pong between sync and async flips
Many Intel GPUs can't switch between sync and async flips
willy nilly. Sometimes that change itself will take one
extra frame. This means that constant ping-pong between
sync and async flips is only going to cause problems.
Stay in async flip mode as long as the client is requesting
it.

The present protocol spec does say:
"If 'options' contains PresentOptionAsync, and the 'target-msc'
 is less than or equal to the current msc for 'window', then
 the operation will be performed as soon as possible, not
 necessarily waiting for the next vertical blank interval."

So there is an expectation that a future target-msc will
still be respected even when PresentOptionAsync is specified.
Staying in async flip mode won't actually change that given
that present_scmd_pixmap() takes the flip mode into account
when calculating exec_msc. So visually the flip should still
happen on the correct target_msc regardles of whether we
executed it as sync or async.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2025-03-03 12:53:49 +02:00
..
meson.build build: Move epoll dependency check 2024-09-02 11:52:26 +00:00
present.c present: Walk all children when setting window pixmaps 2025-03-03 12:53:49 +02:00
present.h modesetting: unflip before any setcrtc() calls 2023-12-16 04:36:39 +00:00
present_event.c prevent name clash on Windows w/ RT_* defines 2024-04-15 18:59:23 -07:00
present_execute.c xwayland: add support for wp_linux_drm_syncobj_v1 2024-04-09 06:11:03 +00:00
present_fake.c Don't hardcode fps for fake screen 2021-07-29 08:09:00 +00:00
present_fence.c present: Include dix-config.h instead of xorg-config.h 2020-09-15 11:41:34 +02:00
present_notify.c dix: unexport some lookup functions 2024-04-15 18:11:57 -07:00
present_priv.h Present: add PresentCapabilitySyncobj and PresentPixmapSynced 2024-04-09 06:11:03 +00:00
present_request.c present: drop swapping request length fields 2025-02-06 22:28:49 +00:00
present_scmd.c present: present_scmd: drop obsolete include of <time.h> 2024-04-15 18:02:11 +00:00
present_screen.c rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00
present_vblank.c present: Don't ping-pong between sync and async flips 2025-03-03 12:53:49 +02:00
presentext.h present: Add Present extension 2013-10-31 16:59:18 -07:00