From 48c153e21bb9ba7d0d7b22618a7e33fd72a521cd Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 4 May 2018 09:43:01 -0700 Subject: [PATCH] intel/isl: Add isl_aux_usage_has_ccs Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/isl/isl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 509d56180bb..11d50a1d044 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -1639,6 +1639,13 @@ isl_tiling_to_i915_tiling(enum isl_tiling tiling); enum isl_tiling isl_tiling_from_i915_tiling(uint32_t tiling); +static inline bool +isl_aux_usage_has_ccs(enum isl_aux_usage usage) +{ + return usage == ISL_AUX_USAGE_CCS_D || + usage == ISL_AUX_USAGE_CCS_E; +} + const struct isl_drm_modifier_info * ATTRIBUTE_CONST isl_drm_modifier_get_info(uint64_t modifier); -- 2.30.2