]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
vulkan: use uint array index to avoid glslang bug (llama/13193)
authorJeff Bolz <redacted>
Wed, 30 Apr 2025 12:38:37 +0000 (07:38 -0500)
committerGeorgi Gerganov <redacted>
Thu, 1 May 2025 10:29:02 +0000 (13:29 +0300)
ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.comp

index 962d2353f88a53ccfccd1df3fc4dcb86c9f3e216..9cb7da2daab5da60f63dc01580db0689fd42bbe2 100644 (file)
@@ -482,7 +482,7 @@ float16_t dequantFuncIQ2_XXS(const in decodeBufIQ2_XXS bl, const in uint blockCo
     const uint ib8 = (idx & 0x18) >> 3;  // 0..3
     const uint iqs = 8 * ib32 + ib8;
 
-    const uint8_t qs = bl.block.qs[iqs];
+    const uint qs = bl.block.qs[iqs];
     const uint signscale = pack32(u16vec2(bl16.block.qs[4*ib32+2], bl16.block.qs[4*ib32+3]));
 
     const float dscale = float(bl.block.d) * 0.25 * (0.5 + float(signscale >> 28));