Skip to content

Commit f85de24

Browse files
andrealmeidemersion
authored andcommitted
drm/atomic: Allow userspace to use damage clips with async flips
Allow userspace to use damage clips with atomic async flips. Damage clips are useful for partial plane updates, which can be helpful for clients that want to do flips asynchronously. Fixes: 0e26cc7 ("drm: Refuse to async flip with atomic prop changes") Signed-off-by: André Almeida <andrealmeid@igalia.com> Reviewed-by: Simon Ser <contact@emersion.fr> Signed-off-by: Simon Ser <contact@emersion.fr> Link: https://patchwork.freedesktop.org/patch/msgid/20240702212215.109696-2-andrealmeid@igalia.com
1 parent e0fa413 commit f85de24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/drm_atomic_uapi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,8 @@ int drm_atomic_set_property(struct drm_atomic_state *state,
10721072

10731073
if (async_flip &&
10741074
prop != config->prop_fb_id &&
1075-
prop != config->prop_in_fence_fd) {
1075+
prop != config->prop_in_fence_fd &&
1076+
prop != config->prop_fb_damage_clips) {
10761077
ret = drm_atomic_plane_get_property(plane, plane_state,
10771078
prop, &old_val);
10781079
ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop);

0 commit comments

Comments
 (0)