Repository navigation
v0.22.5 — subgroup scan and vector wave fixes
Fixed
- Subgroup scans and vector wave operands no longer miscompile in DXIL and GLSL (P1-DXIL-115,
P1-DXIL-116, P1-GLSL-016). The DXIL emitter wrote a reduction (dx.op.waveActiveBit) for an And/Or/Xor
scan and dropped the inclusive part of a Min/Max scan, and the GLSL writer fell back tosubgroupAdd
for any scan it had no builtin for — every lane got a silently wrong value, reachable from SPIR-V input
(the GLSL frontend already refuses these scans). Both now refuse the min/max/and/or/xor scans with a
named limitation, matching the MSL/HLSL writers; the Add/Mul scans keep their prefix form
(dx.op.wavePrefixOp,subgroupExclusive/InclusiveAdd/Mul). A vector subgroup operand in DXIL (e.g.
subgroupAdd(vec4<f32>)from GLSL or SPIR-V input) was computed for the first component only; it is now
expanded into one scalar wave op per component and reassembled — the form DXC itself emits for a vector
wave intrinsic. Verified end to end: GLSL →dxil.Compile→ IDxcValidator accepts the written forms.
No public API change. WGSL output is unchanged — WGSL produces no vector subgroup operands and no
min/max/and/or/xor scans — so consumer shaders are unaffected.
Full changelog: https://github.com/gogpu/naga/blob/main/CHANGELOG.md