commit | b9bd2712fbc61174120f63d948e68f93d1ab410b | [log] [tgz] |
---|---|---|
author | Roman Stratiienko <r.stratiienko@gmail.com> | Sun Oct 15 01:52:00 2023 +0300 |
committer | Roman Stratiienko <r.stratiienko@gmail.com> | Sun Oct 15 02:16:45 2023 +0300 |
tree | 71095a6e6c192414baa3d0eec24f65615ebc60e0 | |
parent | 492739c5b3d0bffdb637c35ec46aa77885013e84 [diff] [blame] |
drm_hwcomposer: Fix DRM and HWC rotation direction misalignment [DRM API][1] uses a counter-clockwise direction, while [HWC API][2] uses a clockwise. [1]: https://elixir.bootlin.com/linux/v6.5.7/source/include/uapi/drm/drm_mode.h#L172 [2]: https://cs.android.com/android/platform/superproject/main/+/main:hardware/libhardware/include_all/hardware/hwcomposer_defs.h;l=96;drc=e9d7337d9d1edc0d8e3ece246ecde747e345e876 Closes: https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer/-/issues/78 Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
diff --git a/compositor/LayerData.h b/compositor/LayerData.h index 8f4b7aa..a808adc 100644 --- a/compositor/LayerData.h +++ b/compositor/LayerData.h
@@ -33,6 +33,7 @@ class DrmFbIdHandle; +/* Rotation is defined in the clockwise direction */ enum LayerTransform : uint32_t { kIdentity = 0, kFlipH = 1 << 0,