diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-05-04 17:43:19 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-03 12:11:59 +0100 |
commit | 8c880aa34c522b0d67cbb932771f00c947d00dec (patch) | |
tree | e5f09f3497c36e2779cd985f9f0959b82b894cd7 /src/intel_driver.h | |
parent | 0c0d1d956a8ba37d9e6f4a5e4f52018c8ce498e5 (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.h | 1 |
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) |