summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-15 17:05:24 -0700
committerJason Ekstrand <[email protected]>2016-04-21 20:44:27 -0700
commit65bd8317e2e5c0369987d0b2e535d427dd2c7a4f (patch)
tree3fa314965e1a980ca915e50b641ab35a21fe0476 /src/intel/isl/isl.h
parent90576ac96303941ffefe50e56aad15ba09459aa8 (diff)
isl: Add a helper for determining when a typed load/store can be used
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r--src/intel/isl/isl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 6c417b29f4c..47d3a68ae4a 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -903,6 +903,13 @@ enum isl_format
isl_lower_storage_image_format(const struct brw_device_info *devinfo,
enum isl_format fmt);
+/* Returns true if this hardware supports typed load/store on a format with
+ * the same size as the given format.
+ */
+bool
+isl_has_matching_typed_storage_image_format(const struct brw_device_info *devinfo,
+ enum isl_format fmt);
+
static inline bool
isl_tiling_is_any_y(enum isl_tiling tiling)
{