victory-shader: use console_lane in lane_bit and untracked cndmask under Wave32 halves #78
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!78
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-78"
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?
@ending3729 on GitHub · 2026-12-05 21:29 UTC · original
ending3729:fix/wave32-relax-console-lane-bit→main· +69 −3 · 3 files · 1 commits · merged 2026-12-05 22:27 UTCSummary
halves = Some(_),exchange = None) miscompilinglane_bitandconsole_lanefor lanes32..63:console_lane()andlane_bit()incrates/victory-shader/src/emit/lower/operands.rspreviously checked onlyself.exchange, falling back towaveGetLaneIndex()(0..31) underhalvesand causing lanes32..63to readloinstead ofhi.console_lanesincrates/victory-shader/src/emit/lower/mod.rsnow includesv_cndmask_b32reading an untracked scalar mask so standalone selects still setconsole_lanes(matchingcross_lane()) without disabling Wave32 relaxation.emit::wave64_tests::relaxed_wave32_cndmask_reads_console_lane_bitcovering both intra-half DPP +v_cndmask_b32_e64and standalonev_cndmask_b32_e64with root-constant 64-bit masks.cargo test -p victory-shader --locked -- relaxed_wave32_cndmask_reads_console_lane_bitcargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policyasset policy: 447 files ok)Verification notes
set_thread_max_wave(Some(32)), validated withdxil.dll, and dispatched on an AMD Radeon RX 6600 XT.cargo test -p victory-shader --locked: 319 passed, 4 ignored, 1 unrelated pre-existing failure inemit::isa_tests::single_instructions_give_what_rdna2_gives(v_*_f16 sdwa src1:w1 [rdna 15, f16 nearest]).AI-assisted: yes