xcl run: the window shows the title's splash screen until its first frame, and its logo as icon #1761

Open
github-bot wants to merge 1 commit from github-bot/gh-1761 into main AGit
Owner

@⁠ofc0urse on GitHub · 2026-11-24 20:20 UTC · original
ofc0urse:feat/title-shell-visuals → main · +201 −0 · 4 files · 1 commits · open

On a console the shell shows a title's splash screen from the moment it starts until its first frame, and its logo in the system UI. Both are named in MicrosoftGame.config under ShellVisuals. XCL read only DefaultDisplayName, so its window had no icon and appeared only with the first PresentX, 4 to 7 s into a retail title's boot. Until then nothing on screen showed that the title was running.

What is in it

  • launcher::shell_visuals reads SplashScreenImage, BackgroundColor and the small logo (Square44x44Logo, else Square150x150Logo, else StoreLogo). It takes only files inside the package: a name with a drive, a root or .. is ignored, and so is a file that is missing or a colour that is not #RRGGBB.
  • present.rs: with a splash image, open_early (called from host_main after the boot config is set) opens the window when the title starts. Until the first frame the window paints the image on its background colour, decoded with WIC and drawn with GDI, scaled to fit with its aspect kept. Without a splash image the window opens with the first frame, as before.
  • The logo is the window class icon (title bar, taskbar, Alt+Tab). Windows reads the PNG as icon data itself (CreateIconFromResourceEx).
  • Cargo.toml: the Win32_Graphics_Imaging feature of windows, for WIC.
  • Tests: shell_visuals_are_files_of_the_package (fallback order of the logos, names that leave the package, bad colours, no config), the_splash_screen_fits_the_window_with_its_aspect_kept, background_colour_goes_to_gdi_as_bgr.

Tested

  • RTX 4060 Ti 8 GB (driver 621.24), i5-14400F, 32 GB, Windows 11 Pro 26300, rustc 1.100.0, debug.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 866 passed, 0 failed, 42 ignored.
  • Skipped GPU tests: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Retail title, release, on this commit before its rebase onto main (no conflicts in these files): the window opens 0.08 s after start with the title's splash image on its background colour, the first PresentX comes at 6.7 s and replaces it. The title's logo is in the title bar and the taskbar.

Regression run

The retail title, 60 s, release. Run order main, PR, main: the first main run (1535 frames) warmed the pipeline cache, the blocks are the PR run and the second main run. The PR run got 102 % of main's frames.

main:

xcl-smoke v1
commit: 6c89285b8b529bde59cd17a26b911c39912fb677
gpu: NVIDIA GeForce RTX 4060 Ti
title: 83d1f0b1
seconds: 60
exit: 0x0
frames shown: 1595 (PresentX 1596)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15981 MB

PR:

xcl-smoke v1
commit: ad29b0e0b883418652f979b97902e63ce75fa314
gpu: NVIDIA GeForce RTX 4060 Ti
title: 83d1f0b1
seconds: 60
exit: 0x0
frames shown: 1630 (PresentX 1630)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15819 MB

Not tested

  • AMD and Intel GPUs, Linux through Wine.
  • A package whose SplashScreenImage is not a PNG, or whose logo PNG Windows refuses as icon data (then the window has no icon, as before).
  • A title that renders its first frame before XCL's window would open: the splash is then never painted.

AI use

  • Claude Code (Claude Opus 5.5) wrote the code, the tests, the commit message and this description, ran the suite and the smoke runs, and checked the window on the retail title through screenshots.
**@⁠ofc0urse** on GitHub · 2026-11-24 20:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1761) `ofc0urse:feat/title-shell-visuals` → `main` · +201 −0 · 4 files · 1 commits · open On a console the shell shows a title's splash screen from the moment it starts until its first frame, and its logo in the system UI. Both are named in `MicrosoftGame.config` under `ShellVisuals`. XCL read only `DefaultDisplayName`, so its window had no icon and appeared only with the first `PresentX`, 4 to 7 s into a retail title's boot. Until then nothing on screen showed that the title was running. **What is in it** - `launcher::shell_visuals` reads `SplashScreenImage`, `BackgroundColor` and the small logo (`Square44x44Logo`, else `Square150x150Logo`, else `StoreLogo`). It takes only files inside the package: a name with a drive, a root or `..` is ignored, and so is a file that is missing or a colour that is not `#RRGGBB`. - `present.rs`: with a splash image, `open_early` (called from `host_main` after the boot config is set) opens the window when the title starts. Until the first frame the window paints the image on its background colour, decoded with WIC and drawn with GDI, scaled to fit with its aspect kept. Without a splash image the window opens with the first frame, as before. - The logo is the window class icon (title bar, taskbar, Alt+Tab). Windows reads the PNG as icon data itself (`CreateIconFromResourceEx`). - `Cargo.toml`: the `Win32_Graphics_Imaging` feature of `windows`, for WIC. - Tests: `shell_visuals_are_files_of_the_package` (fallback order of the logos, names that leave the package, bad colours, no config), `the_splash_screen_fits_the_window_with_its_aspect_kept`, `background_colour_goes_to_gdi_as_bgr`. **Tested** - RTX 4060 Ti 8 GB (driver 621.24), i5-14400F, 32 GB, Windows 11 Pro 26300, `rustc 1.100.0`, debug. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: 866 passed, 0 failed, 42 ignored. - Skipped GPU tests: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Retail title, release, on this commit before its rebase onto main (no conflicts in these files): the window opens 0.08 s after start with the title's splash image on its background colour, the first `PresentX` comes at 6.7 s and replaces it. The title's logo is in the title bar and the taskbar. **Regression run** The retail title, 60 s, release. Run order main, PR, main: the first main run (1535 frames) warmed the pipeline cache, the blocks are the PR run and the second main run. The PR run got 102 % of main's frames. main: ``` xcl-smoke v1 commit: 6c89285b8b529bde59cd17a26b911c39912fb677 gpu: NVIDIA GeForce RTX 4060 Ti title: 83d1f0b1 seconds: 60 exit: 0x0 frames shown: 1595 (PresentX 1596) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15981 MB ``` PR: ``` xcl-smoke v1 commit: ad29b0e0b883418652f979b97902e63ce75fa314 gpu: NVIDIA GeForce RTX 4060 Ti title: 83d1f0b1 seconds: 60 exit: 0x0 frames shown: 1630 (PresentX 1630) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15819 MB ``` **Not tested** - AMD and Intel GPUs, Linux through Wine. - A package whose `SplashScreenImage` is not a PNG, or whose logo PNG Windows refuses as icon data (then the window has no icon, as before). - A title that renders its first frame before XCL's window would open: the splash is then never painted. **AI use** - Claude Code (Claude Opus 5.5) wrote the code, the tests, the commit message and this description, ran the suite and the smoke runs, and checked the window on the retail title through screenshots.
MicrosoftGame.config's ShellVisuals name what the console's shell shows for
a title before its first frame: SplashScreenImage on BackgroundColor, and the
small logo. XCL read only DefaultDisplayName, so its window had no icon and
opened only with the first PresentX (4-7 s into a retail title's boot).

With a splash image the window now opens when the title starts and paints it
(WIC decode, GDI, scaled to fit with its aspect kept) until the first frame;
without one it opens with the first frame as before. Square44x44Logo (else
Square150x150Logo, StoreLogo) is the window class icon. Only files of the
package are used: names with a drive, a root or .. are ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:09 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 21:21 UTC · original · edited 2026-11-24 22:01 UTC

Full-suite run, since this PR has no test report yet. Tested exact head ad29b0e (on its base 6c89285).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 865 passed, 0 failed, 42 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: the_splash_screen_fits_the_window_with_its_aspect_kept, background_colour_goes_to_gdi_as_bgr, shell_visuals_are_files_of_the_package.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 866 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Two tests were skipped with --skip on NVIDIA. Both fail on main 7f7e768 too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns their skips into failures. heap_window_out_of_memory_falls_back_to_the_switch_form skips when XCL_HEAP_WINDOWS is unset (#1651), and shaders::tests::pso_measurement_compiles_an_exact_synthetic_record skips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not set XCL_REQUIRE_GPU, so there both just print SKIPPED.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 21:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7144828873) · edited 2026-11-24 22:01 UTC Full-suite run, since this PR has no test report yet. Tested exact head `ad29b0e` (on its base `6c89285`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record`: **865 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `the_splash_screen_fits_the_window_with_its_aspect_kept`, `background_colour_goes_to_gdi_as_bgr`, `shell_visuals_are_files_of_the_package`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **866 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Two tests were skipped with `--skip` on NVIDIA. Both fail on main `7f7e768` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns their skips into failures. `heap_window_out_of_memory_falls_back_to_the_switch_form` skips when `XCL_HEAP_WINDOWS` is unset (#1651), and `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` skips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not set `XCL_REQUIRE_GPU`, so there both just print SKIPPED. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 23:14 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 23:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7147172801) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:43 UTC · original

XCL PR #1761 compatibility verification

Tested head ad29b0e0b883418652f979b97902e63ce75fa314 on STOR-WINLAB. The PR reads the title's splash, logo, and background from MicrosoftGame.config. The presenter uses WIC and GDI to display the splash until the first frame and loads the logo as a Win32 window icon.

Tested

  • Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175. Wave range 8–32, DoublePrecisionFloatShaderOps=0, and d3d12SDKLayers.dll absent. DXC/DXIL 1.9.2609.5 and rustc 1.100.0 (0ef1bc386, 2026-11-09). Unoptimized dev/test builds with debug info disabled and XCL_ADAPTER=A770.
  • cargo build --workspace and cargo test --workspace --no-run both succeeded. Every test command ran through Invoke-ArcTest.ps1.
  • Three targeted runs of cargo test -p xcl --lib <filter> -- --nocapture reported 3 passed, 0 failed, 0 ignored, 0 skips. They covered package asset selection and logo fallback, aspect-ratio-preserving splash fit, and RGB-to-GDI color conversion. All three also passed in the workspace run.
  • One cargo test --workspace --no-fail-fast -- --test-threads=4 run exited 101. The 20 harness summaries in pr1761-suite.log total 848 passed, 18 failed, 42 ignored, with 3 SKIPPED lines. Those early returns are included in the harness pass count and provide no coverage. Two reported no wave64 and one reported no heap windows.

Failures

  • Library (17). Thirteen GPU cases failed at CreateComputePipelineState (0x80070057), including FP64 cases. Four failed output checks for FMA contraction, implicit-LOD sampling, FP16 high-half preservation, and wave64 pixel reductions.
  • End to end (1). The test title's dynamic depth bias check (#94) via RSSetDepthBiasX produced a blue pixel where it expected green.

Not tested

Interactive splash painting and first-frame handoff, WIC decoding of title art, and icon display in the Windows shell. No retail-title smoke run, main baseline, or other GPU was tested. This run does not establish whether the failures also occur on main.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1761-suite.log and published this report.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7152176078) # XCL PR #1761 compatibility verification Tested head `ad29b0e0b883418652f979b97902e63ce75fa314` on STOR-WINLAB. The PR reads the title's splash, logo, and background from `MicrosoftGame.config`. The presenter uses WIC and GDI to display the splash until the first frame and loads the logo as a Win32 window icon. **Tested** - Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175. Wave range 8–32, `DoublePrecisionFloatShaderOps=0`, and `d3d12SDKLayers.dll` absent. DXC/DXIL 1.9.2609.5 and rustc 1.100.0 (`0ef1bc386`, 2026-11-09). Unoptimized dev/test builds with debug info disabled and `XCL_ADAPTER=A770`. - `cargo build --workspace` and `cargo test --workspace --no-run` both succeeded. Every test command ran through `Invoke-ArcTest.ps1`. - Three targeted runs of `cargo test -p xcl --lib <filter> -- --nocapture` reported **3 passed, 0 failed, 0 ignored, 0 skips**. They covered package asset selection and logo fallback, aspect-ratio-preserving splash fit, and RGB-to-GDI color conversion. All three also passed in the workspace run. - One `cargo test --workspace --no-fail-fast -- --test-threads=4` run exited 101. The 20 harness summaries in `pr1761-suite.log` total **848 passed, 18 failed, 42 ignored**, with **3 `SKIPPED` lines**. Those early returns are included in the harness pass count and provide no coverage. Two reported no wave64 and one reported no heap windows. **Failures** - Library (17). Thirteen GPU cases failed at `CreateComputePipelineState` (0x80070057), including FP64 cases. Four failed output checks for FMA contraction, implicit-LOD sampling, FP16 high-half preservation, and wave64 pixel reductions. - End to end (1). The test title's dynamic depth bias check (#94) via `RSSetDepthBiasX` produced a blue pixel where it expected green. **Not tested** Interactive splash painting and first-frame handoff, WIC decoding of title art, and icon display in the Windows shell. No retail-title smoke run, `main` baseline, or other GPU was tested. This run does not establish whether the failures also occur on `main`. **AI use** T3 Code / Codex (`gpt-6.2-sol`, `reasoningEffort: high`) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, `gemini-4-neon`) verified counts against `pr1761-suite.log` and published this report.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/hle/d3d12x/present.rs
  • crates/xcl/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1761/head:github-bot/gh-1761'
git switch 'github-bot/gh-1761'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1761'
git switch 'github-bot/gh-1761'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1761'
git switch 'github-bot/gh-1761'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1761'
git switch 'main'
git merge --squash 'github-bot/gh-1761'
git switch 'main'
git merge --ff-only 'github-bot/gh-1761'
git switch 'main'
git merge 'github-bot/gh-1761'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.