[Mesa-dev] [PATCH v4 06/34] isl: Add an ISL_DEV_IS_G4X macro

Jason Ekstrand jason at jlekstrand.net
Thu Jul 14 00:16:26 UTC 2016


Reviewed-by: Chad Versace <chad.versace at intel.com>
---
 src/intel/isl/isl.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index b5884be..3064bd8 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.
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list