2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

params.max_weight

This commit is contained in:
Ameer J 2023-07-30 12:13:03 -04:00
parent e0c59c7b0b
commit 6ff65abd62

View file

@ -1058,12 +1058,9 @@ TexelWeightParams DecodeBlockInfo() {
} }
weight_index -= 2; weight_index -= 2;
if ((mode_layout != 9) && ((mode & 0x200) != 0)) { if ((mode_layout != 9) && ((mode & 0x200) != 0)) {
const int max_weights[6] = int[6](7, 8, 9, 10, 11, 12); weight_index += 6;
params.max_weight = max_weights[weight_index];
} else {
const int max_weights[6] = int[6](1, 2, 3, 4, 5, 6);
params.max_weight = max_weights[weight_index];
} }
params.max_weight = weight_index + 1;
return params; return params;
} }