op_getrows.comp 609 B

1234567891011121314151617
  1. void main() {
  2. const uint i = gl_WorkGroupID.x;
  3. const int r = inB[i + pcs.inBOff];
  4. int z = 0;
  5. for (uint ind = gl_LocalInvocationID.x; ind < pcs.ne00/16; ind += gl_WorkGroupSize.x) {
  6. const uint inIndex = (r * pcs.nb01 + pcs.inAOff) + ind/NL * SIZE_OF_BLOCK;
  7. const mat4 result = dequantize_block(inIndex, ind%NL);
  8. for (uint j = 0; j < 4; ++j) {
  9. for (uint k = 0; k < 4; ++k) {
  10. const uint outIndex = i * pcs.nb1/BYTES_FOR_TYPE + pcs.outOff + z;
  11. out_[outIndex] = result[j][k];
  12. ++z;
  13. }
  14. }
  15. }
  16. }