diff options
| author | 2023-07-30 12:13:03 -0400 | |
|---|---|---|
| committer | 2023-08-06 14:54:57 -0400 | |
| commit | 6ff65abd62c4a4f7cc83a79e1ba30d0d99f26ff3 (patch) | |
| tree | f1e8ae87c25f98f7b5fb14ba10a48bed65589d27 /src | |
| parent | skip bits (diff) | |
| download | yuzu-6ff65abd62c4a4f7cc83a79e1ba30d0d99f26ff3.tar.gz yuzu-6ff65abd62c4a4f7cc83a79e1ba30d0d99f26ff3.tar.xz yuzu-6ff65abd62c4a4f7cc83a79e1ba30d0d99f26ff3.zip | |
params.max_weight
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/host_shaders/astc_decoder.comp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp index 55b23201a..a814ef483 100644 --- a/src/video_core/host_shaders/astc_decoder.comp +++ b/src/video_core/host_shaders/astc_decoder.comp | |||
| @@ -1058,12 +1058,9 @@ TexelWeightParams DecodeBlockInfo() { | |||
| 1058 | } | 1058 | } |
| 1059 | weight_index -= 2; | 1059 | weight_index -= 2; |
| 1060 | if ((mode_layout != 9) && ((mode & 0x200) != 0)) { | 1060 | if ((mode_layout != 9) && ((mode & 0x200) != 0)) { |
| 1061 | const int max_weights[6] = int[6](7, 8, 9, 10, 11, 12); | 1061 | weight_index += 6; |
| 1062 | params.max_weight = max_weights[weight_index]; | ||
| 1063 | } else { | ||
| 1064 | const int max_weights[6] = int[6](1, 2, 3, 4, 5, 6); | ||
| 1065 | params.max_weight = max_weights[weight_index]; | ||
| 1066 | } | 1062 | } |
| 1063 | params.max_weight = weight_index + 1; | ||
| 1067 | return params; | 1064 | return params; |
| 1068 | } | 1065 | } |
| 1069 | 1066 | ||