d3d12: keep the Series X UI layout at lower output resolutions #3504

Code

Clone this repository

Checkout

From your project repository, check out a new branch and test the changes.

git fetch -u  "codex/series-x-menu-output:kaoru-maki-codex/series-x-menu-output"
git switch "kaoru-maki-codex/series-x-menu-output"
Open
leonida/mandy
kaoru-maki wants to merge 1 commit from kaoru-maki/mandy:codex/series-x-menu-output into main

This branch is out-of-date with the base branch

Conversation
Reviewers 0 approvals
  • No reviewers
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'codex/series-x-menu-output:kaoru-maki-codex/series-x-menu-output'
git switch 'kaoru-maki-codex/series-x-menu-output'
Contributor

Coordination: D3D12-SERIES-X-UI-OUTPUT. Claim · Issue #3274

Change

Keep a 3840×2160 UI layout for Series X output at 1920×1080 or 2560×1440. Apply the video settings and corresponding UI memory reservation together after validating the supported build and patch sites. A 3840×2160 output follows the stock profile. The implementation credits VIctory's native 1440p profile.

Synthetic verification

  • 95 Windows loader tests passed, with four optional retail-executable tests filtered out.
  • The new test builds a generated instruction buffer. It checks the UI layout and requested output dimensions, both jump destinations, and UI reservations of 82 MiB at 1080p and 94 MiB at 1440p.
  • The switch catalogue, git diff --check, and check_no_game_data.py passed. The results reported here are CPU-only.
cargo test --locked --manifest-path d3d12/Cargo.toml -p leonida-loader --lib -- --skip retail_executable --test-threads=1
python -B -I tools/d3d12_switches.py --check d3d12/docs/switches.md
python -B -I scripts/check_no_game_data.py

AI-assisted with OpenAI Codex (GPT-6). Independently reviewed with GPT-6.2 Sol.

Coordination: `D3D12-SERIES-X-UI-OUTPUT`. [Claim](https://git.leonida.now/leonida/mandy/issues/3312#issuecomment-26691) · [Issue #3274](https://git.leonida.now/leonida/mandy/issues/3274) ### Change Keep a 3840×2160 UI layout for Series X output at 1920×1080 or 2560×1440. Apply the video settings and corresponding UI memory reservation together after validating the supported build and patch sites. A 3840×2160 output follows the stock profile. The implementation credits VIctory's native 1440p profile. ### Synthetic verification - 95 Windows loader tests passed, with four optional retail-executable tests filtered out. - The new test builds a generated instruction buffer. It checks the UI layout and requested output dimensions, both jump destinations, and UI reservations of 82 MiB at 1080p and 94 MiB at 1440p. - The switch catalogue, `git diff --check`, and `check_no_game_data.py` passed. The results reported here are CPU-only. ```powershell cargo test --locked --manifest-path d3d12/Cargo.toml -p leonida-loader --lib -- --skip retail_executable --test-threads=1 python -B -I tools/d3d12_switches.py --check d3d12/docs/switches.md python -B -I scripts/check_no_game_data.py ``` AI-assisted with OpenAI Codex (GPT-6). Independently reviewed with GPT-6.2 Sol.
First-time contributor

Independent local verification of this change (I changed no code).

  • Head 08bbbee8, merge base f4b0404e. The new test is absent on the base: git grep -F native_sdr_profiles_keep_a_4k_ui_canvas_at_1080p_and_1440p f4b0404e -- d3d12/crates/leonida-loader/src/hooks/native_sdr.rs -> exit 1.
  • On the PR head, private CARGO_TARGET_DIR, -- --exact: cargo test -p leonida-loader --locked --lib hooks::native_sdr::native_sdr_profiles_keep_a_4k_ui_canvas_at_1080p_and_1440p -> 1 passed / 98 filtered. The test patches a synthetic store ([0x11; STORE_LEN]) for 1080p and 1440p, so no card and no game build are involved.
  • git diff --check f4b0404e 08bbbee8 -> clean. python -I scripts/check_no_game_data.py on hooks/native_sdr.rs, hooks.rs, windows.rs, apps/leonida/src/run.rs and docs/ultrawide.md -> clean.

GPUs tested: none (synthetic SDR store, CPU-only patch check). Driver: n/a. No game data, assets or extracted shaders were used or attached.

AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.

Independent local verification of this change (I changed no code). - Head `08bbbee8`, merge base `f4b0404e`. The new test is absent on the base: `git grep -F native_sdr_profiles_keep_a_4k_ui_canvas_at_1080p_and_1440p f4b0404e -- d3d12/crates/leonida-loader/src/hooks/native_sdr.rs` -> exit 1. - On the PR head, private `CARGO_TARGET_DIR`, `-- --exact`: `cargo test -p leonida-loader --locked --lib hooks::native_sdr::native_sdr_profiles_keep_a_4k_ui_canvas_at_1080p_and_1440p` -> 1 passed / 98 filtered. The test patches a synthetic store (`[0x11; STORE_LEN]`) for 1080p and 1440p, so no card and no game build are involved. - `git diff --check f4b0404e 08bbbee8` -> clean. `python -I scripts/check_no_game_data.py` on hooks/native_sdr.rs, hooks.rs, windows.rs, apps/leonida/src/run.rs and docs/ultrawide.md -> clean. GPUs tested: none (synthetic SDR store, CPU-only patch check). Driver: n/a. No game data, assets or extracted shaders were used or attached. AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.
Sign in to join this conversation.
No description provided.