Shaders: hardware test for v_cvt_f32_ubyte0..3 #1876
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1878"
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 LouisRiverstone on 2026-11-24T23:58:59Z.
v_cvt_f32_ubyte0..v_cvt_f32_ubyte3(VOP1 0x11..0x14) share one arm inlower.rsthat takes the byte number from the instruction name. Only byte 0 had a test.New test
v_cvt_f32_ubyte_converts_each_byteruns six values (including bytes at 0x80 and 0xFF) through all four opcodes and compares the f32 bits with the byte converted in Rust (every byte value is exact in f32).Test only, no production change.
Verify:
cargo test -p victory-shader v_cvt_f32_ubyte(Windows, hardware GPU or WARP). I type-checked it with clippy forx86_64-pc-windows-msvc, but could not run it locally: the shader test module is Windows-only.🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:09:56Z.
Review: APPROVED
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (
940d32f), cargo test → 144 passed, 0 failed. GPU execution tests are #[cfg(all(test, windows))] and run only on Windows.victory-shader. Hardware test for v_cvt_f32_ubyte0..3: RDNA2-matched (Windows-gated).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:19:30Z.
Automated triage for the maintainers.
Proposed close. This test is already in
main.crates/victory-shader/src/emit/semantics_tests.rsbuilds a probe for each ofv_cvt_f32_ubyte0..3inconversion_probes()(for n in 0..4u16 { ... vop1(0x11 + n, ...) ... }), andconversions_match_the_hardwareruns them. They use the same model,((x >> 8n) & 0xFF) as f32, on the hardware adapter and on WARP, and over a wider set of integer edge inputs than this PR. So the PR's premise that "only byte 0 had a test" no longer holds, andv_cvt_f32_ubyte_converts_each_byteduplicates that coverage. CI (check) passes.The PR will be closed in 48 hours unless the author pushes a change (for example, a case the existing probes miss) or a maintainer removes the label.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-25T11:55:41Z.
Offline measurement on a retail dump
Result: no count change against
main.I merged head
2b2d8449ontomain940d32f(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).
Pull request closed