diff options
author | Bibby Hsieh <bibby.hsieh@mediatek.com> | 2020-02-13 04:23:53 +0300 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2020-02-18 10:41:51 +0300 |
commit | c12b59adf21329b97609a9e23519055d6877c7b1 (patch) | |
tree | 735ff407577f64e86903862c638e3907bbf3552c /drivers/gpu/drm/mediatek | |
parent | 551c5f5574759802b2549709b92bfdc7ddf36972 (diff) | |
download | linux-c12b59adf21329b97609a9e23519055d6877c7b1.tar.xz |
drm/mediatek: Add fb swap in async_update
Besides x, y position, width and height,
fb also need updating in async update.
Fixes: 920fffcc8912 ("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>
Diffstat (limited to 'drivers/gpu/drm/mediatek')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_plane.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c index 61cb7ddc117d..c2bd683a87c8 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c @@ -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); |