Merge "disp: msm: sde: don't advertise rotation for virtual planes"

This commit is contained in:
qctecmdr
2020-07-14 12:28:45 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -1645,8 +1645,8 @@ static void sde_plane_rot_install_properties(struct drm_plane *plane,
struct sde_mdss_cfg *catalog) struct sde_mdss_cfg *catalog)
{ {
struct sde_plane *psde = to_sde_plane(plane); struct sde_plane *psde = to_sde_plane(plane);
unsigned long supported_rotations = DRM_MODE_ROTATE_0 | unsigned int supported_rotations = DRM_MODE_ROTATE_0 |
DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y; DRM_MODE_ROTATE_180 | DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y;
int ret = 0; int ret = 0;
if (!plane || !psde) { if (!plane || !psde) {
@@ -1657,9 +1657,8 @@ static void sde_plane_rot_install_properties(struct drm_plane *plane,
return; return;
} }
if (psde->features & BIT(SDE_SSPP_TRUE_INLINE_ROT)) if (!psde->is_virtual && psde->features & BIT(SDE_SSPP_TRUE_INLINE_ROT))
supported_rotations |= DRM_MODE_ROTATE_0 | DRM_MODE_ROTATE_90 | supported_rotations |= DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_270;
DRM_MODE_ROTATE_180 | DRM_MODE_ROTATE_270;
ret = drm_plane_create_rotation_property(plane, ret = drm_plane_create_rotation_property(plane,
DRM_MODE_ROTATE_0, supported_rotations); DRM_MODE_ROTATE_0, supported_rotations);