Shaders: move lowerer unit tests to their own file #3797
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3797"
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 andrewpozdnakov7-jpg on 2026-11-28T22:01:00Z.
Move the existing
emit::lower::testsmodule intoemit/lower/tests.rs. The production lowerer retains its source outside the test declaration. The moved tests keep their module and test names.lower.rsdrops from 520,563 to 468,293 bytes, leaving 55,995 bytes under the 524,288-byte per-file asset limit. The limit already blocks the exact head of #1924. This frees room for shader compatibility patches without moving production lowering routines. Recorded asset-policy failureThe before and after test inventories matched exactly for all 33 lowerer tests. All 33 passed, along with both strict shader Clippy configurations and the asset policy.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the move into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T22:04:20Z.
Windows CI passed on
3a6d4dd, including both Clippy configurations and the workspace tests. The 33 lowerer test names match main, and all 33 passed in the local check. The production prefix of lower.rs is byte-identical. Its file size is now 468,293 bytes with 55,995 bytes of room under the per-file asset limit.The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T22:56:02Z.
I repeated the file-limit check with the current heads of #3617 (
8bfad4c), #3717 (32a02eb), and #3803 (fda9900). The merge keeps nearest-even rounding in the dedicated transcendental path from #3717 and directed rounding inv_cvt_f16_f32from #3803. The combinedlower.rsis 524,553 bytes. The asset policy rejects it because the per-file limit is 524,288 bytes. #3717 author updateWith #3797 at
3a6d4dd, the file drops to 472,283 bytes, leaving 52,005 bytes of room. The production code matches byte for byte, the same 33 lowerer tests all pass, and the asset policy passes for 192 files. Strict shader Clippy passed with default and all features. WARP 1.0.22 passed the 200 conversion readbacks, the existing modes 0 and 3 control, and all three rounding and NaN regressions from #3617/#3717.Taking #3797 first avoids the size failure. The comparison branch preserves the original Git commits and merge parents. Please retain the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding my changes into another commit. Comparison branchAI-assisted with OpenAI Codex.
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.