From 87bfa5ebb2a8863e057936329122300c1436e5d4 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Thu, 25 Jun 2026 23:25:41 -0400 Subject: [PATCH] Properly generate glsl sidecar for 9629 (#9750) --- ...ative-matrix-mixed-accumulator.spvasm.glsl | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 naga/tests/out/spv/wgsl-cooperative-matrix-mixed-accumulator.spvasm.glsl diff --git a/naga/tests/out/spv/wgsl-cooperative-matrix-mixed-accumulator.spvasm.glsl b/naga/tests/out/spv/wgsl-cooperative-matrix-mixed-accumulator.spvasm.glsl new file mode 100644 index 000000000..51b2d3b34 --- /dev/null +++ b/naga/tests/out/spv/wgsl-cooperative-matrix-mixed-accumulator.spvasm.glsl @@ -0,0 +1,37 @@ +#version 460 +#if defined(GL_AMD_gpu_shader_half_float) +#extension GL_AMD_gpu_shader_half_float : require +#elif defined(GL_EXT_shader_explicit_arithmetic_types_float16) +#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require +#else +#error No extension available for FP16. +#endif +#extension GL_EXT_shader_16bit_storage : require +#extension GL_KHR_cooperative_matrix : require +#extension GL_KHR_memory_scope_semantics : require +layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; + +layout(set = 0, binding = 0, std430) buffer _13_12 +{ + float16_t _m0[]; +} _12; + +layout(set = 0, binding = 1, std430) buffer _16_15 +{ + float _m0[]; +} _15; + +void main() +{ + coopmat _26 = coopmat(0.0); + coopmat _34; + coopMatLoad(_34, _12._m0, 0u, 8u, gl_CooperativeMatrixLayoutColumnMajor); + coopmat _37; + coopMatLoad(_37, _12._m0, 0u, 8u, gl_CooperativeMatrixLayoutColumnMajor); + coopmat _40; + coopMatLoad(_40, _15._m0, 0u, 8u, gl_CooperativeMatrixLayoutColumnMajor); + _26 = _40; + _26 = coopMatMulAdd(_34, _37, _26, 0); + coopMatStore(_26, _15._m0, 0u, 8u, gl_CooperativeMatrixLayoutColumnMajor); +} +