Add native Series X ultrawide output and HUD controls #2958
Closed
leonida/mandy
invismann wants to merge 30 commits from
github-pr/2958 into main
pull from: github-pr/2958
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2958
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/2958"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request closed
Please reopen this pull request to perform a merge.
Claimed in the coordination issue as: Native Series X ultrawide.
Depends on: #2889
What and why
The branch incorporates the merged #2900 Series S loader changes. A simulated merge with open #2889 at
6b4f77222still conflicts ind3d12/crates/leonida-loader/src/hooks.rs.Tested
leonidawith the pinned Rust toolchain on Windows. The integrated branch passed 17 targeted loader cases and 16 compositor, marker, and aspect tests, including both GPU readbacks. Optional retail executable fixtures were absent for the local run.d3dcompiler_47.dll10.0.10150.0 under Wine 11.22 and VKD3D-Proton 3.1.0 at0c9c18977. Their test build also included #2884, and they verified the compositor source matched this PR. Wine readbacks0c9c18977included an extra localrun.rscommit. The run did not cover 32:9, centered or disabled correction, F1 switching, or loading-movie letterboxing. Retail runGPUs tested: local synthetic readbacks on RTX 4090, driver 621.01, Windows. Contributor retail run on RTX 5070 Ti, driver 621.40, Windows 11 Pro. Wine reviewer readbacks on RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1).
Stability across retail scenes with the 7200/8000 MiB render-target heap and 1600 MiB scene-pool budgets remains unverified. The Foxhound reference port records outdoor shadow, loading, and map checks on Windows with an RTX 4090 at 5120×1440 DLAA.
AI-assisted: yes. Implementation and verification used OpenAI Codex (GPT-6). The independent read-only review used GPT-6.2 Sol.
Checklist
mainand merges cleanly.docs/design.md.Found a fractional-DPI edge case in the web launcher's monitor fallback at launcher/index.html:486–489 on 858fdd676. When the server has no monitor hint, a 5120×1440 screen represented as 2926×823 CSS pixels at devicePixelRatio 1.75 reconstructs to 5121×1440. The exact 32:9 comparison then returns false. Match monitor hides the HUD controls and switchArgs omits a selected HUD position, while the native classifier given 5120×1440 selects the superwide profile.
I executed the PR's ultrawideSelected in Node with synthetic window.screen values and a Series X auto configuration. The same panel matched at 100%, 125%, 150%, and 200%, and missed at 175%. An explicit 32:9 selection bypasses the fallback. A regression case with fractional scaling and a tolerance for CSS-pixel rounding would cover this path.
Separately I compiled the PR's output_for and maximum_scene functions in a standalone Rust harness. The three explicit output geometries matched at native size. At 75% the 5120×1440 preset gave a 3840×1080 scene. These are geometry checks with synthetic inputs. No physical ultrawide panel or game run was used. Codex-assisted for #2570.
The new HUD readback fails on both adapters with the bundled Microsoft compiler. I tested
858fdd676merged into1a52f5b63with Wine 11.22 / VKD3D-Proton 3.1.0, using RTX 4070 SUPER (620.73.4) and Radeon RADV (26.3.1).The stock
compose::tests::centers_edge_hud_without_moving_the_middle_on_gpufails atComposer::for_device(..., true)with0x80004005before the texture readback. The existing premultiplied composition test passes and reads the same pixels as main on each adapter. A test-only diagnostic and an isolatedD3DCompilecall locate the failure with Microsoftd3dcompiler_47.dll10.0.10150.0 at the wideps_5_1entry. It reportsX8000, invalid operand type for operand 2 of opcode 138. The wide VS and CS and the existing narrow PS compile with that DLL.Changing only the wide pixel shader target to
ps_5_0made the completecompose::tests::selection pass 2/2 on each GPU. The unchanged centered-HUD test reached its synthetic 16×8 readback and checked both moved edges and the unchanged middle. The Wine built-in compiler still fails compositor initialization with that change. Its standalone compilation emits a blob and warns that it ignoresRootSignature.There is also a separate CI failure after #2934.
python -I tests/test_d3d12_switches.pypasses 19/20 on the merge because eight names are missing fromd3d12/docs/switches.md.python -I tools/d3d12_switches.py --out d3d12/docs/switches.mdfollowed by the same test passes 20/20 with only the generated page changed.Synthetic inputs only. No game run. MEASURED with OpenAI Codex and independent raw-log verification.
Checked the centered-HUD shader on native Windows at 858fdd676, on an RTX 5070 (driver 616.92). The original ps_5_1 target passed the centered-HUD readback and the existing premultiplied-plane control with each of three Microsoft d3dcompiler_47.dll versions:
Built the compose::tests:: selection with --features diagnostics. I used the same test executable for all three runs, logging the loaded module path and the adapter selected by the compositor. Both hardware branches ran. The narrow control returned the same three RGBA pixels in all three runs.
This adds three known-working compiler versions for the proposed shader on native Windows. The 10.0.10150.0 DLL from the reported Wine failure was outside this comparison, so OS and compiler version are still confounded across the two reports. Synthetic textures only. Codex-assisted for #2570.
Confirmed the fractional-DPI fix at e7912f698. At 5120×1440 and 175%, the earlier head emitted only
-SeriesX -AspectRatio auto. The revised launcher also emits the selected-HudPosition center.I exercised both ultrawideSelected and switchArgs from each revision with synthetic CSS screen dimensions. Across six panel geometries (5120×1440, 3840×1080, 3440×1440, 3840×2160, 2560×1440, 1920×1200) and 13 scaling factors from 100% through 400% in 25-point steps, mismatches fell from 14/78 to 0/78. All four new Node regression tests passed. This closes my earlier monitor-fallback finding. Codex-assisted.
The current head passes the centered HUD readback with the Microsoft compiler that previously failed.
I reran
compose::testswith Wine 11.22 / VKD3D-Proton 3.1.0 and Microsoftd3dcompiler_47.dllfile version10.0.10150.0. The earlier stock binary at858fdd676on1a52f5b63still failsComposer::for_devicewith0x80004005for the wide test, and passes the narrow control, on both the RTX 4070 SUPER (620.73.4) and Radeon Raphael (RADV 26.3.1). On0c9c18977at main1abef08d0, both tests pass on each adapter. The wide test reaches command completion and verifies five pixels of the synthetic 16×8 image, including both moved HUD edges and the unchanged middle. The narrow control gives the same readback per adapter as the earlier binary. The build also has the test-only #2884 layered in. The compositor source blob matches #2958 integrated by itself.With the same DLL in a standalone
D3DCompilecall, the current wide shader still reportsX8000onps_5_1. Theps_5_0target now used by the wide path compiles to 6,304 bytes. The narrowps_5_1and wide vertex/compute controls also compile. DLL SHA-2568c88c162010a8d6b80f2c0433d4ce973ce626afcbc8da5be68bfa2ba68341eba.The generated switch-registry check exits 0 on this tree. Node display tests pass 5/5 and the Python switch suite passes 20/20. This resolves the Microsoft compiler and registry failures in my earlier report for this head. Synthetic textures only. AI-assisted with OpenAI Codex and independent raw-log verification.
Retail run on a real 21:9 monitor, at the PR head
0c9c18977(based onmainc4ca57615), diag build viabuild-nvidia.ps1. The build has one local commit outside this PR, inrun.rs, unrelated to the display path.Rig: Ryzen 5 5600X (6 cores), 32 GB DDR4-3600, RTX 5070 Ti 16 GB, driver 621.40, Windows 11 Pro 26300. Monitor: 3440×1440 native.
Launch:
scripts\play-d3d12.ps1 -AspectRatio 21:9 -HudPosition edges -Log, Series X profile, the title's own upscaler, no DLSS.What was seen in game (about 4 min in the world, story save):
ultrawide: positioning the map cursor relative to its display area layout_width=5160, and images from anultrawide-…cache.Numbers (window-title fps sampled every second, 232 samples, first run of this build):
warmprecompile for about 9 minutes before the window came up.Not checked: 32:9,
-HudPosition centerandoff, F1 switching, loading-movie letterboxing.AI-assisted (Claude Code). Results are from my own run; no game data attached.
Confirmed the expanded 21:9 fallback at 0c9c18977 with the launcher's ultrawideSelected and switchArgs functions. With no monitor information from the backend, I simulated rounded CSS screen dimensions at 13 Windows scaling factors (100–400% in 25-point steps). At e7912f698 neither 2560x1080 nor 3840x1600 emitted the selected centered HUD argument at any scale (26 omissions). At the current head all 26 emitted -HudPosition center. Four 16:9/16:10 controls omitted it at all 52 combinations. The earlier six-panel matrix still passed all 78 combinations.
This checks auto-detection and generated launcher arguments with synthetic screen geometry. I did not render on these panels. Codex-assisted.
Thanks for this, and for the ultrawide runs people have posted. Where it stands for a merge, so it doesn't wait without anyone saying why:
main(GitHub shows CONFLICTING), so no CI has run on the current head;d3d12/crates/leonida-loader/src/hooks.rs.I'm verifying #2900 now (red/green and an in-game run). Once #2900 is in, a merge of
maininto this branch, KelboLive's points and a green CI would make it ready for a verdict.AI-assisted: Claude Code (oreofr-agent).
Integration check for the queued #2900 dependency: main 4ccf3fed8 plus #2958 head 0c9c18977 conflicts in scripts/play-linux.sh and d3d12/docs/switches.md. Locally merging #2900 head 61a47216c into that main first adds d3d12/crates/leonida-loader/src/hooks.rs as a third conflict. In play-linux.sh, keeping the new shared usage function and its stderr call is sufficient if the usage line also lists all switches handled by the PR. The conflicting literal on the PR side omits --ultrawide, even though the parser accepts it. I tested the combined usage line with --series-x, --aspect-ratio, --ultrawide and --hud-position under Git Bash: -h and --help printed them to stdout and exited 0, while no arguments printed them to stderr and exited 2. This was a local launcher resolution only; the other conflicts still need integration. Codex-assisted.
Documentation follow-up on the same merged tree: I regenerated d3d12/docs/switches.md twice, once with each side of the two hooks.rs conflict hunks. Both generated pages contained 724 names and were byte-identical. The generator passed --check in both cases, and all 20 tests in test_d3d12_switches.py passed on the second tree. The docs conflict can be resolved by running python -I tools/d3d12_switches.py --out d3d12/docs/switches.md after resolving the sources. This experiment does not select a runtime resolution for hooks.rs.
Thanks for the review. The switch registry passes, marker labels now scale around their anchors with regression coverage, and Match monitor recognizes the additional 21:9 panel sizes and reports the preset it selects. I also removed the unreachable HUD path and updated the test disclosure with the 3440×1440 retail report and its limits. Could you re-review
a79d72baf?This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
Ran natively on Windows 11, head
0dfd6bf2fmerged into currentmain(d0bf821fa). The merge is clean, with no conflicts. The branch has since moved to41533135d, which only mergesmain69cd4106c;compose.rsandmain.rsare unchanged by it, so the findings below should carry over, but I have not rerun on it. #2889 is still open and was not included. I used the repo toolchain with--locked.Suites on the merge
cargo test -p leonida-gpu --features diagnostics --libcargo test -p leonida-gpu --libcargo test -p leonida-hle --libcargo test -p leonida-loadercargo test -p leonida-shader --libcargo test -p leonidatests/test_leonida_launcher.py,test_launcher_serve.py,test_d3d12_switches.pytests/test_play_linux.pyrun_semantic_tests.py -p 'test_wide_shadow*.py'node --test tests/test_launcher_display.cjscargo clippy(gpu, hle, loader, shader, leonida;--all-targets, with and withoutdiagnostics)The clippy warning on a PR line is
collapsible_ifatapps/leonida/src/main.rs:207, theShaders | Warm | Translateblock.The fractional-DPI fallback, the
ps_5_0target, the switch registry,fit_spriteand the 3440x1440 retail run are already covered above, so I left them out.New: the compositor's GPU readbacks under the debug layer (native Windows, current head)
I ran
compose::tests::centers_edge_hud_without_moving_the_middle_on_gpuandcomposes_scaled_premultiplied_plane_on_gpuwithLEONIDA_D3D12_DEBUG=1, once on WARP and once on the hardware adapter. Both readbacks pass on both. The host drains the info queue into the log during submission, so I captured thoseD3D12:lines with a tracing subscriber:The four messages on the wide path, with addresses trimmed. My capture cut the three
Set...RootDescriptorTablelines before their id and severity, so I can confirm the severity only for the barrier line. The same wording on the #2801 run was id 538, severity ERROR.There is also a warning:
CreateCommittedResource: Ignoring InitialState D3D12_RESOURCE_STATE_UNORDERED_ACCESS. Buffers are effectively created in state D3D12_RESOURCE_STATE_COMMON(id 1328).This is how I read them from
compose.rs; I have not tried a fix.SetComputeandSetGraphicserrors. The wide root signature isDescriptorTable(SRV(t0, numDescriptors=4), UAV(u0)), with no visibility and no range flags. The validation is thereforeDATA_STATIC_WHILE_SET_AT_EXECUTEfor all four SRVs, at both the compute and the graphics bind. Only the overlay is moved toPIXEL_SHADER_RESOURCE | NON_PIXEL_SHADER_RESOURCE. The scene and the markers stay atPIXEL_SHADER_RESOURCE, both in the test and at the real call site inhost.rs(pre.push(transition(texture, state, PIXEL_SHADER_RESOURCE))). So a debug run with the edge HUD should log these at least on the first composed present. I saw one frame only, so I can't say how often they repeat.splitsbuffer is created withInitialStateUNORDERED_ACCESS, which a buffer ignores. It is also bound in the same table both ast3(SRV) and asu0(UAV) for the compute dispatch. So the firstUNORDERED_ACCESS -> PIXEL_SHADER_RESOURCEbarrier names a before-state the debug layer does not track.flags=DATA_VOLATILEon the SRV range. Another is to move the scene and markers to both read states. A third is a separate table for the compute pass. In any case, createsplitsinCOMMONand let the first barrier start from the right state.On these two drivers none of this changes the pixels: the readbacks pass, with 5 checked pixels on the wide path. The narrow path gives no errors on the same run.
New: values at the edges, using the PR's own functions with synthetic input
NativeAspect::output_forandclassify(Match monitor, no mode list):An explicit
32:9on a 1080p 16:9 monitor gives 5120x1440. On a 3440x1440 monitor whose mode list includes 3840x1080, it gives 3840x1080. On the sizes I compared, the Pythonmonitor_is_ultrawideagrees withclassify. The two expressions are also the same formula.Invalid values are handled differently by the three Rust-side switches:
LEONIDA_ASPECT_RATIO=AUTO,Auto,21x9,64:27LEONIDA_ASPECT_RATIO wants auto, 16:9, 21:9, or 32:9LEONIDA_ASPECT_RATIO=(set, empty)LEONIDA_ASPECT_RATIO=" 21:9 "LEONIDA_NATIVE_ULTRAWIDE=/OFF/0LEONIDA_NATIVE_ULTRAWIDE=3440X1440LEONIDA_HUD_POSITION=offLEONIDA_HUD_POSITION=OFF,Off,Center,centre,none,0,""," off"edges, with no warningTwo of these are worth a small change.
LEONIDA_ASPECT_RATIOset but empty is fatal.Profile::requestedusesvar_os, so the empty string reachesNativeAspect::parseand fails.LEONIDA_NATIVE_ULTRAWIDE=means off. The same call runs forleonida shaders,warmandtranslate(main.rs:207), so a stray empty variable stops those commands too. The scripts never produce it.play-nvidia.ps1lower-cases the value and turns an empty one intoautoon Series X, andplay-linux.shaccepts only the exact values and exportsautowhen nothing is set. So this only affects a hand-set environment, such asexport LEONIDA_ASPECT_RATIO=on Linux.LEONIDA_HUD_POSITIONsilently gives the strongest correction.hud_position_foris exact and case-sensitive, and everything it does not recognise falls toedges.play-nvidia.ps1lower-cases it (play-d3d12.ps1passes it on to that script as typed),play-linux.shrejects anything but the exact values, and the Python launcher drops unknown values to"", so again only a hand-set or hand-edited value is affected. A trim plus a case-insensitive match would make it behave likeLEONIDA_NATIVE_ULTRAWIDE.heap_budget(Budgets::resolve,check_available_commit,ultrawide_preset):LEONIDA_RT_HEAP_MB=2199is rejected and2200accepted;24576is accepted and24577rejected.LEONIDA_SCENE_POOL_MB=710is rejected,711and4095are accepted, and4096is rejected.-1,8000MB,1e4and a 20-digit value are rejected with a clear message.0turns the automatic value off.docs/ultrawide.mdalready says to lower the render scale or grow the page file, but it gives no figure. The numbers above might help there, since the retail report above was at 99% RAM on a 32 GB machine.Launcher plumbing
play-linux.sh, run under Git Bash with a missing game path so that nothing starts:--aspect-ratio AUTO, a missing value and--hud-position Centerexit 2 with the usage hint.--aspect-ratio 21:9without--series-x,--ultrawide 3440x1440alone, andLEONIDA_NATIVE_ULTRAWIDE=5120x1440orLEONIDA_ASPECT_RATIO=21:9in the environment on a Series S start exit 2 with "Native ultrawide requires --series-x".tools/leonida_launcher.py,normalisedropsAUTO," 21:9 ",32:10,CENTER,Offand the like to"", which means "follow the F1 settings".switch_argsleaves out-HudPositionwith an explicit16:9, and on Series S emits only-SeriesS. The Windows and Linuxplay_commandlists keep a game path with spaces and parentheses as a single argument..ps1files I only read the code.play-nvidia.ps1lower-cases-HudPositionand the aspect beforeaspect-output, andplay-d3d12.ps1forwards both to it unchanged. The$againrestart line escapes single quotes.& $leonida aspect-outputis safe with spaces in the path.Not checked: a run of the title (no game launch), 32:9 on a real panel, F1 switching, loading-movie letterboxing, and the loader patches against the retail executable (the fixtures self-skip without it). I also did not check behaviour with #2889 merged.
GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
Following up on the in-game test request. I tested PR head
c6da7b78504f1c64ba93af20225d6c8455b3aa98with upstreammainat83046a713f555db1a8f6d47d2c5746a48409568cmerged in, and ran that same upstream commit alone for comparison.GPU and OS were NVIDIA GeForce RTX 4090, driver 621.01, and Windows 11 Pro build 26300.10075. All runs used copies of the same save and the Series X profile at 1440p with DLSS and frame generation off and startup precompilation skipped. The 32:9 run used edge HUD placement.
83046a713· 16:9 · 2560×1440c6da7b785· 16:9 · 2560×1440c6da7b785· 32:9 · 5120×1440The 16:9 figures use repeats after excluding each build’s first run. The PR’s 41.64 FPS is the median of the two remaining run medians, 39.69 and 43.59 FPS. Upstream’s 41.58 FPS is from its one remaining repeat.
Upstream has advanced since the tested merge. The results above are for the exact commits listed.
AI-assisted test automation and report (Codex, GPT-6).
Checked #2958 at its newest head on Linux: every Python, Node, translator and docs check it touches passes. The Rust side is not built here (Windows-only). The in-game run is for an older head, but this PR's own Rust code has not changed since that head.
5e083b4488(pushed 2 December 18:34)main45dc41f95c(0 commits behind), so the head is the merge; theneeds rebaselabel is staleRan (Linux, Python 3.13.18, Node 22, on an export of the head with its own
git init)State of the review threads (read, not re-measured)
SetCompute/GraphicsRootDescriptorTablestate errors and theUNORDERED_ACCESSbarrier on thesplitsbuffer, measured at0dfd6bf2f) are answered byab0c99be("Fix D3D12 state validation in the ultrawide HUD compositor"). Nobody has posted a rerun of the twocompose::testsGPU readbacks withLEONIDA_D3D12_DEBUG=1since; that is the cheapest way to close it.clippy::collapsible_ifatd3d12/apps/leonida/src/main.rs:207(a line this PR adds): not checked here.c6da7b785, which already contains the compositor fixab0c99beandf51bb691. Since then the only commit of the PR's own isaf93cb81(launcher settings and F1 choices); the rest are merges ofmain.git diff c6da7b785 5e083b4488 -- d3d12/crates d3d12/appsshows onlymain'sfg.rs,host.rsandbitcode/opt.rschanges. So the run covers the PR's Rust code as it is now. MoonEyes' rule says a changed head needs a new run; a maintainer can decide whether a launcher-only delta counts.Scope. This is ultrawide output, the HUD compositor, the wide-shadow translator rule, three launchers and docs in one PR. It is claimed as one item and the parts depend on each other, but it is hard to review and keeps conflicting with
main(22 commits on the branch, several of them merges). Do not add anything more to it.Verdict: ready, pending a maintainer's call on whether the
c6da7b785in-game run still counts, and a posted debug-layer rerun of the twocompose::testsreadbacks. No new defects found in the parts I could run.AI-assisted: Claude Opus 5.5 (Claude Code), verification only.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
VERIFY-2958 — y aquí hay algo que no había visto en ninguna de las 200:
test_leonida_launcher.pycon 32 tests en vez de 144La PR más grande de la cola después de
#221: 46 ficheros, +4 789/−266, «native Series X ultrawide output and HUD controls» — launcher,play.ps1,play-d3d12.ps1, un test semántico nuevo y sus fixturas.Y los tests que toca, corridos en su propio árbol:
Los
32son el dato que importa:test_leonida_launcher.pytiene 144 tests enmainy 32 en esta rama — su base es de antes de la reescritura del launcher, así que su copia del fichero es la vieja. Y eso no es un fallo del PR: es que la rama es de hace seis días y#3182reescribió el launcher entero por debajo.Lo que significa para quien quiera fusionarla: el diff de 46 ficheros incluye el
leonida_launcher.pyviejo, así que rebasarla no es aplicar un parche: es volver a escribir la parte del launcher sobre el nuevo. Es la única de las antiguas que necesita una persona y no unrebase.Lo que verifiqué: los cinco tests que corren pasan (el
.asmy el.cjsno son de pytest y no los ejecuté), y la discrepancia del 32/144 está medida, no supuesta.Lo que no: el ultrawide nativo ni los controles del HUD — necesitan el título y una pantalla con esa relación de aspecto, y esta sesión no tiene escritorio.
Y una nota sobre el tamaño: 4 789 líneas y 46 ficheros es el 40 % de todo lo que hay en la cola vieja, y es la que más se va a resistir a un rebase. Si alguien quiere una recomendación: esta, primero, con su autor delante.
Reviewed
85e2432eagainstmaind9b618f1. The updated branch contains that base. The desktop launcher suite ran 153 tests (151 passed, 2 skipped), the web display suite passed all six, and the catalog check passed.The existing card-mask test now needs a runnable
aspect-outputstub.test_card_mask_leaves_the_menus_nvidia_values_out_and_in_the_filecreates an emptyleonida.exe. The four Series X dry runs now actually invoke that file withaspect-output auto(d3d12/scripts/play-nvidia.ps1:719–728). Under Linux PowerShell 7.7.0 the test onmaincompletes in under a second, while the same test from this head hits its 180 s timeout after emitting the result rows. Replacing just that empty file with an executable synthetic stub that returns the default output recorded all four calls and passed. With that fixture adjustment, the full file had 11 passes and six Windows-only skips.I also paired this head with #3303
5942d059. The only merge conflict is the test block at the end ofhost/menu.rs. Preserving both sides of that block gave a Windows MSVC build with passing ultrawide-HUD and restart-command tests, plus 11 passing aspect tests under Wine. The execution test that requires Windows PowerShell skipped there. #3303 has already passed that test on hosted Windows. AI-assisted with OpenAI Codex.RUN (in game, ultrawide on a 2560x1080 monitor, 8 GB card), head
85e2432e9merged withgit merge --no-ffonto maind9b618f10. RTX 4060 8 GB, driver 610.88, Windows 11, main monitor 2560x1080 (21:9). Series X profile (this pull request's native ultrawide needs it),-AspectRatio 21:9 -HudPosition edges -Fullscreen -Resolution 1080 -FrameGen 2 -PrecompileUsed,LEONIDA_CAPTUREon, 330 s after reaching the world.What the captures show: an in-engine cutscene fills the whole 21:9 width without stretching, and the loading artwork stays centred with bars at its sides, as the description says it should.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) on an 8 GB card at 21:9, on the head above. If it changes its head, this run no longer covers it.
Limits: one run. The captured frames are a cutscene and a loading screen: the HUD at the edges, the wide pause map and its markers were not seen on pictures, so
-HudPositionis not verified here. The presented size is the 21:9 preset (1720x720 at half size, so 3440x1440), scaled to the 2560x1080 monitor; whether a 2560x1080 preset would be picked byautowas not tried. 32:9,center,off, F1 switching and the loading-movie letterboxing were not exercised. The 7200/8000 MiB render-target budgets did not run the 8 GB card out of memory in 330 s; longer sessions were not tried.AI-assisted (Claude Code).
I checked the compositor tests on
85e2432eagainstmaind9b618f1in a Windows MSVC diagnostics build under Wine 11.22, selecting the RTX 4070 SUPER and AMD Raphael separately. The six CPU-side compositor tests passed. On both adapters the stock premultiplied-plane test failed during composer creation with0x80004005on bothmainand the PR. The new edge-HUD readback stopped at the same stage. A separate probe confirmed that the D3D12 debug interface was unavailable in this setup (0x887A002D), so the native Windows debug-layer recheck is still open.The combination with #3308
0940bc38merges cleanly. The committed switch catalog matches a fresh generation byte for byte, and all 22 catalog tests passed on the combined tree.AI-assisted with OpenAI Codex.
Closing: it conflicts with main in 11 places. main has since changed the same launcher signatures (
channel=vspicture=), the same settings dictionary andswitch_argscall intools/leonida_launcher.py, and rewrote the render-target clear inlist.rswhere this addsworld_marker::clear. It also touches the launcher, which OreoFR maintains.Closed by Moon's agent during PR triage, on Moon's written authorization, after a separate reviewer agent checked it against main
0036195a7. A new pull request rebased on current main is welcome.