summaryrefslogtreecommitdiffstats
path: root/src/isl
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2016-01-22 17:06:44 -0800
committerChad Versace <[email protected]>2016-01-22 17:19:57 -0800
commit2fa1f745ea2bbb7a65883c3e6d05de38b21f76a9 (patch)
tree1925c76833e26d28dda596d4adeb73d4b3563899 /src/isl
parentfa5f45e8aa95189244edb12a3dc0af165418086a (diff)
isl: Add func isl_tiling_is_any_y()
Diffstat (limited to 'src/isl')
-rw-r--r--src/isl/isl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/isl/isl.h b/src/isl/isl.h
index 85e43b8b35b..8905d868f4e 100644
--- a/src/isl/isl.h
+++ b/src/isl/isl.h
@@ -779,6 +779,12 @@ isl_lower_storage_image_format(const struct isl_device *dev,
enum isl_format fmt);
static inline bool
+isl_tiling_is_any_y(enum isl_tiling tiling)
+{
+ return (1u << tiling) & ISL_TILING_ANY_MASK;
+}
+
+static inline bool
isl_tiling_is_std_y(enum isl_tiling tiling)
{
return (1u << tiling) & ISL_TILING_STD_Y_MASK;