Commit 4b4af74a authored by Simon Ser's avatar Simon Ser
Browse files

drm: allow DRM_MODE_PAGE_FLIP_ASYNC for atomic commits



If the driver supports it, allow user-space to supply the
DRM_MODE_PAGE_FLIP_ASYNC flag to request an async page-flip.
Set drm_crtc_state.async_flip accordingly.

Document that drivers will reject atomic commits if an async
flip isn't possible. This allows user-space to fall back to
something else. For instance, Xorg falls back to a blit.
Another option is to wait as close to the next vblank as
possible before performing the page-flip to reduce latency.

Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Co-developed-by: default avatarAndré Almeida <andrealmeid@igalia.com>
Signed-off-by: default avatarAndré Almeida <andrealmeid@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231122161941.320564-3-andrealmeid@igalia.com
parent 0e26cc72
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment