summaryrefslogtreecommitdiff
path: root/src/intel_driver.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-05-04 17:43:19 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-03 12:11:59 +0100
commit8c880aa34c522b0d67cbb932771f00c947d00dec (patch)
treee5f09f3497c36e2779cd985f9f0959b82b894cd7 /src/intel_driver.h
parent0c0d1d956a8ba37d9e6f4a5e4f52018c8ce498e5 (diff)
uxa: add IS_HSW() macro to distinguish Haswell from Ivybridge
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/intel_driver.h')
-rw-r--r--src/intel_driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel_driver.h b/src/intel_driver.h
index 31c11f68..d88f225b 100644
--- a/src/intel_driver.h
+++ b/src/intel_driver.h
@@ -218,6 +218,7 @@
#define IS_GEN5(intel) IS_GENx(intel, 5)
#define IS_GEN6(intel) IS_GENx(intel, 6)
#define IS_GEN7(intel) IS_GENx(intel, 7)
+#define IS_HSW(intel) (INTEL_INFO(intel)->gen == 75)
/* Some chips have specific errata (or limits) that we need to workaround. */
#define IS_I830(intel) (DEVICE_ID((intel)->PciInfo) == PCI_CHIP_I830_M)