Shaders: infer double extensions from emitted instructions #1534
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1544"
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 ivall/xcl. Originally posted by Roroca-1 on 2026-11-24T17:28:25Z.
Part of #1269. After the optimizer removes an unreachable block, its instructions still exist in the arena. A discarded int-to-double conversion could therefore set DoubleExtensions in the shader flags. Based on main after #1426.
What is in it
module.rs. Exercise the production optimizer on an unreachable conversion. Bump the direct translator cache version to 5 inkernel.rs.Tested
593c65b.TARGET_CFLAGS=/FIstring.h cargo xwin build --tests -p xcl --target x86_64-pc-windows-msvcsucceeded.wine xcl-67594ede252ac8b9.exe unreachable_conversion_does_not_require_double_extensions --nocaptureran 1 passed, 0 failed, 0 ignored, 0 skipped. With the test alone onc160d86, the post-optimization assertion failed.Regression run
Pending paired clean main/head retail-title runs.
Not tested
Native Windows GPU workspace suite, DXIL validation, retail title.
AI use
T3 Code (Codex, gpt-6.2-astra) rebuilt the original scan fix against main, wrote the regression test and ran it under Wine. The initial fix was prepared with T3 Code (Antigravity, gemini-pro-orchestrator-neon).
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:42:38Z.
Review: COMMENTED
The targeted Wine tests are useful, but CONTRIBUTING.md requires the full workspace GPU suite on Windows. Since this changes runtime code in
crates/xcl/src, it also requires pairedscripts/smoke.ps1runs on a real title formainand this head; the guide says even a title that does not reach the changed path counts if documented. Both are listed as not tested here. Please add these results before merge. AI-assisted review; I checked the requirements and current description against the guide.[PR #1544] Shaders: expose DXIL module IR internals and fix f64 extension scanto [PR #1544] Shaders: infer double extensions from emitted instructionsImported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:12:52Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
mainincrates/xcl/src/gpu/recomp/tests.rs— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:33:34Z.
Regression run of
593c65bfon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:26:43Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:03:41Z.
Triage (#1607) – head
593c65bThe change to
dxil/module.rs:uses_double_extensions(scan only the instructions still inself.blocks) is already on main through #3266 (commit4a20b25), with the same code. TheTRANSLATOR_VERSIONbump to 5 is behind main (12).Main has no test for this;
unreachable_conversion_does_not_require_double_extensionscould still go in as a test-only PR.Recommendation: close (superseded by #3266 / main commit
4a20b25).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.