Merge "disp: msm: sde: don't advertise rotation for virtual planes"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
e3dc3592ec
@@ -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);
|
||||||
|
Reference in New Issue
Block a user