[mutter/wip/gbsneto/kms-transactions-on-steroids: 15/30] crtc/kms: Don't redefine META_MONITOR_N_TRANSFORMS



commit 1f3210f795b3f06d51be0031e0d6ae1588f5c670
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Mar 8 18:57:35 2019 +0100

    crtc/kms: Don't redefine META_MONITOR_N_TRANSFORMS
    
    https://gitlab.gnome.org/GNOME/mutter/issues/548
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/525

 src/backends/native/meta-crtc-kms.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/backends/native/meta-crtc-kms.c b/src/backends/native/meta-crtc-kms.c
index 5d606907a..1877903c4 100644
--- a/src/backends/native/meta-crtc-kms.c
+++ b/src/backends/native/meta-crtc-kms.c
@@ -35,8 +35,7 @@
 #define DRM_FORMAT_INVALID 0
 #endif
 
-#define ALL_TRANSFORMS (META_MONITOR_TRANSFORM_FLIPPED_270 + 1)
-#define ALL_TRANSFORMS_MASK ((1 << ALL_TRANSFORMS) - 1)
+#define ALL_TRANSFORMS_MASK ((1 << META_MONITOR_N_TRANSFORMS) - 1)
 
 typedef struct _MetaCrtcKms
 {
@@ -44,7 +43,7 @@ typedef struct _MetaCrtcKms
 
   uint32_t primary_plane_id;
   uint32_t rotation_prop_id;
-  uint32_t rotation_map[ALL_TRANSFORMS];
+  uint32_t rotation_map[META_MONITOR_N_TRANSFORMS];
   uint32_t all_hw_transforms;
 
   /*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]