Commit c12b59ad authored by Bibby Hsieh's avatar Bibby Hsieh Committed by CK Hu
Browse files

drm/mediatek: Add fb swap in async_update



Besides x, y position, width and height,
fb also need updating in async update.

Fixes: 920fffcc ("drm/mediatek: update cursors by using async atomic update")

Signed-off-by: default avatarBibby Hsieh <bibby.hsieh@mediatek.com>
Tested-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent 551c5f55
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ 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;
	swap(plane->state->fb, new_state->fb);
	state->pending.async_dirty = true;

	mtk_drm_crtc_async_update(new_state->crtc, plane, new_state);