jeffbolznv commited on
Commit
fd2d86d
·
1 Parent(s): 07ec79f

vulkan: use uint array index to avoid glslang bug (llama/13193)

Browse files
ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.comp CHANGED
@@ -482,7 +482,7 @@ float16_t dequantFuncIQ2_XXS(const in decodeBufIQ2_XXS bl, const in uint blockCo
482
  const uint ib8 = (idx & 0x18) >> 3; // 0..3
483
  const uint iqs = 8 * ib32 + ib8;
484
 
485
- const uint8_t qs = bl.block.qs[iqs];
486
  const uint signscale = pack32(u16vec2(bl16.block.qs[4*ib32+2], bl16.block.qs[4*ib32+3]));
487
 
488
  const float dscale = float(bl.block.d) * 0.25 * (0.5 + float(signscale >> 28));
 
482
  const uint ib8 = (idx & 0x18) >> 3; // 0..3
483
  const uint iqs = 8 * ib32 + ib8;
484
 
485
+ const uint qs = bl.block.qs[iqs];
486
  const uint signscale = pack32(u16vec2(bl16.block.qs[4*ib32+2], bl16.block.qs[4*ib32+3]));
487
 
488
  const float dscale = float(bl.block.d) * 0.25 * (0.5 + float(signscale >> 28));