From: Chad Versace Date: Sat, 23 Jan 2016 01:06:44 +0000 (-0800) Subject: isl: Add func isl_tiling_is_any_y() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fa1f745ea2bbb7a65883c3e6d05de38b21f76a9;p=mesa.git isl: Add func isl_tiling_is_any_y() --- 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 @@ -778,6 +778,12 @@ enum isl_format 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) {