Skip to content

Shaders: separate Series S and Series X used manifests - #2860

Open
itsSio wants to merge 1 commit into
xcl-dev:nvidia-devfrom
itsSio:shaders/nvidia-dev-profile-used-manifests
Open

itsSio wants to merge 1 commit into
xcl-dev:nvidia-devfrom
itsSio:shaders/nvidia-dev-profile-used-manifests

Conversation

@itsSio

@itsSio itsSio commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Series S (lockhart) and Series X (anaconda) shared used-pipelines.txt, used-shaders.txt, and used-graphics-pipelines.bin in dxc::cache_dir(), mixing startup preparation and preload manifests across profile switches. pipelines_in_workers also omitted XCL_DEVICE_TYPE for --used-only workers.

Routes Series S manifests to -lockhart filenames (state::boot() first, XCL_DEVICE_TYPE fallback) and forwards XCL_DEVICE_TYPE to 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: route path() via used_file_name().
  • crates/xcl/src/shaders.rs: pipeline_worker_command() forwards XCL_DEVICE_TYPE, --used-only prints active manifest name, pipeline_worker_command_forwards_console_profile.
  • README.md: document -lockhart manifest variant.

Tested

  • RTX 5080 (driver 32.0.16.1088), Ryzen 7 9800X3D, Win11 26200, rustc 1.97.0, debug:
    • cargo test --workspace at 6efa82fa (SDK DXC 1.6, no XCL_DXC_DIR): 1808 passed, 13 failed, 48 ignored, 147 SKIPPED; pso_async::used_tests (40/0), gfx_records::tests (6/0), shaders::tests (12/0, 1 SKIPPED) passed.
  • RTX 2080 SUPER, DXC 1.8.2502.11, XCL_ADAPTER=NVIDIA, debug (identical diff on eae01502):
    • cargo test -p xcl --lib -- pso_async gfx_records shaders --test-threads=4: 69 passed, 0 failed, 0 ignored, 1 SKIPPED.
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1817 passed, 8 failed, 48 ignored, 30 SKIPPED (0 failures in touched modules).

Regression run

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5080
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1019 (PresentX 1019)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14670 MB
xcl-smoke v1
commit: 6efa82fab8dce5df52e7f69fff5539b8258e2d2c
gpu: NVIDIA GeForce RTX 5080
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1551 (PresentX 1551)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14860 MB

Not tested

  • Main PC suite with DXC 1.9, AMD/Intel GPUs, Linux/Wine, live Series S <-> Series X title switch.

AI use
Ran via Samaritan:

  • Antigravity (Gemini 4 Neon (High)): scouted nvidia-dev, wrote code, tests, commit, and coordinated PR handoff.
  • Antigravity (Gemini 4 Hydrogen (High)): read-only diff audit (PASS), live upstream/PR check prep, and RTX 5080 warm-cache smoke run.
  • Verification suites on 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).

Series S (lockhart) and Series X (anaconda) previously shared used-pipelines.txt, used-shaders.txt, and used-graphics-pipelines.bin in the same cache directory, causing profile switches to mix startup shader preparation and runtime preload manifests across console profiles. Also, --used-only compute pipeline precompile workers did not receive XCL_DEVICE_TYPE, so standalone workers defaulted to the Series X manifest.

Route per-profile usage and graphics replay manifests to -lockhart filenames when the active profile is Series S (checking state::boot() first and falling back to XCL_DEVICE_TYPE), and forward XCL_DEVICE_TYPE from pipelines_in_workers to child workers.

Assisted-by: Antigravity (Gemini 4 Neon (High))
@MatyEjsr

MatyEjsr commented Nov 26, 2026 •

Copy link
Copy Markdown

Independent NVIDIA Windows 11 verification of PR #2860 at head 6efa82fab8dce5df52e7f69fff5539b8258e2d2c (base origin/nvidia-dev at eae015021c639866ab061cdff2e9daf8ba9daac5, MERGEABLE; no duplicate or superseded PRs — file overlap only with #2572 (nvidia-dev tracking PR), #2070, and #2828 in distinct scopes).

Tested

  • Environment: Windows 11 Pro for Workstations (build 26200), AMD Ryzen 7 7800X3D, NVIDIA GeForce RTX 3090 (24 GB VRAM, driver 32.0.16.1742 / 617.42, Windows Developer Mode ON), 32 GB RAM, rustc 1.100.0, DXC 1.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, 0 SKIPPED (note: shaders::tests::retail_pack_sample returned early because XCL_SAMPLE_RPF was 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 unique SKIPPED GPU/debug-layer cases (not counted as coverage: 21 no wave64, 3 wave32, per-lane form: refused, 2 no 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-base origin/nvidia-dev (eae01502) with --test-threads=1.
  • Live Series S (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):
    • After the Series S run, only -lockhart manifests existed (used-pipelines-lockhart.txt 1 line / 17 B, used-shaders-lockhart.txt 2 lines / 34 B, used-graphics-pipelines-lockhart.bin 241 B).
    • After the subsequent Series X run in the same cache directory, Series X manifests were written (used-pipelines.txt 4 lines / 68 B, used-shaders.txt 7 lines / 119 B, used-graphics-pipelines.bin 657 B) while all three -lockhart files kept identical SHA-256 hashes.
    • Standalone xcl shaders ... --precompile --only cs --pipelines --used-only --limit 1 selected used-pipelines-lockhart.txt (1 pipeline) under lockhart and used-pipelines.txt (4 pipelines) under anaconda.

Regression run (origin/nvidia-dev eae01502 vs PR #2860 6efa82fa, RTX 3090, warm DXIL cache, c1cc91a4)

xcl-smoke v1
commit: eae015021c639866ab061cdff2e9daf8ba9daac5
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1599 (PresentX 1599)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14760 MB
xcl-smoke v1
commit: 6efa82fab8dce5df52e7f69fff5539b8258e2d2c
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1597 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14863 MB

(PR run: 4324 translated PSOs, 0 fallback, 0 failed, peak local VRAM 6192 MB, peak non-local VRAM 4890 MB, vs eae01502 4324 translated PSOs, 6188 MB local, 4885 MB non-local; also note the PR description's own regression block currently pairs a main baseline b49be183 instead of nvidia-dev eae01502.)

Not tested

  • AMD RDNA / Intel GPUs, native wave64 hardware, Linux/Wine, and xcl.toml-driven live profile switch (the Boot precedence path is covered by unit test profile_is_series_s_from).

AI use

  • Antigravity (agy) with gemini-pro-orchestrator-argon (audited by gemini-pro-orchestrator-argon): inspected the diff and campaign metadata, built and ran the test suites, ran the 60s smoke verification and live Series S <-> Series X manifest-separation check, and wrote/audited this report.

@Decodere

Copy link
Copy Markdown
Contributor

Independent desktop NVIDIA verification of PR #2860 at head 6efa82fab8dce5df52e7f69fff5539b8258e2d2c (1 commit; exact parent & merge-base on nvidia-dev: eae015021c639866ab061cdff2e9daf8ba9daac5).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, 6993 MB DXGI local video memory budget observed in this run), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (6efa82fa)

Command Result
cargo test --release -p xcl --lib used_manifests_separate_series_s_from_series_x -- --nocapture 1 passed; 0 failed; 0 ignored; 1721 filtered out (0.00s)
cargo test --release -p xcl --lib pipeline_worker_command_forwards_console_profile -- --nocapture 1 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; 1 test self-skipped at runtime, see below)
cargo build --release -p xcl --bin xcl Clean build (1m 25s, exit 0)

Note on shaders::: shaders::tests::pso_measurement_compiles_an_exact_synthetic_record printed SKIPPED at runtime because Windows Developer Mode is disabled on this host (required by D3D12 to disable the driver shader cache); the remaining 15 tests, including shaders::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):

xcl-smoke v1
commit: eae015021c639866ab061cdff2e9daf8ba9daac5
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1551 (PresentX 1551)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15926 MB

PR #2860 (6efa82fab8dce5df52e7f69fff5539b8258e2d2c):

xcl-smoke v1
commit: 6efa82fab8dce5df52e7f69fff5539b8258e2d2c
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1571 (PresentX 1571)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14795 MB

Runtime log observations (xcl.log)

  • 9391 log lines, 0 [ERROR] / device-removal / panic lines.
  • Default console profile & manifest startup preparation ran cleanly on Series X (anaconda):
    • console: Xbox Series X (anaconda) (title memory 13824 MiB, mode advanced)
    • Shader preparation: only the 15 shaders earlier runs used
    • Shader preparation: compute pipelines in 8 worker processes, those an earlier run used
    • Shader preparation: the 4 graphics pipelines earlier runs used, in 4 worker processes
    • D3D12.X: the pipelines of 10 shader sets an earlier run used are built ahead of their first use
  • Final draw/memory telemetry in log: 19111 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14719 MB committed by the process; video memory 6118 MB local, 4746 MB non-local; video memory budget 6993 MB.

Limits of coverage

  • The 60 s retail smoke exercised the default Series X (anaconda) manifest files and multi-worker startup preparation path end-to-end (8 compute + 4 graphics workers), confirming zero regression for Series X. A separate end-to-end Series S (XCL_DEVICE_TYPE=lockhart) retail boot inspecting -lockhart manifest files on disk was not run; Series S -lockhart filename separation and XCL_DEVICE_TYPE worker-command forwarding were verified through the PR's unit tests (used_manifests_separate_series_s_from_series_x and pipeline_worker_command_forwards_console_profile).
  • shaders::tests::pso_measurement_compiles_an_exact_synthetic_record self-skipped because Windows Developer Mode is disabled on this host.
  • Single-run frame count and peak-commit deltas against the cached parent baseline (1571 vs. 1551 frames; 14795 vs. 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants