Config: device_type in xcl.toml names the Series S in every spelling #2311

Manually merged
github merged 1 commit from gh-pr/2311/head into gh-pr/2311/base 2026-11-26 05:26:48 +00:00
Owner

@⁠gefydev on GitHub · 2026-11-25 13:32 UTC · original
gefydev:config-device-type-spellings → main · +9 −2 · 1 files · 1 commits · merged 2026-11-25 16:15 UTC

device_type in xcl.toml only counted as the Series S when it was lockhart or series s, while XCL_DEVICE_TYPE goes through parse_device_type, which also takes series_s, xss, s and surrounding blanks. So device_type = "xss" in the file was a Series X, with no message: the manifest's anaconda memory mode, the 13 824 MiB budget (8 192 for a Series S) and the "Xbox Series X" console form. Follows #48, which fixed Series S only.

What is in it

  • crates/xcl/src/config.rs: Config::is_series_s asks parse_device_type, the same reading as the override, so the file and the variable take the same spellings.
  • The test every_series_s_spelling_gets_the_series_s_memory takes series_s, xss, S and lockhart as well, and checks that the Series X spellings (anaconda, Series X, xsx, x) still get the Series X budget.

Tested

  • NVIDIA GeForce GTX 1650 (4 GB, 32-lane waves only), driver 621.24, AMD Ryzen 5 1600, 16 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, debug for the tests and release for the regression runs.
  • The extended test fails without the change (series_s: left ("standard", 13824), right ("advanced", 8192)) and passes with it.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 on d2515bc: 1250 passed, 0 failed, 46 ignored. 26 SKIPPED, none of them on a path this change touches: 20 wave64 cases ("no wave64" on this GPU), 3 per-lane f16 cases the per-lane form refuses, 1 "no heap windows", 2 for the D3D12 debug layer not being installed.

Regression run
scripts/smoke.ps1 -Game <title folder> -Seconds 60, release builds, the same machine and title for both, one after the other. The title is a Series X one here, so the default path is what this run exercises; it does not reach the Series S spellings.

main:

xcl-smoke v1
commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: NVIDIA GeForce GTX 1650
title: eddfb802
seconds: 60
exit: 0x0
frames shown: 911 (PresentX 911)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 11671 MB

PR:

xcl-smoke v1
commit: d2515bc8c5c2b71149aa836513449bc4e2117cd1
gpu: NVIDIA GeForce GTX 1650
title: eddfb802
seconds: 60
exit: 0x0
frames shown: 981 (PresentX 982)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 11468 MB

Not tested

  • A title run with device_type = "xss" in a real xcl.toml: the unit test covers resolve and the budget, not a title's start.
  • AMD GPUs and native wave64; the title's world load (the smoke runs end in the menu on this card).
  • xcl.toml's header still only names anaconda and lockhart; I did not change what is documented.

AI use

  • Claude Code, Claude Sonnet 5.5: found the defect, wrote the change, the test and this description, and ran the checks.
**@⁠gefydev** on GitHub · 2026-11-25 13:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/2311) `gefydev:config-device-type-spellings` → `main` · +9 −2 · 1 files · 1 commits · merged 2026-11-25 16:15 UTC `device_type` in `xcl.toml` only counted as the Series S when it was `lockhart` or `series s`, while `XCL_DEVICE_TYPE` goes through `parse_device_type`, which also takes `series_s`, `xss`, `s` and surrounding blanks. So `device_type = "xss"` in the file was a Series X, with no message: the manifest's anaconda memory mode, the 13 824 MiB budget (8 192 for a Series S) and the "Xbox Series X" console form. Follows #48, which fixed `Series S` only. **What is in it** - `crates/xcl/src/config.rs`: `Config::is_series_s` asks `parse_device_type`, the same reading as the override, so the file and the variable take the same spellings. - The test `every_series_s_spelling_gets_the_series_s_memory` takes `series_s`, `xss`, `S` and ` lockhart ` as well, and checks that the Series X spellings (`anaconda`, `Series X`, `xsx`, `x`) still get the Series X budget. **Tested** - NVIDIA GeForce GTX 1650 (4 GB, 32-lane waves only), driver 621.24, AMD Ryzen 5 1600, 16 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, debug for the tests and release for the regression runs. - The extended test fails without the change (`series_s`: left `("standard", 13824)`, right `("advanced", 8192)`) and passes with it. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` on `d2515bc`: **1250 passed, 0 failed, 46 ignored**. 26 SKIPPED, none of them on a path this change touches: 20 wave64 cases ("no wave64" on this GPU), 3 per-lane f16 cases the per-lane form refuses, 1 "no heap windows", 2 for the D3D12 debug layer not being installed. **Regression run** `scripts/smoke.ps1 -Game <title folder> -Seconds 60`, release builds, the same machine and title for both, one after the other. The title is a Series X one here, so the default path is what this run exercises; it does not reach the Series S spellings. main: ``` xcl-smoke v1 commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: NVIDIA GeForce GTX 1650 title: eddfb802 seconds: 60 exit: 0x0 frames shown: 911 (PresentX 911) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 11671 MB ``` PR: ``` xcl-smoke v1 commit: d2515bc8c5c2b71149aa836513449bc4e2117cd1 gpu: NVIDIA GeForce GTX 1650 title: eddfb802 seconds: 60 exit: 0x0 frames shown: 981 (PresentX 982) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 11468 MB ``` **Not tested** - A title run with `device_type = "xss"` in a real `xcl.toml`: the unit test covers `resolve` and the budget, not a title's start. - AMD GPUs and native wave64; the title's world load (the smoke runs end in the menu on this card). - `xcl.toml`'s header still only names `anaconda` and `lockhart`; I did not change what is documented. **AI use** - Claude Code, Claude Sonnet 5.5: found the defect, wrote the change, the test and this description, and ran the checks.
is_series_s compared device_type with "lockhart" and "series s" only, while
XCL_DEVICE_TYPE goes through parse_device_type, which also takes "series_s",
"xss", "s" and surrounding blanks. So `device_type = "xss"` in xcl.toml was the
Series X: the manifest's anaconda memory mode, the 13 824 MiB budget and the
"Xbox Series X" console form, with no hint why. is_series_s now asks
parse_device_type, the same reading as the override.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:26:46 +00:00
github manually merged commit d2515bc8c5 into gh-pr/2311/base 2026-11-26 05:26:48 +00:00
Author
Owner

