mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "disp: msm: sde: don't advertise rotation for virtual planes"
This commit is contained in:
commit
e3dc3592ec
1 changed files with 4 additions and 5 deletions
|
|
@ -1645,8 +1645,8 @@ static void sde_plane_rot_install_properties(struct drm_plane *plane,
|
|||
struct sde_mdss_cfg *catalog)
|
||||
{
|
||||
struct sde_plane *psde = to_sde_plane(plane);
|
||||
unsigned long supported_rotations = DRM_MODE_ROTATE_0 |
|
||||
DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y;
|
||||
unsigned int supported_rotations = DRM_MODE_ROTATE_0 |
|
||||
DRM_MODE_ROTATE_180 | DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y;
|
||||
int ret = 0;
|
||||
|
||||
if (!plane || !psde) {
|
||||
|
|
@ -1657,9 +1657,8 @@ static void sde_plane_rot_install_properties(struct drm_plane *plane,
|
|||
return;
|
||||
}
|
||||
|
||||
if (psde->features & BIT(SDE_SSPP_TRUE_INLINE_ROT))
|
||||
supported_rotations |= DRM_MODE_ROTATE_0 | DRM_MODE_ROTATE_90 |
|
||||
DRM_MODE_ROTATE_180 | DRM_MODE_ROTATE_270;
|
||||
if (!psde->is_virtual && psde->features & BIT(SDE_SSPP_TRUE_INLINE_ROT))
|
||||
supported_rotations |= DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_270;
|
||||
|
||||
ret = drm_plane_create_rotation_property(plane,
|
||||
DRM_MODE_ROTATE_0, supported_rotations);
|
||||
|
|
|
|||
Loading…
Reference in a new issue