mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
isl: add helper to check if aux usage is CCS_E
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>
This commit is contained in:
parent
f6a83ec988
commit
963847735a
2 changed files with 8 additions and 2 deletions
|
|
@ -2210,6 +2210,13 @@ isl_aux_usage_has_ccs(enum isl_aux_usage usage)
|
|||
usage == ISL_AUX_USAGE_STC_CCS;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -695,8 +695,7 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
*
|
||||
* 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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue