Repository navigation
Shaders: lower s_bitreplicate_b64_b32 in pure 32-bit DXIL - #2083
geiyiliyabumo wants to merge 1 commit into
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC, with dxil.dll validator):
cargo test -p victory-shader --lib s_bitreplicate_b64_b32_— 2 passed, 0 failed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1(s_bitreplicate_b64_b32_ir_and_dxilands_bitreplicate_b64_b32_replicates_both_halves_and_preserves_scc)cargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean pure-32-bit DXIL lowering of s_bitreplicate_b64_b32 replicating both halves and preserving SCC, verified on RTX 5090 + WARP. Looks good.
AI-assisted (Gemini 4 Neon).
|
Triage verdict — Confirmed duplicate of the bit-replicate change in #166 ( Evidence
Checks and limits
Next step
This verification was AI-assisted. |
|
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at AI-assisted (Claude Code). |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f, cargo test -p victory-shader --locked.
144 passed / 0 failed / 2 ignored. s_bitreplicate_b64_b32 lowered in pure 32-bit DXIL — bit-replicate without i64.
Offline measurement on a retail dumpResult: no count change against I merged head fd1f5fa onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. This lowering of Generated by Claude Code |
Summary
s_bitreplicate_b64_b32(opcode0x3b) incrates/victory-shader/src/emit/lower.rsusing pure 32-bit DXIL (4-step 16-to-32 bit interleave +even | (even << 1)for low and high halves), writing the 2-dword scalar destination without enablingInt64/WIDE_OPSand while preservingSCC.crates/victory-shader/src/emit/valu_tests.rscovering 8 bit patterns across both halves with bothSCC = 0andSCC = 1, verifying destination width and thatInt64is not set.Verification
cargo xtask policy: passedcargo clippy -p victory-shader --tests -- -D warnings: passedcargo test -p victory-shader --lib s_bitreplicatewith Microsoftdxil.dll: 2/2 passed on AMD Radeon RX 9060 XT (RDNA4) and Microsoft Basic Render Driver (WARP)