shader: follow constant/uniform v_cndmask terms, constant-mask selects, integer products, and v_readfirstlane in whole-wave sections #512
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#512
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?
@Sheffy007 on GitHub · 2026-11-27 22:48 UTC · original
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
@Sheffy007 on GitHub · 2026-11-27 22:48 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 22:48 UTC · original
Claimed by @Sheffy007. Open a draft pull request with
Refs #508in its description within 24 hours, or the claim expires.