diff options
author | Hsiao Chien Sung <shawn.sung@mediatek.com> | 2024-06-19 18:38:48 +0200 |
---|---|---|
committer | Chun-Kuang Hu <chunkuang.hu@kernel.org> | 2024-06-20 15:57:35 +0200 |
commit | 74608d8feefd1675388f23362aac8df4ac3af931 (patch) | |
tree | 3f689a03d8bb0d90b6c9ab35ea7a9cdb789117a7 /drivers/gpu/drm/mediatek/mtk_plane.c | |
parent | drm/mediatek: Add OVL compatible name for MT8195 (diff) | |
download | linux-74608d8feefd1675388f23362aac8df4ac3af931.tar.xz linux-74608d8feefd1675388f23362aac8df4ac3af931.zip |
drm/mediatek: Add DRM_MODE_ROTATE_0 to rotation property
Always add DRM_MODE_ROTATE_0 to rotation property to meet
IGT's (Intel GPU Tools) requirement.
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240620-igt-v3-8-a9d62d2e2c7e@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_plane.c')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_plane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_plane.c b/drivers/gpu/drm/mediatek/mtk_plane.c index a74b26d35985..1723d4333f37 100644 --- a/drivers/gpu/drm/mediatek/mtk_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_plane.c @@ -338,7 +338,7 @@ int mtk_plane_init(struct drm_device *dev, struct drm_plane *plane, return err; } - if (supported_rotations & ~DRM_MODE_ROTATE_0) { + if (supported_rotations) { err = drm_plane_create_rotation_property(plane, DRM_MODE_ROTATE_0, supported_rotations); |