xserver/present
Ville Syrjälä 68283a77c6 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>
2026-02-14 15:58:51 -08:00
..
meson.build build: Move epoll dependency check 2026-01-25 10:39:56 -08:00
present.c present: Walk all children when setting window pixmaps 2026-02-14 15:58:51 -08:00
present.h present: need to include <X11/Xfuncproto.h> 2026-01-25 10:40:00 -08:00
present_event.c present: need to include geext.h 2026-01-25 10:40:00 -08:00
present_execute.c present: need to include dix-config.h 2026-01-25 10:40:00 -08:00
present_fake.c present: need to include dix-config.h 2026-01-25 10:40:00 -08:00
present_fence.c present: need to include dix-config.h 2026-01-25 10:40:00 -08:00
present_notify.c present: Fix use-after-free in present_create_notifies() 2026-01-25 10:40:03 -08:00
present_priv.h present: fix prototype for present_select_input() 2026-01-25 10:40:00 -08:00
present_request.c present: drop swapping request length fields 2026-01-25 10:39:59 -08:00
present_scmd.c present: need to include dix-config.h 2026-01-25 10:40:00 -08:00
present_screen.c present: need to include dix-config.h 2026-01-25 10:40:00 -08:00
present_vblank.c present: Don't ping-pong between sync and async flips 2026-02-14 15:58:51 -08:00
presentext.h present: need to include <X11/Xfuncproto.h> 2026-01-25 10:40:00 -08:00