Skip to contentSkip to conversation

Add missing plane settings when async update

PATCH In review Hsiao Chien Sung 3 participants 4 messages Sep 18, 2023 – Oct 26, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add missing plane settings when async update

Fix an issue that plane coordinate was not saved when calling async update.

Hsiao Chien Sung (1):
drm/mediatek: Add missing plane settings when async update

 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.18.0

#1 lore raw

PATCH 1/1 drm/mediatek: Add missing plane settings when async update

Fix an issue that plane coordinate was not saved when calling async update.

Fixes 920fffcc8912 ("drm/mediatek: update cursors by using async atomic update")
---
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/mediatek/mtk_drm_plane.c +2 -0
index db2f70ae060d..58e9f93c38c4 100644
@@ -206,6 +206,8 @@ static void mtk_plane_atomic_async_update(struct drm_plane *plane,
 	plane->state->src_y = new_state->src_y;
 	plane->state->src_h = new_state->src_h;
 	plane->state->src_w = new_state->src_w;
+	plane->state->dst.x1 = new_state->dst.x1;
+	plane->state->dst.y1 = new_state->dst.y1;
 	swap(plane->state->fb, new_state->fb);
 
 	mtk_plane_update_new_state(new_state, new_plane_state);

--
2.18.0

Reviewed-by on v1 1/1
#3 lore raw

Re: [PATCH 1/1] drm/mediatek: Add missing plane settings when async update

In reply to Hsiao Chien Sung

Hi, Hsiao-chien:

Quoted 2 lines · Hsiao Chien Sung

Fix an issue that plane coordinate was not saved when calling async update.

Quoted 27 lines
Fixes 920fffcc8912 ("drm/mediatek: update cursors by using async

atomic update")

---
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/mediatek/mtk_drm_plane.c +2 -0
index db2f70ae060d..58e9f93c38c4 100644
@@ -206,6 +206,8 @@ static void mtk_plane_atomic_async_update(struct
 drm_plane *plane,
 	plane->state->src_y = new_state->src_y;
 	plane->state->src_h = new_state->src_h;
 	plane->state->src_w = new_state->src_w;
+	plane->state->dst.x1 = new_state->dst.x1;
+	plane->state->dst.y1 = new_state->dst.y1;
 	swap(plane->state->fb, new_state->fb);
 

mtk_plane_update_new_state(new_state, new_plane_state);
--
2.18.0