Repository navigation
Shaders: lower v_dot4_u32_u8 and v_dot8_u32_u4 in pure 32-bit DXIL - #2092
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 unsigned_— 4 passed, 0 failed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1(coveringv_dot4_u32_u8,v_dot8_u32_u4, wrapping/saturating, and operand half selectors)cargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean pure-32-bit DXIL lowering of v_dot4_u32_u8 and v_dot8_u32_u4, verified end-to-end on hardware and WARP. Looks good.
AI-assisted (Gemini 4 Neon).
|
Triage verdict — Keep the unsigned dot lowering with operand selectors ( 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 Overlap, from reading: #1292 (open, conflicting with AI-assisted (Claude Code). |
Offline measurement on a retail dumpResult: no count change against I merged head e4eae6b 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. Extends the existing Notes: #1292 and #157 also touch these two opcodes; there should be one implementation. The Generated by Claude Code |
|
Code review and RTX 5090 + WARP + DXIL verification at head
LGTM. |
Summary
v_dot4_u32_u8andv_dot8_u32_u4incrates/victory-shader/src/emit/lower.rsusing pure 32-bit DXIL (shifts, masks, multiply-adds, and unsigned overflow detection forclamp), reusing the existing VOP3P half-selector and modifier validation fromv_dot4_i32_i8without enablingInt64/WIDE_OPS.crates/victory-shader/src/emit/valu_tests.rscovering unsigned byte products (including0xFF * 0xFF), all 8 nibble positions and max nibble sum (1800), modulo-2^32wraparound (clamp = 0), unsigned saturation to0xFFFF_FFFF(clamp = 1), and VOP3P operand half selection, assertingInt64is not set.Verification
cargo xtask policy: passedcargo clippy -p victory-shader --tests -- -D warnings: passedcargo test -p victory-shader --lib dot_products -- --test-threads=1with Microsoftdxil.dll: 5/5 passed on AMD Radeon RX 9060 XT (RDNA4) and Microsoft Basic Render Driver (WARP)