isl: Initialize the last usage in isl_encode_aux_mode[] (xe2)

The ISL_AUX_USAGE_STC_CCS is the last defined usage. We could
get a random value from isl_encode_aux_mode[] once it is passed
as index if its element is not initialized.

Explicit initialization of ISL_AUX_USAGE_HIZ_CCS_WT is added too.

Suggested by Nanley Chery <nanley.g.chery@intel.com>

Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29906>
This commit is contained in:
Jianxun Zhang 2024-06-07 19:25:51 -07:00 committed by Marge Bot
parent 9d3ce65628
commit 930ea030ed

View file

@ -85,6 +85,8 @@ static const uint32_t isl_encode_aux_mode[] = {
[ISL_AUX_USAGE_MC] = AUX_NONE,
[ISL_AUX_USAGE_MCS] = AUX_MCS,
[ISL_AUX_USAGE_MCS_CCS] = AUX_MCS,
[ISL_AUX_USAGE_STC_CCS] = AUX_NONE,
[ISL_AUX_USAGE_HIZ_CCS_WT] = AUX_NONE,
};
#elif GFX_VER >= 12
static const uint32_t isl_encode_aux_mode[] = {