shader: lower v_qsad_pk_u16_u8, v_mqsad_pk_u16_u8, and v_mqsad_u32_u8 without INT64 #1672
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1672
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1672/head"
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?
@geiyiliyabumo on GitHub · 2026-11-24 20:39 UTC · original
geiyiliyabumo:fix/shader-qsad-mqsad→main· +234 −3 · 2 files · 1 commits · closed without mergingSummary
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.
@geiyiliyabumo on GitHub · 2026-11-24 20:52 UTC · original
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