@⁠oni-swr on GitHub · 2026-11-25 13:45 UTC · original

CPU-only review of #2311 at head d2515bc8c5c2b71149aa836513449bc4e2117cd1, on origin/main afc5ee86ae3a9521c9f15d96505cd73fe72f2191 (the PR is based on 1a0bbe3; it merges into current main without conflicts).

Tested

  • Built a throwaway merge of #2310, #2311 and #2312 onto origin/main (all three merge cleanly together) and ran cargo test -p xcl --lib --no-run: compiles; the 2 warnings are in code these PRs do not touch.
  • cargo test -p xcl --lib config:: -- --test-threads=1: 8 passed, 0 failed, 0 ignored (includes every_series_s_spelling_gets_the_series_s_memory, which now covers series_s, xss, S, lockhart and the Series X spellings)

Review

  • is_series_s now goes through parse_device_type, the same parser XCL_DEVICE_TYPE uses, so the two spellings sets cannot drift. lockhart and Series S, the two spellings accepted before, still work. No issues found.
    Overlap
  • #1110 (gpu/uma.rs, Series S coherent window cache) and #1450 (README, title_memory_mb) mention is_series_s but do not edit config.rs's function; no conflict found.

Not tested

  • The full workspace suite and any GPU test (the GPU was in use by another job), the integration / e2e binaries, and scripts/smoke.ps1 / any title run. This is not a replacement for the GPU suite or the smoke run the PR template asks for.

AI use

  • Review and test run written by Claude Code (Claude Sonnet 5.5), from a real run on Windows 11 (10.0.26200), stable-x86_64-pc-windows-msvc, debug build, CPU only. I read the full diff; nothing was changed or pushed.
**@⁠oni-swr** on GitHub · 2026-11-25 13:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/2311#issuecomment-7164252062) **CPU-only review of #2311** at head `d2515bc8c5c2b71149aa836513449bc4e2117cd1`, on `origin/main` `afc5ee86ae3a9521c9f15d96505cd73fe72f2191` (the PR is based on `1a0bbe3`; it merges into current `main` without conflicts). **Tested** - Built a throwaway merge of #2310, #2311 and #2312 onto `origin/main` (all three merge cleanly together) and ran `cargo test -p xcl --lib --no-run`: compiles; the 2 warnings are in code these PRs do not touch. - `cargo test -p xcl --lib config:: -- --test-threads=1`: 8 passed, 0 failed, 0 ignored (includes `every_series_s_spelling_gets_the_series_s_memory`, which now covers `series_s`, `xss`, `S`, ` lockhart ` and the Series X spellings) **Review** - `is_series_s` now goes through `parse_device_type`, the same parser `XCL_DEVICE_TYPE` uses, so the two spellings sets cannot drift. `lockhart` and `Series S`, the two spellings accepted before, still work. No issues found. **Overlap** - #1110 (`gpu/uma.rs`, Series S coherent window cache) and #1450 (README, title_memory_mb) mention `is_series_s` but do not edit `config.rs`'s function; no conflict found. **Not tested** - The full workspace suite and any GPU test (the GPU was in use by another job), the integration / e2e binaries, and `scripts/smoke.ps1` / any title run. This is not a replacement for the GPU suite or the smoke run the PR template asks for. **AI use** - Review and test run written by Claude Code (Claude Sonnet 5.5), from a real run on Windows 11 (10.0.26200), `stable-x86_64-pc-windows-msvc`, debug build, CPU only. I read the full diff; nothing was changed or pushed.
Author
Owner

