drm/mediatek: Add plane check in async_check function
MTK do rotation checking and transferring in layer check function,
but we do not check that in atomic_check,
so add back in atomic_check function.
Fixes: 920fffcc89
("drm/mediatek: update cursors by using async atomic update")
Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
This commit is contained in:
parent
26d696192a
commit
551c5f5574
|
@ -80,6 +80,7 @@ static int mtk_plane_atomic_async_check(struct drm_plane *plane,
|
||||||
struct drm_plane_state *state)
|
struct drm_plane_state *state)
|
||||||
{
|
{
|
||||||
struct drm_crtc_state *crtc_state;
|
struct drm_crtc_state *crtc_state;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (plane != state->crtc->cursor)
|
if (plane != state->crtc->cursor)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -90,6 +91,11 @@ static int mtk_plane_atomic_async_check(struct drm_plane *plane,
|
||||||
if (!plane->state->fb)
|
if (!plane->state->fb)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
ret = mtk_drm_crtc_plane_check(state->crtc, plane,
|
||||||
|
to_mtk_plane_state(state));
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
if (state->state)
|
if (state->state)
|
||||||
crtc_state = drm_atomic_get_existing_crtc_state(state->state,
|
crtc_state = drm_atomic_get_existing_crtc_state(state->state,
|
||||||
state->crtc);
|
state->crtc);
|
||||||
|
|
Loading…
Reference in New Issue