From 8c880aa34c522b0d67cbb932771f00c947d00dec Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 4 May 2012 17:43:19 +0200 Subject: uxa: add IS_HSW() macro to distinguish Haswell from Ivybridge Signed-off-by: Gwenole Beauchesne --- src/intel_driver.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel_driver.h') 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) -- cgit v1.2.3