xserver/present
Ville Syrjälä 9c0b9cf21d 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: notbabaisyou <though-went-some-simple@proton.me>
2025-06-25 16:14:31 +02:00
..
meson.build present: unexport present_extension_init() 2025-06-12 17:21:45 +02:00
present.c present: Walk all children when setting window pixmaps 2025-06-25 16:14:26 +02:00
present.h present: unexport present_extension_init() 2025-06-12 17:21:45 +02:00
present_event.c dix: make LEGAL_NEW_RESOURCE() macro private 2025-06-12 17:21:43 +02:00
present_execute.c present: need to include dix-config.h 2025-02-23 17:18:46 +00:00
present_fake.c present: need to include dix-config.h 2025-02-23 17:18:46 +00:00
present_fence.c present: need to include dix-config.h 2025-02-23 17:18:46 +00:00
present_notify.c dix: unexport some lookup functions 2024-04-15 18:11:57 -07:00
present_priv.h present: use CloseScreen hook 2025-06-12 16:45:40 +02:00
present_request.c present: simplify dispatching 2025-06-12 17:21:42 +02:00
present_scmd.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
present_screen.c miext: move over extinit_priv.h from include 2025-06-12 17:21:46 +02:00
present_vblank.c present: Don't ping-pong between sync and async flips 2025-06-25 16:14:31 +02:00