From 815847e2b3db405f7f5a97459e6ed2f2b3b4d09e Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 8 Jun 2016 12:19:41 -0700 Subject: isl: Add an ISL_DEV_IS_G4X macro Signed-off-by: Jason Ekstrand Reviewed-by: Chad Versace --- src/intel/isl/isl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/intel/isl/isl.h') diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index eacc09fed72..b2ce6f59cc5 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -65,6 +65,10 @@ struct brw_image_param; (assert(ISL_DEV_GEN(__dev) == (__dev)->info->gen)) #endif +#ifndef ISL_DEV_IS_G4X +#define ISL_DEV_IS_G4X(__dev) ((__dev)->info->is_g4x) +#endif + #ifndef ISL_DEV_IS_HASWELL /** * @brief Get the hardware generation of isl_device. -- cgit v1.2.3