diff options
author | Yongqiang Niu <yongqiang.niu@mediatek.com> | 2019-11-27 18:04:19 +0800 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2019-12-09 09:29:05 +0800 |
commit | 92c17f6043647652e1f4a772636e4288d4ecea3e (patch) | |
tree | dcded1b8c41e29edf2adba44538efd3dde6581ae /lib/test_overflow.c | |
parent | 13b0ba33d78b32384ea38abd03bc2b795fcab194 (diff) |
drm/mediatek: Fix can't get component for external display plane.
The original logic is ok for primary display, but will not find out
component for external display.
For example, plane->index is 6 for external display, but there are only
2 layer nr in external display, and this condition will never happen:
if (plane->index < (count + mtk_ddp_comp_layer_nr(comp)))
Fix this by using the offset of the plane to mtk_crtc->planes as index,
instead of plane->index.
Fixes: d6b53f68356f ("drm/mediatek: Add helper to get component for a plane")
Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions