Shaders: separate Series S and Series X used manifests #2860
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2860"
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 itsSio on 2026-11-26T19:25:02Z.
Series S (
lockhart) and Series X (anaconda) sharedused-pipelines.txt,used-shaders.txt, andused-graphics-pipelines.binindxc::cache_dir(), mixing startup preparation and preload manifests across profile switches.pipelines_in_workersalso omittedXCL_DEVICE_TYPEfor--used-onlyworkers.Routes Series S manifests to
-lockhartfilenames (state::boot()first,XCL_DEVICE_TYPEfallback) and forwardsXCL_DEVICE_TYPEto compute workers. Series X filenames stay unchanged.What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs:profile_is_series_s(),used_file_name(),used_pipelines_name(),used_shaders_name(),used_manifests_separate_series_s_from_series_x.crates/xcl/src/hle/d3d12x/gfx_records.rs: routepath()viaused_file_name().crates/xcl/src/shaders.rs:pipeline_worker_command()forwardsXCL_DEVICE_TYPE,--used-onlyprints active manifest name,pipeline_worker_command_forwards_console_profile.README.md: document-lockhartmanifest variant.Tested
32.0.16.1088), Ryzen 7 9800X3D, Win11 26200,rustc 1.97.0, debug:cargo test --workspaceat6efa82fa(SDK DXC 1.6, noXCL_DXC_DIR): 1808 passed, 13 failed, 48 ignored, 147SKIPPED;pso_async::used_tests(40/0),gfx_records::tests(6/0),shaders::tests(12/0, 1SKIPPED) passed.1.8.2502.11,XCL_ADAPTER=NVIDIA, debug (identical diff oneae01502):cargo test -p xcl --lib -- pso_async gfx_records shaders --test-threads=4: 69 passed, 0 failed, 0 ignored, 1SKIPPED.cargo test --workspace --no-fail-fast -- --test-threads=4: 1817 passed, 8 failed, 48 ignored, 30SKIPPED(0 failures in touched modules).Regression run
Not tested
AI use
Ran via Samaritan:
nvidia-dev, wrote code, tests, commit, and coordinated PR handoff.6efa82fa: Build PC RTX 2080 SUPER and Main PC workspace suites ran via Samaritan (worker models for the 18:46–19:27 turn were not preserved in local logs).Imported from ivall/xcl. Originally posted by MatyEjsr on 2026-11-26T20:01:03Z.
Independent NVIDIA Windows 11 verification of PR #2860 at head
6efa82fab8dce5df52e7f69fff5539b8258e2d2c(baseorigin/nvidia-devateae015021c639866ab061cdff2e9daf8ba9daac5,MERGEABLE; no duplicate or superseded PRs — file overlap only with #2572 (nvidia-devtracking PR), #2070, and #2828 in distinct scopes).Tested
32.0.16.1742/617.42, Windows Developer Mode ON), 32 GB RAM,rustc 1.100.0, DXC1.9.2602.17(Windows SDK) /1.9.0.5512.cargo test -p xcl --lib -j 8 -- pso_async gfx_records shaders --nocapture: 69 passed, 0 failed, 0 ignored, 0SKIPPED(note:shaders::tests::retail_pack_samplereturned early becauseXCL_SAMPLE_RPFwas unset). Both new unit tests (used_manifests_separate_series_s_from_series_x,pipeline_worker_command_forwards_console_profile) passed.cargo test --workspace -j 8 --no-fail-fast -- --test-threads=8 --nocapture: 1821 passed, 9 failed, 48 ignored, plus 29 uniqueSKIPPEDGPU/debug-layer cases (not counted as coverage: 21no wave64, 3wave32, per-lane form: refused, 2no heap windows, 3 missing D3D12 debug layer). All 7 distinct failing tests (gpu_compute_thread_limits_leave_the_lanes_past_them_out,texture_upload::tests::{gpu_parts_of_a_texture_go_up_and_the_rest_stays, pieces_hold_the_texels_of_their_levels},console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,split_compute_prefers_the_offline_whole_pipeline,async_compute_pso_registers_real_pso_and_not_standin,two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs— plus 2 child-process test invocations of the latter two) reproduce identically on merge-baseorigin/nvidia-dev(eae01502) with--test-threads=1.XCL_DEVICE_TYPE=lockhart) <-> Series X (XCL_DEVICE_TYPE=anaconda) profile switch in a shared fresh DXIL cache (XCL_PREPARE=0,XCL_NETWORK=0, 20s each):-lockhartmanifests existed (used-pipelines-lockhart.txt1 line / 17 B,used-shaders-lockhart.txt2 lines / 34 B,used-graphics-pipelines-lockhart.bin241 B).used-pipelines.txt4 lines / 68 B,used-shaders.txt7 lines / 119 B,used-graphics-pipelines.bin657 B) while all three-lockhartfiles kept identical SHA-256 hashes.xcl shaders ... --precompile --only cs --pipelines --used-only --limit 1selectedused-pipelines-lockhart.txt(1 pipeline) underlockhartandused-pipelines.txt(4 pipelines) underanaconda.Regression run (
origin/nvidia-deveae01502vs PR #28606efa82fa, RTX 3090, warm DXIL cache,c1cc91a4)(PR run: 4324 translated PSOs, 0 fallback, 0 failed, peak local VRAM 6192 MB, peak non-local VRAM 4890 MB, vs
eae015024324 translated PSOs, 6188 MB local, 4885 MB non-local; also note the PR description's own regression block currently pairs amainbaselineb49be183instead ofnvidia-deveae01502.)Not tested
xcl.toml-driven live profile switch (theBootprecedence path is covered by unit testprofile_is_series_s_from).AI use
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T20:27:15Z.
Independent desktop NVIDIA verification of PR #2860 at head
6efa82fab8dce5df52e7f69fff5539b8258e2d2c(1commit; exact parent & merge-base onnvidia-dev:eae015021c639866ab061cdff2e9daf8ba9daac5).Environment
7956 MiBreported by D3D12,6993 MBDXGI local video memory budget observed in this run), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
6efa82fa)cargo test --release -p xcl --lib used_manifests_separate_series_s_from_series_x -- --nocapture1 passed; 0 failed; 0 ignored; 1721 filtered out(0.00s)cargo test --release -p xcl --lib pipeline_worker_command_forwards_console_profile -- --nocapture1 passed; 0 failed; 0 ignored; 1721 filtered out(0.00s)cargo test --release -p xcl --lib hle::d3d12x::pso_async::(3 consecutive runs)40 passed; 0 failed; 0 ignored; 1682 filtered out× 3 (1.21s,1.21s,1.21s)cargo test --release -p xcl --lib shaders::16 passed; 0 failed; 0 ignored; 1706 filtered out(0.18s;1test self-skipped at runtime, see below)cargo build --release -p xcl --bin xcl1m 25s, exit0)Note on
shaders:::shaders::tests::pso_measurement_compiles_an_exact_synthetic_recordprintedSKIPPEDat runtime because Windows Developer Mode is disabled on this host (required by D3D12 to disable the driver shader cache); the remaining15tests, includingshaders::tests::pipeline_worker_command_forwards_console_profile, executed and passed.Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
eae015021c639866ab061cdff2e9daf8ba9daac5, cached baseline on the same machine):PR #2860 (
6efa82fab8dce5df52e7f69fff5539b8258e2d2c):Runtime log observations (
xcl.log)9391log lines,0[ERROR]/ device-removal / panic lines.anaconda):console: Xbox Series X (anaconda) (title memory 13824 MiB, mode advanced)Shader preparation: only the 15 shaders earlier runs usedShader preparation: compute pipelines in 8 worker processes, those an earlier run usedShader preparation: the 4 graphics pipelines earlier runs used, in 4 worker processesD3D12.X: the pipelines of 10 shader sets an earlier run used are built ahead of their first use19111 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14719 MB committed by the process; video memory 6118 MB local, 4746 MB non-local; video memory budget 6993 MB.Limits of coverage
anaconda) manifest files and multi-worker startup preparation path end-to-end (8compute +4graphics workers), confirming zero regression for Series X. A separate end-to-end Series S (XCL_DEVICE_TYPE=lockhart) retail boot inspecting-lockhartmanifest files on disk was not run; Series S-lockhartfilename separation andXCL_DEVICE_TYPEworker-command forwarding were verified through the PR's unit tests (used_manifests_separate_series_s_from_series_xandpipeline_worker_command_forwards_console_profile).shaders::tests::pso_measurement_compiles_an_exact_synthetic_recordself-skipped because Windows Developer Mode is disabled on this host.1571vs.1551frames;14795vs.15926 MB) reflect normal run-to-run startup/worker timing variance and are not attributed to this PR.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:59:44Z.
Tested
Clean
6efa82fab8dce5df52e7f69fff5539b8258e2d2c, Windows 11 build 26200, Ryzen 7 3800X, Rust 1.100.0 MSVC, DXC 1.9.2602.17. CPU and offline shader compilation using generated fixtures.--exact --test-threads=1and 49 filters covering DXIL cache round-trip, graphics records, pipeline-ahead handling, and offline manifest selection. WithXCL_DEVICE_TYPE=lockhartand thenanaconda, each invocation had 49 passed, 0 failed, 0 ignored, 0 skips. Includesused_manifests_separate_series_s_from_series_x,pipeline_worker_command_forwards_console_profile, andused_only_keeps_the_compute_programs_an_earlier_run_used.powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\verify-cpu.ps1ranxcl shaders <synthetic-fixture-dir> --precompile --only cs --used-only --windows 4 --split 0seven times. All seven controls passed. Both profile-switch orders kept manifests separate in a shared cache. A missing active manifest selected zero shaders for either profile. Each populated manifest selected its one expected shader, and the unset-profile control used the Series X manifest. Exact reader keys and artifact hashes confirmed that writing the second profile preserved the first profile's files.Not tested
Native GPU rendering, retail profile switching, driver pipeline persistence, retail smoke, and full workspace suite.
AI use
Codex in T3 Code (
gpt-6.2-solfor the worker run) ran the tests and prepared the synthetic CLI fixture. The coordinator independently reran both libtest groups and the CLI matrix.Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T04:49:29Z.
Independent 90 s Series S (
lockhart) check on RTX 3060 Ti (8 GB) (6efa82famerged withnvidia-devecc0bb57), withused-pipelines-lockhart.txt,used-shaders-lockhart.txt, andused-graphics-pipelines-lockhart.binseeded inXCL_DXIL_CACHE.Shader preparation: only the 1572 shaders earlier runs used,compute pipelines done in 34 s (0 of 8 workers failed),uma_coherent_lockhart.txtresolved, entered world (first_2pass_mesh_t=113.0 s),0crashes,0device removals.Not tested: Series X (
anaconda) switching in the same folder without pre-seeded-lockhartfiles.Imported from ivall/xcl. Originally posted by ettehn on 2026-11-27T04:57:46Z.
I checked the first Series X → Series S switch with only the legacy, unsuffixed manifests present. A standalone Windows x64 fixture compiled the manifest readers/writers and worker-command code from base
eae01502and head6efa82fa. A test child recorded the actual arguments and environment it received.--used-onlyand inherited the Series X key. After Series S recorded a new key, both profiles saw both keys.XCL_DEVICE_TYPE=lockhartand omitted--used-only, so startup preparation did not filter against the Series X list. After recording a Series S key, the next Series S worker received--used-onlyand read just that key. Switching back to Series X picked its original key, and both Series X text files were byte-identical. A Series S boot with an inheritedanacondaenvironment also sentlockhartto the child.This covers the startup worker command and text-manifest transition. The child only recorded the command and read the manifests. No GPU, retail startup, or compile-time measurement. OpenAI Codex assisted with verification.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T21:55:10Z.
merge-check
base:
d1be810364(nvidia-dev)head:
6efa82fab8merge: clean, uncommitted trial merge
build:
cargo build --workspace --locked-> oktests:
cargo test --workspace --locked --no-fail-fast -- --test-threads=4-> 1,825 passed, 9 failed, 48 ignored; 27 GPUSKIPPEDnotices. Both new manifest tests passed. The nine failures reproduce the untouchednvidia-devbaseline (1,823 passed, 9 failed, 48 ignored, 27 skips):console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk,gpu_parts_of_a_texture_go_up_and_the_rest_stays,pieces_hold_the_texels_of_their_levels,console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,async_compute_pso_registers_real_pso_and_not_standin,split_compute_prefers_the_offline_whole_pipeline(also in its child process), andtwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs(also in its child process). The base run has the same failure set.review: No actionable finding in the full four-file diff. The host boot profile takes precedence over an inherited environment value, standalone workers receive the active
XCL_DEVICE_TYPE, and Series X retains the existing filenames while Series S uses-lockhartfiles. Existing independent profile-switch checks and the author's paired smoke are in this PR.performance: Manifest name selection occurs during preparation, reading, or record-store initialization; no new per-frame path. Separate profile manifests can reduce unnecessary startup preparation after switching profiles. I did not measure startup time.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300; RTX 3080 Ti 12 GB, NVIDIA 621.35; Ryzen 7 9800X3D; Rust 1.99.1 MSVC; DXC 1.8.2502.11. Codex (GPT-6.2 Sol) ran the merge, build, GPU suite, and reviewed the report; Codex (GPT-6.2 Astra) independently reviewed the low-level manifest diff.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:42:10Z.
merge-check claim
head:
6efa82fab8Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:04:29Z.
merge-check
base:
d1be8103(nvidia-dev)head:
6efa82fab8merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1826 passed, 8 failed, 48 ignored (27 SKIPPED lines). The 8 failures are the base's own on this GPU, the same six names with and without the PR (async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, two texture_upload tests; #2771 and #2788 fix three of them). Base alone: 1824 passed, 8 failed, 48 ignored.
review: none. The boot record is set before the preparation runs, so the profile test sees it; the worker command it builds is never started by the new code path itself.
performance: none. Series S users get one unfiltered, cold first launch after updating (the manifest's name changes).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).