[Mesa-dev] [PATCH 3/7] isl: Add func isl_tiling_is_aux()
Chad Versace
chadversary at chromium.org
Mon Mar 13 22:28:00 UTC 2017
---
src/intel/isl/isl.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 9d92906ca71..b79793b0c93 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -473,6 +473,9 @@ typedef uint32_t isl_tiling_flags_t;
/** The Skylake BSpec refers to Yf and Ys as "standard tiling formats". */
#define ISL_TILING_STD_Y_MASK (ISL_TILING_Yf_BIT | \
ISL_TILING_Ys_BIT)
+
+#define ISL_TILING_AUX_MASK (ISL_TILING_HIZ_BIT | \
+ ISL_TILING_CCS_BIT)
/** @} */
/**
@@ -1182,6 +1185,12 @@ isl_tiling_is_std_y(enum isl_tiling tiling)
return (1u << tiling) & ISL_TILING_STD_Y_MASK;
}
+static inline bool
+isl_tiling_is_aux(enum isl_tiling tiling)
+{
+ return (1u << tiling) & ISL_TILING_AUX_MASK;
+}
+
struct isl_extent2d ATTRIBUTE_CONST
isl_get_interleaved_msaa_px_size_sa(uint32_t samples);
--
2.12.0
More information about the mesa-dev
mailing list