Skip to contentSkip to conversation

intel/intel_chipset: Move IS_9XX below IS_GEN10.

PATCH In review Rodrigo Vivi 2 participants 2 messages Jun 30, 2017 – Jul 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel/intel_chipset: Move IS_9XX below IS_GEN10.

No functional change. Just organizing the code so it gets clear for future platforms.

Paulo deserves credits becuase he was the one that just noticed this IS_9XX was in the wrong position after CNL patches got introduced.

---
 intel/intel_chipset.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
intel/intel_chipset.h +9 -9
index 770d21f..3ff59ad 100644
@@ -499,15 +499,6 @@
 				 IS_GEMINILAKE(devid) || \
 				 IS_COFFEELAKE(devid))
 
-#define IS_9XX(dev)		(IS_GEN3(dev) || \
-				 IS_GEN4(dev) || \
-				 IS_GEN5(dev) || \
-				 IS_GEN6(dev) || \
-				 IS_GEN7(dev) || \
-				 IS_GEN8(dev) || \
-				 IS_GEN9(dev) || \
-				 IS_GEN10(dev))
-
 #define IS_CNL_Y(devid)		((devid) == PCI_CHIP_CANNONLAKE_Y_GT2_0 || \
 				 (devid) == PCI_CHIP_CANNONLAKE_Y_GT2_1 || \
 				 (devid) == PCI_CHIP_CANNONLAKE_Y_GT2_2 || \
@@ -525,4 +516,13 @@
 
 #define IS_GEN10(devid)		(IS_CANNONLAKE(devid))
 
+#define IS_9XX(dev)		(IS_GEN3(dev) || \
+				 IS_GEN4(dev) || \
+				 IS_GEN5(dev) || \
+				 IS_GEN6(dev) || \
+				 IS_GEN7(dev) || \
+				 IS_GEN8(dev) || \
+				 IS_GEN9(dev) || \
+				 IS_GEN10(dev))
+
 #endif /* _INTEL_CHIPSET_H */
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

Patch pushed to libdrm master.

Quoted 54 lines · Rodrigo Vivi

No functional change. Just organizing the code so it gets clear for future platforms.

Paulo deserves credits becuase he was the one that just noticed this IS_9XX was in the wrong position after CNL patches got introduced.

---
 intel/intel_chipset.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
intel/intel_chipset.h +9 -10
index 770d21f..3ff59ad 100644
@@ -499,15 +499,6 @@
                                 IS_GEMINILAKE(devid) || \
                                 IS_COFFEELAKE(devid))
 
-#define IS_9XX(dev)            (IS_GEN3(dev) || \
-                                IS_GEN4(dev) || \
-                                IS_GEN5(dev) || \
-                                IS_GEN6(dev) || \
-                                IS_GEN7(dev) || \
-                                IS_GEN8(dev) || \
-                                IS_GEN9(dev) || \
-                                IS_GEN10(dev))
-
 #define IS_CNL_Y(devid)                ((devid) == PCI_CHIP_CANNONLAKE_Y_GT2_0 || \
                                 (devid) == PCI_CHIP_CANNONLAKE_Y_GT2_1 || \
                                 (devid) == PCI_CHIP_CANNONLAKE_Y_GT2_2 || \
@@ -525,4 +516,13 @@
 
 #define IS_GEN10(devid)                (IS_CANNONLAKE(devid))
 
+#define IS_9XX(dev)            (IS_GEN3(dev) || \
+                                IS_GEN4(dev) || \
+                                IS_GEN5(dev) || \
+                                IS_GEN6(dev) || \
+                                IS_GEN7(dev) || \
+                                IS_GEN8(dev) || \
+                                IS_GEN9(dev) || \
+                                IS_GEN10(dev))
+
 #endif /* _INTEL_CHIPSET_H */
--

1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 6 lines
Rodrigo Vivi
Blog: http://blog.vivi.eng.br
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel