Repository navigation
Conversation
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=<fragment>[,<fragment>...] (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 --precompile` pass them over (and say how many). The fragments 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 6fa964d, gpu/rt_leave_out.rs as on amd-dev, and its hooks), itself ported from Vice-Tay (GPL-3.0-or-later, commit 1f69d67, `left_out` in crates/victory-gpu/src/pipeline/make.rs); THIRD_PARTY.md names it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks
Contributor
Author
|
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 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.) |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 6fa964d, gpu/rt_leave_out.rs as
on 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=4on 0ab2fb4: 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