mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 13:20:10 +01:00
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:
parent
9d3ce65628
commit
930ea030ed
1 changed files with 2 additions and 0 deletions
|
|
@ -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[] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue