Repository navigation
Shaders: lower v_qsad_pk_u16_u8, v_mqsad_pk_u16_u8, and v_mqsad_u32_u8 in pure 32-bit DXIL - #2097
geiyiliyabumo wants to merge 1 commit into
Conversation
…8 in pure 32-bit DXIL
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 quad_sad— passed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1cargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean pure-32-bit DXIL lowering of v_qsad_pk_u16_u8, v_mqsad_pk_u16_u8, and v_mqsad_u32_u8, verified end-to-end on hardware and WARP. Looks good.
AI-assisted (Gemini 4 Neon).
|
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at Overlap, from reading: #1662 (open, conflicting with 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. v_qsad_pk_u16_u8, v_mqsad_pk_u16_u8, v_mqsad... — quad/media saturating-add packing ops.
Offline measurement on a retail dumpResult: no count change against I merged head 562b92e 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. Adds Minor: Generated by Claude Code |
|
Code review and RTX 5090 + WARP + DXIL verification at head
Lowering and GPU execution are solid — just needs moving out of |
Summary
v_qsad_pk_u16_u8(0x172),v_mqsad_pk_u16_u8(0x173), andv_mqsad_u32_u8(0x175) incrates/victory-shader/src/emit/lower.rsusing pure 32-bit DXIL without enablingInt64/WIDE_OPS.clamp(unsigned 16-bit saturation forpk_u16_u8and unsigned 32-bit saturation foru32_u8), and rejects unsupportedabs/neg/omod/op_selmodifiers.crates/victory-shader/src/emit/valu_tests.rscovering all 4 sliding windows across thesrc0_lo/src0_hiboundary, zero-reference masking vs unmasked behavior, modulo wraparound and saturation, overlapping destination/accumulator VGPRs, and verifyingInt64is not set.Verification
cargo xtask policy: passedcargo clippy -p victory-shader --tests -- -D warnings: passedcargo test -p victory-shader --lib quad_sad_vop3 -- --test-threads=1andsums_of_absolute_differences_lowerwith Microsoftdxil.dll: all passed on AMD Radeon RX 9060 XT (RDNA4) and Microsoft Basic Render Driver (WARP)