Repository navigation
Conversation
|
This isn't needed anymore. #58 added them |
|
Related self-swap edge case on In |
|
Tested
|
|
RDNA2 hardware check: both match. Setup. AMD Radeon iGPU of a Ryzen 7 9800X3D, gfx1036 (RDNA2), AMD driver 32.0.21042.62, Windows 11 Pro 26200. Hand-written instructions in a HIP kernel (assembled by the AMD driver's amd_comgr). RDNA2 desktop silicon, not the console's. No game data. 400 operand pairs (edge values and 300 random).
AI use: Claude Code (Claude Opus 5.5) wrote the probes, ran them on the GPU above and drafted this comment; the numbers come from the hardware run. |
|
I checked what remains to integrate after #58. On With the full #127 change applied to the same main, I'd drop the duplicate lowering changes. The added |
What is in it
v_swap_b32(swapping two VGPRs under the activeEXECguard;ir.rsalready marks both operands as read and written) incrates/victory-shader/src/emit/lower.rs.v_xnor_b32(~(src0 ^ src1)) incrates/victory-shader/src/emit/lower.rs.v_xnor_b32_and_v_swap_b32_translatecoveringv_xnor_b32andv_swap_b32(distinct VGPRs and self-swap).Refs #97.
Tested
cargo xtask policy:asset policy: 150 files okcargo test --workspace: 240 passed, 0 failed, 3 ignored (includingemit::lower::tests::v_xnor_b32_and_v_swap_b32_translate)cargo clippy --workspace --all-targets: passed (0 warnings)rustfmt --check --edition 2024 crates/victory-shader/src/emit/lower.rs: passedHardware / OS
AI-assisted