Commit 4f21877cb8b9e9f85a541af43b9ee66d9006bb69
Committed by
Inki Dae
1 parent
0ca824c7df
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
drm/exynos: consider both case of vflip and hflip.
This patch considers both case of vflip and hflip. If we want that the contents in buffer to be rotated to 180 degree, then we can use h,vflip or 180 degree. Changelog v2: - added EXYNOS_DRM_FLIP_BOTH enum value to avoid build warnning. Signed-off-by: Eunchul Kim <chulspro.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Showing 4 changed files with 5 additions and 1 deletions Side-by-side Diff
drivers/gpu/drm/exynos/exynos_drm_fimc.c
drivers/gpu/drm/exynos/exynos_drm_gsc.c
... | ... | @@ -1391,7 +1391,7 @@ |
1391 | 1391 | case EXYNOS_DRM_FLIP_NONE: |
1392 | 1392 | case EXYNOS_DRM_FLIP_VERTICAL: |
1393 | 1393 | case EXYNOS_DRM_FLIP_HORIZONTAL: |
1394 | - case EXYNOS_DRM_FLIP_VERTICAL | EXYNOS_DRM_FLIP_HORIZONTAL: | |
1394 | + case EXYNOS_DRM_FLIP_BOTH: | |
1395 | 1395 | return true; |
1396 | 1396 | default: |
1397 | 1397 | DRM_DEBUG_KMS("%s:invalid flip\n", __func__); |
drivers/gpu/drm/exynos/exynos_drm_rotator.c
include/uapi/drm/exynos_drm.h
... | ... | @@ -171,6 +171,8 @@ |
171 | 171 | EXYNOS_DRM_FLIP_NONE = (0 << 0), |
172 | 172 | EXYNOS_DRM_FLIP_VERTICAL = (1 << 0), |
173 | 173 | EXYNOS_DRM_FLIP_HORIZONTAL = (1 << 1), |
174 | + EXYNOS_DRM_FLIP_BOTH = EXYNOS_DRM_FLIP_VERTICAL | | |
175 | + EXYNOS_DRM_FLIP_HORIZONTAL, | |
174 | 176 | }; |
175 | 177 | |
176 | 178 | enum drm_exynos_degree { |