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

Open
ofc0urse wants to merge 1 commit from upstream-pr/1761 into main
ofc0urse commented 2026-11-24 20:20:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ofc0urse on 2026-11-24T20:20:18Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5479677538 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761). Originally posted by [ofc0urse](https://github.com/ofc0urse) on 2026-11-24T20:20:18Z. --- 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.
futurepro62 commented 2026-11-24 21:30:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:21:45Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7144828873 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7144828873). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T21:21:45Z. --- 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.
DavidM1911 commented 2026-11-25 00:08:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:14:21Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7147172801 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7147172801). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T23:14:21Z. --- 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!
JJAutoCompare commented 2026-11-25 04:10:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:43:01Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7152176078 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7152176078). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:43:01Z. --- # 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.
github-actions[bot] commented 2026-11-28 08:01:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:04Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7236307369 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7236307369). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:01:04Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
ofc0urse commented 2026-12-01 02:58:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ofc0urse on 2026-12-01T02:58:52Z.


Still fixes: the window shows the title's splash screen from ShellVisuals in MicrosoftGame.config until its first frame, and its logo as the window icon; on main the window has no icon and appears only with the first PresentX, 4 to 7 s into a retail title's boot. It conflicts with main now; the rebase onto main comes with the next push.

AI use: Sauna drafted this from the PR description; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7299192907 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7299192907). Originally posted by [ofc0urse](https://github.com/ofc0urse) on 2026-12-01T02:58:52Z. --- Still fixes: the window shows the title's splash screen from `ShellVisuals` in `MicrosoftGame.config` until its first frame, and its logo as the window icon; on `main` the window has no icon and appears only with the first `PresentX`, 4 to 7 s into a retail title's boot. It conflicts with `main` now; the rebase onto `main` comes with the next push. AI use: Sauna drafted this from the PR description; I checked it before posting.
Foniass commented 2026-12-01 06:41:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:41:42Z.


Triage (#1607) – head ad29b0e

No open or merged PR shows the title's splash screen or uses its logo as the window icon: main reads only DefaultDisplayName from ShellVisuals.
No problems found in the diff. The branch conflicts with main and needs a rebase.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303165278 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1761#issuecomment-7303165278). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:41:42Z. --- **Triage (#1607)** – head ad29b0e No open or merged PR shows the title's splash screen or uses its logo as the window icon: main reads only `DefaultDisplayName` from `ShellVisuals`. No problems found in the diff. The branch conflicts with main and needs a rebase. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1761:upstream-pr/1761'
git switch 'upstream-pr/1761'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1761'
git switch 'upstream-pr/1761'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1761'
git switch 'upstream-pr/1761'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1761'
git switch 'main'
git merge --squash 'upstream-pr/1761'
git switch 'main'
git merge --ff-only 'upstream-pr/1761'
git switch 'main'
git merge 'upstream-pr/1761'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1751
No description provided.