i965: Rename IS_GT1 and IS_GT2 to IS_SNB_GT1 and IS_SNB_GT2.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 06:53:52 +0000 (23:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 08:31:29 +0000 (01:31 -0700)
This should help distinguish Sandybridge GT1/GT2 from Ivybridge GT1/GT2.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/intel/intel_chipset.h

index a7b7c6f086bb2630b3c4ea8ccb7ac43f7c744bbb..df753abed02bb40f9eda51728e5a88fa642f6e07 100644 (file)
@@ -195,7 +195,7 @@ GLboolean brwCreateContext( int api,
         assert(!"Unknown gen7 device.");
       }
    } else if (intel->gen == 6) {
-      if (IS_GT2(intel->intelScreen->deviceID)) {
+      if (IS_SNB_GT2(intel->intelScreen->deviceID)) {
         /* This could possibly be 80, but is supposed to require
          * disabling of WIZ hashing (bit 6 of GT_MODE, 0x20d0) and a
          * GPU reset to change.
index 40fb69049c1e16564587798f175ec0bd1b75afc0..ca5c295545f518a6780b26986ec32832effaa8d2 100644 (file)
 /* Compat macro for intel_decode.c */
 #define IS_IRONLAKE(devid)     IS_GEN5(devid)
 
-#define IS_GT1(devid)          (devid == PCI_CHIP_SANDYBRIDGE_GT1 || \
+#define IS_SNB_GT1(devid)      (devid == PCI_CHIP_SANDYBRIDGE_GT1 || \
                                 devid == PCI_CHIP_SANDYBRIDGE_M_GT1 || \
                                 devid == PCI_CHIP_SANDYBRIDGE_S)
 
-#define IS_GT2(devid)          (devid == PCI_CHIP_SANDYBRIDGE_GT2 || \
+#define IS_SNB_GT2(devid)      (devid == PCI_CHIP_SANDYBRIDGE_GT2 || \
                                 devid == PCI_CHIP_SANDYBRIDGE_GT2_PLUS || \
                                 devid == PCI_CHIP_SANDYBRIDGE_M_GT2 || \
                                 devid == PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS)
 
-#define IS_GEN6(devid)         (IS_GT1(devid) || IS_GT2(devid))
+#define IS_GEN6(devid)         (IS_SNB_GT1(devid) || IS_SNB_GT2(devid))
 
 #define IS_IVB_GT1(devid)       (devid == PCI_CHIP_IVYBRIDGE_GT1 || \
                                 devid == PCI_CHIP_IVYBRIDGE_M_GT1 || \