mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 11:01:43 +00:00
drm/mediatek: Add fb swap in async_update
Besides x, y position, width and height,
fb also need updating in async update.
Fixes: 920fffcc89
("drm/mediatek: update cursors by using async atomic update")
Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
This commit is contained in:
parent
551c5f5574
commit
c12b59adf2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user