isl: Add an ISL_DEV_IS_G4X macro
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 8 Jun 2016 19:19:41 +0000 (12:19 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Jul 2016 22:53:48 +0000 (15:53 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/intel/isl/isl.h

index eacc09fed729b7859c77b73676b923c6f375a760..b2ce6f59cc5c5061efcd4c31cbc2f2d6c1d9717b 100644 (file)
@@ -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.