Skip to content

Commit e0fa413

Browse files
andrealmeidemersion
authored andcommitted
drm/atomic: Allow userspace to use explicit sync with atomic async flips
Allow userspace to use explicit synchronization with atomic async flips. That means that the flip will wait for some hardware fence, and then will flip as soon as possible (async) in regard of the vblank. Fixes: 0e26cc7 ("drm: Refuse to async flip with atomic prop changes") Signed-off-by: André Almeida <[email protected]> Reviewed-by: Simon Ser <[email protected]> Signed-off-by: Simon Ser <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0ce9192 commit e0fa413

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/drm_atomic_uapi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,9 @@ int drm_atomic_set_property(struct drm_atomic_state *state,
10701070
break;
10711071
}
10721072

1073-
if (async_flip && prop != config->prop_fb_id) {
1073+
if (async_flip &&
1074+
prop != config->prop_fb_id &&
1075+
prop != config->prop_in_fence_fd) {
10741076
ret = drm_atomic_plane_get_property(plane, plane_state,
10751077
prop, &old_val);
10761078
ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop);

0 commit comments

Comments
 (0)