Shader tests: keep dot4 test operands runtime for RDNA1 #1877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1879"
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 n-romanovich on 2026-11-24T23:59:16Z.
Fixes #1782.
Summary
emit::valu_tests::fspx_programs_run_with_the_hardwares_dot_productspreviously loadeda,b, andaccwithv_mov_b32 vN, literal, so drivers without nativedot4(RDNA1) constant-folded signed byte multiplicands >=0x80as unsigned.This adds
v0(tid.x,0in the[1, 1, 1]dispatch) to each literal viav_add_nc_u32so the operands stay runtime values while testing the samev_dot4_i32_i8/v_dot4c_i32_i8lowering andopsel/opsel_hicases.Testing
cargo test -p victory-shader --locked -- fspx_programs_run_with_the_hardwares_dot_products(1 passed, 0 failed)Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:17:11Z.
Review: APPROVED
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main
940d32f69b,cargo test -p victory-shader --locked.144 passed / 0 failed / 2 ignored (baseline-identical). Keeping dot4 operands runtime avoids constant-folding so the RDNA1 path is actually exercised — correct test fix.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:20:07Z.
Automated triage for the maintainers.
Proposed close: already in main. The merge of
origin/maininto this branch leaves only one change againstmain:load.clone()becomesload.to_vec()infspx_programs_run_with_the_hardwares_dot_products(crates/victory-shader/src/emit/valu_tests.rs), and that has no effect. The fix for #1782 is already inmainthrough #1790 (49761f9). That test now makes each operand at run time as a literal plus a word loaded from the zeroed UAV (buffer_load_dword v4andv_add_nc_u32 vN, literal, v4), which is what this PR set out to do.CI: passing (
check).The PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-25T11:51:11Z.
Offline measurement on a retail dump
Result: no count change against
main.I merged head
5a8fc617ontomain940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.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).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.