Add native Series X ultrawide output and HUD controls #2958
Open
invismann wants to merge 30 commits from
upstream-pr/2958 into main
pull from: upstream-pr/2958
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
ProjectLeonida/mandy!2958
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-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?
Imported from ubiquitarianism/leonida. Originally posted by invismann on 2026-12-01T21:31:49Z.
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.Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T21:45:50Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T21:51:14Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T21:55:24Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T22:02:44Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T22:12:04Z.
Review: CHANGES_REQUESTED
Solid feature, and the fail-closed retail checks (hash first, then expected bytes per patch) are the right shape. The HUD split is correctly UI-only, and I confirmed the pause/Game gating is genuinely covered — replacing
!(ui == Game || (wide && ui == Pause))withui != Gamefailsa_queued_present_uses_the_captured_gameplay_state. But I would not merge yet; four things:python -I tools/d3d12_switches.py --check d3d12/docs/switches.mdexits 1 on eight names:LEONIDA_ASPECT_RATIO,LEONIDA_HUD_POSITION,LEONIDA_NATIVE_ULTRAWIDE,LEONIDA_ULTRAWIDE_HUD,LEONIDA_UI_LETTERBOX,LEONIDA_RT_HEAP_MB,LEONIDA_SCENE_POOL_MB, and the test-onlyLEONIDA_DISPLAY_PROFILE_TEST_IMAGE. Several escape hatches (RT_HEAP_MB,SCENE_POOL_MB,UI_LETTERBOX) are documented nowhere else. Add them, and exempt or document the test hook.world_marker::fit_spriteis a no-op. It computesscale() * canvas_scale(world_marker.rs:235-237) withscale() = 16H/(9W)(:88-97) andcanvas_scale = W*2160/(H*3840), which is exactly 1.0 for every supported preset, andfit_at(..., 1.0)returns the original viewport — so labels are never narrowed into the centered 16:9 band. Usescale()(already3840/layout_width) and add afit_spriteunit test; the existing pure test callsfit_at(..., 0.5)directly, so it cannot see this.Match monitoris default-on, not opt-in.play-nvidia.ps1:642-645forcesLEONIDA_ASPECT_RATIO=autofor every Series X start, which is a real behaviour change for existing users. It also doesn't classify2560×1080(common 21:9) or3840×1600as wide (aspect.rs:77requireswidth >= 3440), soMatch monitorreturnsNonethere, and on5120×2160it silently downshifts to3440×1440. Either extendclassifyand warn/test those sizes, or make it explicitly opt-in like the other wide switches.Also:
HudLayout::ToEdges/edge_hudlooks unreachable becauseedges = wide_overlay && hud_at_edges()(host.rs:13850), sowide=false, edges=truecannot occur — split-mode coverage is less than it looks. AndLEONIDA_DISPLAY_PROFILE_TEST_IMAGEis a test-only hook that should not be user-facing.No generated artifacts or game data:
check_no_game_datapasses over all 43 files, the docs tests pass, and every crate suite is green (661 + 420 + 86 + 247 + 51, plus the launcher tests and the wide-shadow semantic fixture). Merge is clean against current main; #2900 conflicts inloader/src/hooks.rs(both touchresolution_levers), #2851 only sharesswitches.md, and #2915 is clean.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T22:50:38Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by matthieupl87-spec on 2026-12-01T22:57:14Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T00:16:52Z.
Confirmed the expanded 21:9 fallback at
0c9c18977with 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). Ate7912f698neither 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.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T00:57:31Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-02T01:13:02Z.
Integration check for the queued #2900 dependency: main
4ccf3fed8plus #2958 head0c9c18977conflicts in scripts/play-linux.sh and d3d12/docs/switches.md. Locally merging #2900 head61a47216cinto 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.
Imported from ubiquitarianism/leonida. Originally posted by invismann on 2026-12-02T04:31:28Z.
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?Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:32:44Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T14:18:47Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by invismann on 2026-12-02T16:08:52Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:12:28Z.
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
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T05:59:15Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T07:48:31Z.
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.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T08:35:37Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T08:48:15Z.
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.