From: Jason Ekstrand Date: Fri, 4 May 2018 16:43:01 +0000 (-0700) Subject: intel/isl: Add isl_aux_usage_has_ccs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48c153e21bb9ba7d0d7b22618a7e33fd72a521cd;p=mesa.git intel/isl: Add isl_aux_usage_has_ccs Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- 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);