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

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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment