Recompiler: honor DXC overrides with warm translation caches #608
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/613"
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 mjnhbg3 on 2026-11-24T02:31:35Z.
Stacked on #591 (rebased onto main
cb868b2); only the top commit belongs here. Part of #559.A warm translated shader returns before #591's argument-aware DXIL cache is consulted: even an invalid
XCL_DXC_ARGSoption silently returns the old translation. Bypass the RAM and translated-file caches while the override is present; keep the argument-keyed DXIL cache active.What is in it
pso.rs: bypass higher shader caches forXCL_DXC_ARGS, following the existing debug overrides.dxc.rs: replace the process-wide environment fixture with real-DXC subprocess checks: default, macro +-O1, macro +-O0, invalid option, and warm cache hits. The previous fixture raceddxil_cache_round_tripin a parallel run.README.md: document the override and cache behavior.Tested
cargo build --workspace;cargo test --workspace --no-fail-fast -- --test-threads=1 --nocapture: 688 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64);test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state(missing debug layer).XCL_ADAPTER=warp,scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched --nocapture: 687 passed, 0 failed, 41 ignored; 88 runtime skips, one filtered e2e test. These skips are not GPU coverage.invalid arguments reused a cached translationand passes with this fix.scripts/test-native-stderr.tests.ps1: passed under Windows PowerShell 5.1 and PowerShell 7.rustcunused-variable fixtures through the runner on both shells: warnings preserved with exit 0 and one real test passed;-D warningspreserved the compiler error and propagated exit 1.Regression run
main: not run on a retail title; none available.
PR: not run on a retail title; none available. This remains a draft pending the required paired smoke runs.
Not tested
508a0c7and localba3d7bastalled at the same four GPU tests and were stopped; the hardware counts above are serial.AI use
gpt-6.1-sol: implementation, isolated regression fixture, review and local verification of the top commit. The dependency implementation is from #591.Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T07:01:26Z.
Regression runs for this PR's head
920c380and for its basemaincb868b2, on a retail title (same title, 60 s each), made withscripts/smoke.ps1(release, clean tree at each commit) and pasted unedited, for Regression run.main:
this PR:
Tested
Not tested
XCL_DXC_ARGSitself: these runs leave it unset, so this is a regression check onlyReport written with Claude Code (Claude Opus 5.5) from runs on this machine.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
upstream-sync referenced this pull request2026-11-25 03:04:25 +00:00
upstream-sync referenced this pull request2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:55:47Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:53Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:48:53Z.
Triage (#1607) – head
920c380Stacked on #591: it contains #591's commit (DXC arguments in the DXIL cache key,
XCL_DXC_ARGS) and adds its own commit on top:XCL_DXC_ARGSbypasses the translated-program caches inpso.rs(cache_allowed), the README note, and a test that runs real DXC in child processes instead of #591'scompile_cached_in_honors_xcl_dxc_args_env, which callsset_varin a parallel test. Not a duplicate; review it after #591.XCL_DXC_ARGSis not yet honoured by the runtime on main (only by test helpers). No problems found in this PR's own commit.Recommendation: keep open.
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.