@⁠gefydev on GitHub · 2026-11-25 13:48 UTC · original

@⁠oni-swr thank you for the review of #2311 at d2515bc: no issues, and no conflict with #1110 or #1450. The full suite (1250 passed, 0 failed, 46 ignored) and the smoke pair are in the description.

AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.

**@⁠gefydev** on GitHub · 2026-11-25 13:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/2311#issuecomment-7164309086) @⁠oni-swr thank you for the review of #2311 at `d2515bc`: no issues, and no conflict with #1110 or #1450. The full suite (1250 passed, 0 failed, 46 ignored) and the smoke pair are in the description. AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-25 14:25 UTC · original

I tried the real xcl.toml launch path on d2515bc8c5c2b71149aa836513449bc4e2117cd1 with the bundled test title. The xss alias produced the same memory budget and test-title output as the canonical lockhart setting.

Tested

  • Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974, Radeon(TM) Graphics driver 32.0.21042.62, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized profile. cargo build --locked --workspace passed.
  • I temporarily extended the existing debug-layer e2e fixture to write device_type to an isolated per-title xcl.toml, start the bundled title, check cache/boot.json and verify the config bytes. Ran cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1 once per spelling with XCL_NETWORK=0 and XCL_ADAPTER=AMD Radeon.
  • xss and lockhart both resolved to 8,192 MiB. Both test-title processes reached the end with exit 1 and one failure, GetConsoleType / XSystemGetDeviceType: device type = 6. That is Lockhart's reported ID and the canonical spelling gives the same result. xsx resolved to 13,824 MiB and the test title exited 0 with zero failures.
  • Each final run had 1 passed, 0 failed, 0 ignored and no skips in the outer harness, which checked the title statuses above. The config file was unchanged in each run and the temporary test edit was restored.

Not tested

A retail title, the parent revision, and the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) ran the checks, verified the logs and wrote this report.

**@⁠nnonno91** on GitHub · 2026-11-25 14:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/2311#issuecomment-7165252835) I tried the real `xcl.toml` launch path on `d2515bc8c5c2b71149aa836513449bc4e2117cd1` with the bundled test title. The `xss` alias produced the same memory budget and test-title output as the canonical `lockhart` setting. **Tested** - Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974, Radeon(TM) Graphics driver 32.0.21042.62, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized profile. `cargo build --locked --workspace` passed. - I temporarily extended the existing debug-layer e2e fixture to write `device_type` to an isolated per-title `xcl.toml`, start the bundled title, check `cache/boot.json` and verify the config bytes. Ran `cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1` once per spelling with `XCL_NETWORK=0` and `XCL_ADAPTER=AMD Radeon`. - `xss` and `lockhart` both resolved to 8,192 MiB. Both test-title processes reached the end with exit 1 and one failure, `GetConsoleType / XSystemGetDeviceType: device type = 6`. That is Lockhart's reported ID and the canonical spelling gives the same result. `xsx` resolved to 13,824 MiB and the test title exited 0 with zero failures. - Each final run had 1 passed, 0 failed, 0 ignored and no skips in the outer harness, which checked the title statuses above. The config file was unchanged in each run and the temporary test edit was restored. **Not tested** A retail title, the parent revision, and the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) ran the checks, verified the logs and wrote this report.
Author
Owner

@⁠gefydev on GitHub · 2026-11-25 14:47 UTC · original

@⁠nnonno91 thank you for the report on #2311 at d2515bc (Ryzen 7 9800X3D, Windows 11 build 26200.9974, Radeon driver 32.0.21042.62, Rust 1.100.0, DXC 1.8.2502.11, unoptimized profile). Noted, as you gave it: with the bundled test title and a real per-title xcl.toml, xss and lockhart both resolved to 8,192 MiB and ended the same way (exit 1, one failure, GetConsoleType / XSystemGetDeviceType: device type = 6, the Series S's reported id), and xsx resolved to 13,824 MiB with exit 0 and no failures. No retail title, no parent revision and no full suite in your run.

AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.

**@⁠gefydev** on GitHub · 2026-11-25 14:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/2311#issuecomment-7165810937) @⁠nnonno91 thank you for the report on #2311 at `d2515bc` (Ryzen 7 9800X3D, Windows 11 build 26200.9974, Radeon driver 32.0.21042.62, Rust 1.100.0, DXC 1.8.2502.11, unoptimized profile). Noted, as you gave it: with the bundled test title and a real per-title `xcl.toml`, `xss` and `lockhart` both resolved to 8,192 MiB and ended the same way (exit 1, one failure, `GetConsoleType / XSystemGetDeviceType: device type = 6`, the Series S's reported id), and `xsx` resolved to 13,824 MiB with exit 0 and no failures. No retail title, no parent revision and no full suite in your run. AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 17:41 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 17:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/2311#issuecomment-7169857876) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.