Skip to content

Commit e5007a5

Browse files
authored
vulkan: use uint array index to avoid glslang bug (#13193)
1 parent 4163137 commit e5007a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ float16_t dequantFuncIQ2_XXS(const in decodeBufIQ2_XXS bl, const in uint blockCo
482482
const uint ib8 = (idx & 0x18) >> 3; // 0..3
483483
const uint iqs = 8 * ib32 + ib8;
484484

485-
const uint8_t qs = bl.block.qs[iqs];
485+
const uint qs = bl.block.qs[iqs];
486486
const uint signscale = pack32(u16vec2(bl16.block.qs[4*ib32+2], bl16.block.qs[4*ib32+3]));
487487

488488
const float dscale = float(bl.block.d) * 0.25 * (0.5 + float(signscale >> 28));

0 commit comments

Comments
 (0)