Commit 4f21877cb8b9e9f85a541af43b9ee66d9006bb69

Authored by Eunchul Kim
Committed by Inki Dae
1 parent 0ca824c7df

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
... ... @@ -1387,6 +1387,7 @@
1387 1387 case EXYNOS_DRM_FLIP_NONE:
1388 1388 case EXYNOS_DRM_FLIP_VERTICAL:
1389 1389 case EXYNOS_DRM_FLIP_HORIZONTAL:
  1390 + case EXYNOS_DRM_FLIP_BOTH:
1390 1391 return true;
1391 1392 default:
1392 1393 DRM_DEBUG_KMS("%s:invalid flip\n", __func__);
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
... ... @@ -513,6 +513,7 @@
513 513 case EXYNOS_DRM_FLIP_NONE:
514 514 case EXYNOS_DRM_FLIP_VERTICAL:
515 515 case EXYNOS_DRM_FLIP_HORIZONTAL:
  516 + case EXYNOS_DRM_FLIP_BOTH:
516 517 return true;
517 518 default:
518 519 DRM_DEBUG_KMS("%s:invalid flip\n", __func__);
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 {