shader: lower v_qsad_pk_u16_u8, v_mqsad_pk_u16_u8, and v_mqsad_u32_u8 without INT64 #1671
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1672"
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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T20:39:06Z.
Summary
v_qsad_pk_u16_u8(0x172),v_mqsad_pk_u16_u8(0x173), andv_mqsad_u32_u8(0x175) incrates/victory-shader/src/emit/lower.rs(Lower::quad_sad).INT64DXIL capability flag (SFI0 & 0x8000 == 0).src0[0:1]reference bytes against the 4src1target bytes.src1_byte[j] == 0) to0forv_mqsad_pk_u16_u8andv_mqsad_u32_u8.CLAMPsaturation (u16::MAXper packed half for*_pk_u16_u8,u32::MAXper dword forv_mqsad_u32_u8) as well as wraparound when unclamped.vdst[0:1]orvdst[0:3]) under the activeEXECguard.Verification
cargo test -p victory-shader --lib: 123 passed, 0 failed, 1 ignored on both AMD Radeon RX 9060 XT (D3D12 hardware) and Microsoft Basic Render Driver (WARP), including 3 new regression tests (v_qsad_pk_u16_u8_accumulates_all_windows,v_mqsad_pk_u16_u8_masks_zero_target_bytes,v_mqsad_u32_u8_masks_zero_target_bytes— 30 synthetic dispatches per backend covering all 4 windows, zero masking, nonzero accumulators, wrap vsCLAMP, in-placeEXEC-guarded writes, andSFI0 & 0x8000 == 0).cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: pass (154 files).AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T20:52:22Z.
Closing in favor of #1662, which was opened a few minutes earlier with the same pure-32-bit DXIL lowering for
v_qsad_pk_u16_u8,v_mqsad_pk_u16_u8, andv_mqsad_u32_u8(plus Wave32/Wave64 coverage).AI-assisted; synthetic tests only, no game files.
Pull request closed