intel/isl: Add isl_aux_usage_has_ccs
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 4 May 2018 16:43:01 +0000 (09:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Oct 2019 04:22:00 +0000 (21:22 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/isl/isl.h

index 509d56180bb73eed0f05d4d819d69a5c8d381358..11d50a1d044b844f8f79615da743155930654b15 100644 (file)
@@ -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);