Repository navigation
Shader tests: keep dot4 test operands runtime for RDNA1 - #1879
n-romanovich wants to merge 2 commits into
Conversation
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 (baseline-identical). Keeping dot4 operands runtime avoids constant-folding so the RDNA1 path is actually exercised — correct test fix.
|
Automated triage for the maintainers. Proposed close: already in main. The merge of CI: passing ( The PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label. Generated by Claude Code |
Offline measurement on a retail dumpResult: no count change against I merged head 5a8fc61 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). |
…e-operands # Conflicts: # crates/victory-shader/src/emit/valu_tests.rs
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)