Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22076>
}
static inline bool
+isl_aux_usage_has_ccs_e(enum isl_aux_usage usage)
+{
+ return usage == ISL_AUX_USAGE_CCS_E ||
+ usage == ISL_AUX_USAGE_GFX12_CCS_E;
+}
+
+static inline bool
isl_aux_state_has_valid_primary(enum isl_aux_state state)
{
return state == ISL_AUX_STATE_RESOLVED ||
*
* If CCS_E is in use, the format must support it.
*/
- if (info->aux_usage == ISL_AUX_USAGE_CCS_E ||
- info->aux_usage == ISL_AUX_USAGE_GFX12_CCS_E)
+ if (isl_aux_usage_has_ccs_e(info->aux_usage))
assert(isl_format_supports_ccs_e(dev->info, info->view->format));
/* It also says: