shader: follow constant/uniform v_cndmask terms, constant-mask selects, integer products, and v_readfirstlane in whole-wave sections #508
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Sheffy007 on 2026-11-27T22:48:24Z.
Summary
Several valid whole-wave reduction and prefix-scan shapes in
crates/victory-shader/src/emit/wave.rsandlower.rsare currently refused asa whole-wave section step the simulation does not follow: a value that is no reduction or prefix(orVALU_SGPR/SCALAR):v_cndmask_b32:WavePrefixSum(1),WaveActiveSum(k),WavePrefixSum(s_stride), andWavePrefixCountBitslowered viav_cndmask_b32 v_dst, 0, 1, s_saved(orv_cndmask_b32 v_dst, ident, s_uniform, s_saved) passSym::KorSym::Uniassrc1, whichwave::simulaterejected asSym::Unknownwithout settingwhy, refusing witha value that is no reduction or prefix.v_cndmask_b32ands_mov_b64: Prefix scans that keepEXEC = -1and mask rows/halves or lane 0 vias_mov_b32/s_mov_b64constant SGPRs intov_cndmask_b32(or move a constant SGPR intoEXEC) fell through toSym::Unknown/SCALAR.WaveActiveProduct/WavePrefixProduct):v_mul_lo_u32ands_mul_i32(Op::MulU, identity1) were missing alongsideOp::MulF.v_readfirstlane_b32and inclusive-prefix total reads:v_readfirstlane_b32inside a whole-wave section (readingexec.trailing_zeros(), e.g. lane 0 in place of the 8-bytev_readlane_b32 s, v, 0) hitVALU_SGPR; outside a section,v_readfirstlane_b32on asection_uniformvalue or under a constantEXECmask (s_mov_b64 exec, 1), as well asv_readlane_b32of lanewave - 1of an inclusive prefix, did not resolve throughsection_lanes.Refs #4, #258
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Sheffy007 on 2026-11-27T22:48:25Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T22:48:36Z.
Claimed by @Sheffy007. Open a draft pull request with
Refs #508in its description within 24 hours, or the claim expires.