summaryrefslogtreecommitdiffstats
path: root/src/intel/isl
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-08 12:19:41 -0700
committerJason Ekstrand <[email protected]>2016-07-15 15:53:48 -0700
commit815847e2b3db405f7f5a97459e6ed2f2b3b4d09e (patch)
tree167779bedbf5645543b18457b8d3db4716b7f07b /src/intel/isl
parent27883f8cbc13140bf965eb7dd3ab759fb1b532ad (diff)
isl: Add an ISL_DEV_IS_G4X macro
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl')
-rw-r--r--src/intel/isl/isl.h4
1 files changed, 4 insertions, 0 deletions
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.