From a7d274e5bd39e6be8c66e52896d76e3de2effb86 Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Sun, 5 Jul 2026 20:46:33 -0400 Subject: [PATCH] [TEST] Adjusting sRGB formula --- src/video_core/host_shaders/astc_decoder.comp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp index c02d027cf1..39eec4128c 100644 --- a/src/video_core/host_shaders/astc_decoder.comp +++ b/src/video_core/host_shaders/astc_decoder.comp @@ -1407,9 +1407,8 @@ void DecompressBlock(ivec3 coord) { vec4((C0 * (uvec4(64) - weight_vec) + C1 * weight_vec + uvec4(32)) / 64); p = Cf / 65535.0f; #ifdef VULKAN - if (is_srgb != 0u) { - p.yzw = SRGBToLinear(p.yzw); - } + // Another test + p.yzw = mix(p.yzw, SRGBToLinear(p.yzw), bvec3(is_srgb != 0u)); #endif }