Shaders: prepare whole split fallbacks on nvidia-dev #3131
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3131"
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 Prime1997 on 2026-11-28T12:37:36Z.
Adapt #2551 by René (@DTsordas), original commit
3567b2efdc94617de71e50be77e107991a6bd41c, ontonvidia-dev54225f5884a94cd23b7aab3f703a7c975070aa77. Ordinary--precompile --pipelinesprepared split pieces but omitted the whole fallback needed by indirect dispatch. Preparing that fallback ahead of play can avoid its cold driver compile on the game's thread. This is a NVIDIA adaptation of the existing main PR.What is in it
.chain.psocache namespace alongside the split pieces.Tested
73872c0d487c6f7b001a78424e5e49ad819b9fef.d50f6656fb50b7927a2279d4c78b24222be3da54:cargo build --locked --release -p xcl --target-dir <isolated-target>exited 0 in 228.576s, with 9 warnings. This includes the change but is not a standalone build/test of this PR head.cargo test --locked --release -p xcl --test gpu_compute_e2e <filter> --target-dir <isolated-target> -- --exact --test-threads=1 --nocapture. Filtersoffline_split_compute_pipeline_is_reused_by_a_second_processanda_preparation_worker_also_builds_a_split_programs_whole_form: each 1 passed, 0 failed, 0 ignored, 7 filtered, no SKIPPED messages. Covers cold synthetic whole/piece creation, fresh-process reuse, corrupt-blob recovery and startup avoiding duplicate whole preparation.xcl.exe shaders <private-exact-four> --precompile --only cs --pipelines --windows 16 --split 1. Each accepted 60/60 cached native pipelines, 0 refused, 4 split programs/56 pieces plus four whole forms, with one pipeline worker and matching adapter/DXC/translation settings. The four whole blobs already existed after the prior failed play session; this proves current driver acceptance, not a controlled 113-second before/after reduction or successful world entry.cargo test --locked --release -p xcl --lib shaders::pipeline_cap_tests::split_compute_program_prebuilds_and_caches_chain_pieces --target-dir <isolated-target> -- --exact --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored, 1805 filtered, no SKIPPED messages; command wall time 384.914s including compilation. This is a synthetic native PSO/cache check, without shader dispatch. The previous head failed this test in Windows CI because it assumed the whole DXIL was larger than each piece. This fixture-only follow-up restores the rejected piece before testing a cold whole cap, so it no longer depends on compiler-specific sizes. The earlier runtime change is preserved; the full suite and new-head CI are not claimed here.Regression run
Pending paired clean-head main/PR title runs. No smoke result or successful world-entry result is claimed. Draft while required validation remains incomplete.
Not tested
AI use
Codex (GPT-6) checked overlap, adapted and reviewed the NVIDIA integration and tests, and prepared this description. René's original #2551 work is credited in the commit.
Optional temporary Discord for coordinating contributor work, testing and comparing results: https://discord.gg/6B4TykyC4W
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T12:55:53Z.
Ran the whole-fallback preparation tests at
fb573832on an NVIDIA Blackwell desktop part:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
Both tests pass: the whole
.chain.psofallback is reused by a second process and the preparation worker builds it once. The author ran these at the combined head in release on an RTX 3060 Ti; this is the standalone PR head in debug on an RTX 5070 Ti. The PR has no comments yet.Not tested: a title's indirect dispatch, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T13:34:24Z.
Re-ran the whole-fallback preparation tests at
73872c0dafter the head moved fromfb573832; this is a new response in the same thread, not an edit of my earlier report:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
Both tests still pass at the new head, which changes the whole-pipeline cap test to be independent of DXIL size. The thread already has my report at
fb573832; this is only the new head.Not tested: a title's indirect dispatch, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T17:32:04Z.
@Prime1997 we ran the whole suite of your head on an RTX 3090 against its base on the same machine: no failure the base doesn't have. Your two changed tests pass:
shaders::pipeline_cap_tests::split_compute_program_prebuilds_and_caches_chain_pieces: the pieces, the whole form under the chain root signature, and the caps;tests\gpu_compute_e2e.rs: 8 passed.Tested:
73872c0dand its basenvidia-dev54225f58.XCL_*set.cargo test --workspace --no-fail-fast -- --test-threads=4 --skip uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom --skip uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment --skip uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_windowtitle_textures: one0x8007000Ein the full run, which passes alone, and threePoisonErrorfrom it;vram0x8007000E;e2etest_title_runs_and_game_folder_is_untouched.A note from reading it: a title's launch workers already build the whole forms, since
precompiledoes it whenXCL_PRECOMPILE_PARENTis set (shaders.rs~2191, removed here and moved intoPipelines::make). So the change shows for a plainxcl shaders --precompile --pipelinesrun, as the README line says.Not tested: a timed offline
--precompile --pipelinespass on a title's pack; a title run; a release build; AMD / Intel.AI use: an agent swarm: Claude Fable 5.2, Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T17:48:32Z.
One cache-layout control on
73872c0d: a valid ordinary whole.psofor the same compute DXIL did not make a missing dispatch-chain whole.chain.psocount as warm. This matters when interpreting an offline preparation run after changing split settings.I extended the stock synthetic split fixture locally. Both pieces were already cached. I removed the chained whole and used production
Pipelines::make_onewith the ordinary ABI root signature to create the ordinary whole. Then I called productionPipelines::makethree times:The ordinary blob remained byte-for-byte unchanged in all three passes. Thus an over-cap missing fallback still needs one preparation pass that permits its cold build; afterwards the lower cap admits its valid cached form.
XCL_ADAPTER=5070on an RTX 5070, Windows MSVC debug, DXC 1.8.2502.11. One test passed without skips. This used native PSO creation and disk caching, with no shader dispatch, title data or timing claim.AI use: OpenAI Codex prepared the test-only extension, ran the controls and wrote this report.
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-28T21:50:31Z.
Closing as a duplicate. This was the
nvidia-devport of #2551 by DTsordas.nvidia-devwas merged intomainby #3203 and this PR was retargeted tomain, where #2551 is open with the same change. Checked and closed with Claude Code on Prime's behalf.Pull request closed