xcl run: XCL_RT_LEAVE_OUT leaves out a title's ray-tracing programs #3302
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3302"
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 Foniass on 2026-11-29T06:51:14Z.
A title's ray-tracing programs that start rays or shade their hits (on
a retail title about 1,000 programs of ~1 MB of DXIL each, the largest
of its cold driver compiles) do nothing while the title has built no
acceleration structure: every ray misses. On amd-dev's runs, allowing
them pushed the title's commit at world entry from about 10 to 21 GB.
XCL_RT_LEAVE_OUT=[,...] (off by default) leaves out
the compute programs whose shader container holds one of the fragments:
the title's pipeline gets the dummy program an untranslatable console
shader gets, so its dispatches are skipped, and the shader preparation
and
xcl shaders --precompilepass them over (and say how many). Thefragments name the programs (names in the container's debug data, found
with
xcl rpf <pack> --find); XCL's source names no title's programs.So that leaving them out stays harmless, XCL watches the acceleration
structures the title's views name and warns once when one gets a root
node.
Ported from amd-dev (raylitebull's WIP
6fa964de, gpu/rt_leave_out.rs ason amd-dev, and its hooks), itself ported from Vice-Tay
(GPL-3.0-or-later, commit 1f69d67,
left_outincrates/victory-gpu/src/pipeline/make.rs); THIRD_PARTY.md names it.
What is in it
crates/xcl/src/gpu/rt_leave_out.rs(new): fragments,left_out, the acceleration-structure watch, testscrates/xcl/src/hle/d3d12x/real.rs:rt_left_outincompute_pso(the dummy program),note_structurewhere a ray-tracing view is made;present.rs:check_structuresevery 300 framescrates/xcl/src/shaders.rs: the preparation and--precompilepass left-out programs over and say how manyTHIRD_PARTY.md: Vice-Tay (GPL-3.0-or-later);README.md: the switchTested
cargo test --workspace --no-fail-fast -- --test-threads=4on0ab2fb4d: 2608 passed, 4 failed, 49 ignored (lib: 2469 / 4 / 29 in a rerun, other targets 139 / 0 / 20). The 4 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3(E_OUTOFMEMORYfromCreateComputePipelineState, seeds 70 / 545 / 1019 / 1507), the same as on main on this machine; they pass on another RTX 5070 Ti. SKIPPED GPU tests: 44 notices, almost allno wave64.coherent window could not be restored ... E_OUTOFMEMORY); a rerun ofcargo test -p xcl --libon this head: 2469 passed, 4 failed (the fuzz tests), 29 ignored.Regression run
main:
this PR:
Not tested
XCL_RT_LEAVE_OUTset on the retail title (the smoke run is without it, so it only shows the default is unchanged); the memory effect is amd-dev's report, not measured hereAI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Foniass on 2026-11-29T18:23:18Z.
Note for the maintainers: this PR duplicates #3026 (VolenNakov, opened 2026-11-27, two days before this one). It is the same feature: the same
XCL_RT_LEAVE_OUTswitch, the samegpu/rt_leave_out.rs, and the same Vice-Tay source (1f69d67,left_out). This one came from the amd-dev copy of it. I missed #3026 when I checked for duplicates.Only one of the two should be merged. #3026 is older but currently conflicts with main; this one merges cleanly and has a full suite and smoke run on an RTX 5070 Ti. I'll close this PR if you keep #3026.
(Written with Claude Code, Claude Opus 5.5.)
Imported from ivall/xcl. Originally posted by Foniass on 2026-11-30T21:45:39Z.
Closing in favour of #3026 (VolenNakov). It is the same feature, opened earlier and still kept up to date, with test reports. This PR now conflicts with main too, so it no longer has any advantage over #3026.
(Written with Claude Code, Claude Opus 5.5.)
Pull request closed