From: Jason Ekstrand Date: Wed, 8 Jun 2016 19:19:41 +0000 (-0700) Subject: isl: Add an ISL_DEV_IS_G4X macro X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=815847e2b3db405f7f5a97459e6ed2f2b3b4d09e;p=mesa.git isl: Add an ISL_DEV_IS_G4X macro Signed-off-by: Jason Ekstrand Reviewed-by: Chad Versace --- 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.