Skip to content

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

Merged
raylitebull merged 1 commit into
xcl-dev:mainfrom
gefydev:config-device-type-spellings
Nov 25, 2026
Merged

raylitebull merged 1 commit into
xcl-dev:mainfrom
gefydev:config-device-type-spellings

Conversation

@gefydev

@gefydev gefydev commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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.
@oni-swr

oni-swr commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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

Review

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.

@gefydev

gefydev commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

@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.

@nnonno91

Copy link
Copy Markdown

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.

@gefydev

gefydev commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

@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.

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@raylitebull
raylitebull merged commit 764d9ed into xcl-dev:main Nov 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants