summaryrefslogtreecommitdiff
path: root/msm8998
diff options
context:
space:
mode:
authorAlistair Strachan <astrachan@google.com>2019-04-23 09:57:33 -0700
committerAlistair Strachan <astrachan@google.com>2019-04-23 16:28:20 -0700
commita0137187af1739d2740475ce6980a7bc5ecad8b5 (patch)
treeb71c500326e569082ad0584b2bfd64f55dc32d34 /msm8998
parente3866e8e7b14c571c3702b744c80a3f722004068 (diff)
downloaddisplay-a0137187af1739d2740475ce6980a7bc5ecad8b5.tar.gz
sdm: core: Use upstream DRM_MODE_REFLECT_ defines
We're trying to wean ourselves off of the obsolete non-upstream defines, see the attempt in aosp/948138, which had to be reverted due to this vendor code. Bug: 131120033 Change-Id: I1b8fc02f21a914b5cd70e65fc91d582ecb2584a3 Signed-off-by: Alistair Strachan <astrachan@google.com>
Diffstat (limited to 'msm8998')
-rw-r--r--msm8998/sdm/libs/core/drm/hw_device_drm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/msm8998/sdm/libs/core/drm/hw_device_drm.cpp b/msm8998/sdm/libs/core/drm/hw_device_drm.cpp
index 4bbd0f60..af7ce6e5 100644
--- a/msm8998/sdm/libs/core/drm/hw_device_drm.cpp
+++ b/msm8998/sdm/libs/core/drm/hw_device_drm.cpp
@@ -414,10 +414,10 @@ void HWDeviceDRM::SetupAtomic(HWLayers *hw_layers, bool validate) {
// In case of rotation, rotator handles flips
if (!needs_rotation) {
if (layer.transform.flip_horizontal) {
- rot_bit_mask |= 1 << DRM_REFLECT_X;
+ rot_bit_mask |= DRM_MODE_REFLECT_X;
}
if (layer.transform.flip_vertical) {
- rot_bit_mask |= 1 << DRM_REFLECT_Y;
+ rot_bit_mask |= DRM_MODE_REFLECT_Y;
}
}