diff mbox series

[v2,2/2] drm/atomic: Allow userspace to use damage clips with async flips

Message ID 20240702212215.109696-2-andrealmeid@igalia.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] drm/atomic: Allow userspace to use explicit sync with atomic async flips | expand

Commit Message

André Almeida July 2, 2024, 9:22 p.m. UTC
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.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
---
v2 changes:
- new patch

 drivers/gpu/drm/drm_atomic_uapi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Ser July 3, 2024, 6:04 a.m. UTC | #1
Looks good to me as well, thank you!

Reviewed-by: Simon Ser <contact@emersion.fr>
Simon Ser July 31, 2024, 6:52 p.m. UTC | #2
I've pushed both patches to drm-misc-fixes, thanks!

I've added a Fixes trailer accordingly.

I'll rebase my patch on top of these two.
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c
index 2e1d9391febe..7609c798d73d 100644
--- a/drivers/gpu/drm/drm_atomic_uapi.c
+++ b/drivers/gpu/drm/drm_atomic_uapi.c
@@ -1072,7 +1072,8 @@  int drm_atomic_set_property(struct drm_atomic_state *state,
 
 		if (async_flip &&
 		    prop != config->prop_fb_id &&
-		    prop != config->prop_in_fence_fd) {
+		    prop != config->prop_in_fence_fd &&
+		    prop != config->prop_fb_damage_clips) {
 			ret = drm_atomic_plane_get_property(plane, plane_state,
 							    prop, &old_val);
 			ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop);