summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-16 20:29:10 +0200
committerGitHub <noreply@github.com>2021-06-16 20:29:10 +0200
commit973bf306edda84e730d56dd73a04c7bbd20d9397 (patch)
tree4d64ac6f6de8e7a2eeeeeba9bd850b7924e46a6b /src/video_core/host_shaders
parentMerge pull request #6460 from Morph1984/fs-access-log-fix (diff)
parentastc_decoder: Fix LDR CEM1 endpoint calculation (diff)
downloadyuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.tar
yuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.tar.gz
yuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.tar.bz2
yuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.tar.lz
yuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.tar.xz
yuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.tar.zst
yuzu-973bf306edda84e730d56dd73a04c7bbd20d9397.zip
Diffstat (limited to 'src/video_core/host_shaders')
-rw-r--r--src/video_core/host_shaders/astc_decoder.comp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp
index 703e34587..eaba1b103 100644
--- a/src/video_core/host_shaders/astc_decoder.comp
+++ b/src/video_core/host_shaders/astc_decoder.comp
@@ -763,7 +763,7 @@ void ComputeEndpoints(out uvec4 ep1, out uvec4 ep2, uint color_endpoint_mode) {
case 1: {
READ_UINT_VALUES(2)
uint L0 = (v[0] >> 2) | (v[1] & 0xC0);
- uint L1 = max(L0 + (v[1] & 0x3F), 0xFFU);
+ uint L1 = min(L0 + (v[1] & 0x3F), 0xFFU);
ep1 = uvec4(0xFF, L0, L0, L0);
ep2 = uvec4(0xFF, L1, L1, L1);
break;