d3d12/fsr: fix typeless depth SRVs, PrepareV2 barriers, and launcher texture-room cap (D3D12-FSR-FRAMEGEN-DEPTH-AND-ROOM) #3206
Open
zmasi wants to merge 4 commits from
upstream-pr/3206 into main
pull from: upstream-pr/3206
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!3206
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3206"
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 zmasi on 2026-12-02T19:17:19Z.
Claimed in the coordination issue as:
D3D12-FSR-FRAMEGEN-DEPTH-AND-ROOM(https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7354679753)Addresses #3173 (does not close it until verified in-game on Series S and Series X: fixes typeless depth resource descriptors and SRV formats in
fsr.rs, adds explicitPrepareV2NON_PIXEL_SHADER_RESOURCEbarriers +DEPTH_READstate mapping, and removes the launcher's double-countedLEONIDA_TEXTURE_ROOM_PERCENT=80cap).What and why
Fixes three defects when
LEONIDA_FSR_FRAMEGEN=1(-FsrFrameGenorFSR 3 FRAME GEN 2Xin the F1 menu) is active (#3173):LEONIDA_TEXTURE_ROOM_PERCENT = '80'double-counted FSR 3 VRAM and starved bindless & tiled world textures (d3d12/scripts/play-nvidia.ps1):fsr::swap_chainandfsr::create_contextallocate FidelityFX's~1.5-2.0 GBup front on the first frame, so those bytes are already included in DXGIQueryVideoMemoryInfo(LOCAL).CurrentUsage(usedinresource::room). Because FidelityFX allocates directly onID3D12DeviceoutsideHOST_TEXTURES[1], its memory also stacks on top oftargets_room_kept()(3,072 MB),LEONIDA_WINDOWS_BAR_MB(3,072 MBon< 48 GBRAM PCs),shadow::card_for, and precompiled pipelines.LEONIDA_TEXTURE_ROOM_PERCENTfrom90to80subtracted an additional10%ofbudgetafter FSR's allocations were already counted inused, trippingresource::room()tofalseright above the2 GiBfloor (resource::texture_floor_bytes) instead of the5-7.3 GBneeded in the open world. Unmade bindless textures (draw.rsheap_textures) and unmappedon_demandreserved mip tiles (texture.rs) read(0, 0, 0, 0)on D3D12 — turning opaque surfaces black (rgb = 0) and discarding alpha-tested foliage/leaves (alpha = 0 < cutoff).80%override leavesroom_percent()at its90%default (matching-FrameGen), while explicit-More @{ LEONIDA_TEXTURE_ROOM_PERCENT = '...' }overrides continue to pass through.fsr::Resource::texturemissed Leonida's typeless depth buffers (d3d12/crates/leonida-gpu/src/fsr.rs):resource.rscreates every shader-readable host depth target as typeless (D32_FLOAT_S8X24_UINT->R32G8X24_TYPELESS,D32_FLOAT->R32_TYPELESS,D24_UNORM_S8_UINT->R24G8_TYPELESS,D16_UNORM->R16_TYPELESS) withD3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL.Resource::texturepreviously checkeddesc.Formatonly against typedD16_UNORM | D32_FLOAT | D24_UNORM_S8_UINT | D32_FLOAT_S8X24_UINT, leavingusage = 0(missingUSAGE_DEPTHTARGETandUSAGE_STENCILTARGET) and leavingR32_TYPELESS/R16_TYPELESSas typelesssurface_formatvalues (37/34). WithoutUSAGE_DEPTHTARGET | USAGE_STENCILTARGETand typed surface formats, FidelityFX's DX12 backend selects invalid SRV formats (DXGI_FORMAT_R32_FLOATon 2-planeR32G8X24_TYPELESS, or raw typeless formats onR32_TYPELESS/R16_TYPELESS) inPrepareV2.Resource::texturenow checksD3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCILalongside typed depth formats, setsUSAGE_DEPTHTARGET(plusUSAGE_STENCILTARGETonD24_UNORM_S8_UINT | R24G8_TYPELESS | D32_FLOAT_S8X24_UINT | R32G8X24_TYPELESS), and maps depth-flaggedR32_TYPELESS -> R32_FLOAT (28)andR16_TYPELESS -> R16_UNORM (23)to matchffxApiGetResourceDX12.PrepareV2NON_PIXEL_SHADER_RESOURCEbarriers andDEPTH_READstate mapping (d3d12/crates/leonida-gpu/src/fsr.rs):PresentinDEPTH_READ(0x20) orDEPTH_READ | NON_PIXEL_SHADER_RESOURCE | PIXEL_SHADER_RESOURCE(0xE0).ffx_statepreviously mappedDEPTH_READtoSTATE_DEPTH_ATTACHMENT(which FidelityFX maps back to exclusiveD3D12_RESOURCE_STATE_DEPTH_WRITE,0x10), producing illegal0xD0(DEPTH_WRITE | *_SHADER_RESOURCE) barriers or leavingdepthinDEPTH_WRITEon the GPU whileHostTexture::statestill recordedDEPTH_READ.before_presentnow transitionsinputs.depth.0andinputs.motion.0onlisttoD3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE(0x40) beforeffxDispatch(DISPATCH_PREPARE_V2), passesSTATE_COMPUTE_READtoPrepareV2, and restoresinputs.depth.1andinputs.motion.1immediately afterffxDispatch(whether or not the dispatch succeeded).ffx_statealso mapsDEPTH_READtoSTATE_COMPUTE_READ | STATE_PIXEL_READrather thanSTATE_DEPTH_ATTACHMENT.Tested
ea43e2cc1ontoorigin/main45dc41f95):python -I scripts/red_green.py HEAD --base 45dc41f95 --no-fetch --mutate(fsr::+tests/test_win_launchers.py):verdict: red then green, all 4 new/updated tests (3Rustfsr::tests+1PythonWinLaunchersTests) gored -> green, every code hunk caught under--mutate.x86_64-pc-windows-msvc):cargo test -p leonida-gpu [--features diagnostics] --lib --target x86_64-pc-windows-msvc fsr:::5 passed, 0 failedin both default anddiagnosticsbuilds (verifiesCreateShaderResourceViewacross all 4 typeless depth formats,ffx_stateon0x20/0xE0, and real D3D12 command-list + queue execution ofbefore_presentPrepareV2barriers on both succeeding and failing dispatches).cargo clippy -p leonida-gpu [--features diagnostics] --all-targets --no-deps --target x86_64-pc-windows-msvc:0warnings infsr.rs.python -I tests/test_win_launchers.py(7/7 OK),python -I tests/test_play_nvidia_menu_choice.py(16/16 OK),python -I tools/d3d12_switches.py --check d3d12/docs/switches.md(rc=0),python -I tests/test_d3d12_switches.py(20/20 OK),python -I scripts/check_no_game_data.py(rc=0), andpython -I tests/test_text_write_line_endings.py(3/3 OK).git merge-tree --write-treeclean (rc=0) againstorigin/main,#3111, and#3104.GPUs tested: NVIDIA GeForce RTX 3090 24 GB, driver 610.88, Windows 11 Pro
10.0.26200(D3D12 SRV and command-list barrier unit tests; no retail title run).AI-assisted: yes — authored with Gemini 4 Carbon (High) and independently audited in a read-only review pass by Gemini 4 Neon (XHigh) (
opus-systems-critic).Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed (n/a: no translator rule changed).Imported from ubiquitarianism/leonida. Originally posted by icdmkg2 on 2026-12-02T20:22:17Z.
Third-party Windows verification of #3206 (
D3D12-FSR-FRAMEGEN-DEPTH-AND-ROOM) on head137c231a5137c231a5d0e494169ac67fdf2ed83cc1e6ff6bdmerged cleanly (git merge --no-ff) ontoorigin/mainb41763227.621.24(32.0.16.2124), AMD Ryzen 7 H 260 w/ Radeon 780M, 32 GB RAM, Windows 1110.0.26300.9974,rustc 1.98.1.Results (MEASURED)
python -I scripts/check_no_game_data.py(all 3 touched files)0python -I tools/d3d12_switches.py --check d3d12/docs/switches.md0LEONIDA_ADAPTER=5060python -I scripts/red_green.py 3206 --mutate0(verdict: red then green) —4tests went red → green (fsr::tests::{before_present_transitions_depth_and_motion_for_prepare_and_restores_states, states_and_formats, typeless_depth_resources_carry_depth_stencil_usage_and_valid_srv_formats}+test_win_launchers.py::test_fsr_framegen_leaves_default_texture_room_and_honors_override);708pass on both,0failures. (--mutate:fsr.rs:709andfsr.rs:888caught; the other 5 Rust sub-hunks were reportednot caughtdue tored_green.pyrunning the Python target test even when Rust fails to compile, not missing coverage.)LEONIDA_ADAPTER=5060+LEONIDA_D3D12_DEBUG=1cargo test -p leonida-gpu --features diagnostics --locked --lib -- fsr::5 passed, 0 failed(D3D12 Debug Layer clean across typeless depth SRVs andPrepareV2pre/postNON_PIXEL_SHADER_RESOURCEbarriers)LEONIDA_D3D12_WARP=1+LEONIDA_D3D12_DEBUG=1(samefsr::command,--features diagnostics)5 passed, 0 failedReview notes (READ IN CODE)
fsr.rsResource::texture: checksALLOW_DEPTH_STENCILalongside typed depth formats, setsUSAGE_DEPTHTARGET(+USAGE_STENCILTARGETforD24_UNORM_S8_UINT/R24G8_TYPELESS/D32_FLOAT_S8X24_UINT/R32G8X24_TYPELESS), and maps depth-flaggedR32_TYPELESS/R16_TYPELESSwhile preserving non-depthR32_TYPELESSUAVs (37).fsr.rsbefore_present: deduplicates barrier whenmotion == depthand restores both states unconditionally whetherPrepareV2dispatch succeeds or fails.d3d12/docs/switches.md:561still marksLEONIDA_TEXTURE_ROOM_PERCENTwithL = yesandleonida-gpu/resource.rs +1becaused3d12/scripts/play-nvidia.ps1was the only launcher assignment;tools/d3d12_switches.py --checkonly checks switch name presence so CI stays green, though regeneratingswitches.mdwould keep theLcolumn exact.AI-assisted: Gemini 4 Neon (High) via Antigravity (test execution, diff review, and write-up).
Imported from ubiquitarianism/leonida. Originally posted by ThatAppleFanboy on 2026-12-02T21:02:05Z.
Review: APPROVED
The fix works perfectly on rtx3080
Imported from ubiquitarianism/leonida. Originally posted by ThatAppleFanboy on 2026-12-02T21:30:07Z.
Review: APPROVED
Works
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T21:57:57Z.
VERIFY-3206 — Windows nativo: dos de los tres tests nuevos pasan; el tercero necesita un escritorio y no lo hay aquí
(this PR)b41763227= currentmainmain—merge-treeclean,git merge --no-ffcleanRan
The failure is environmental, and I traced it to the line:
HRESULT(0x887A0022)isDXGI_ERROR_NOT_CURRENTLY_AVAILABLE, and line 1388 isA composition swap chain needs a composition-capable session, and this machine has none (
CopyFromScreen: The handle is invalid; it is the same reasonborderless_from_the_start_stays_shown_when_framed_againfails onmain). So this test cannot pass here, and it will not tell you whether the barrier code is right — but note that GitHub's Windows runners are headless too, so if CI runs this test it will fail there for the same reason. That is worth checking before merge, and aCreateSwapChainForCompositionthat is allowed to fail with a skip would make the test say what it means on machines that cannot build one.What the two passing tests do say: the typeless depth resources now carry
D3D12_RESOURCE_USAGE_DEPTH_STENCILand validate as the right SRV formats, and the depth/back-buffer flags come out right — the part of the change that does not need a present.What I could not test
before_presenttransitions depth and motion and restores the states) and it has no verification from this machine.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T22:00:28Z.
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 zmasi on 2026-12-02T22:26:58Z.
Thanks @fiestorra for catching that
CreateSwapChainForCompositionDXGI_ERROR_NOT_CURRENTLY_AVAILABLE(0x887A0022) failure on headless Session-0 setups!Since
before_presentonly forwardsswap_chain.as_raw()intoConfigureFrameGeneration.swap_chainand makes zero COM calls on it,d024194b38(merged with currentorigin/main,#[cfg(test)]only — zero production code change) replacesCreateSwapChainForCompositioninbefore_present_transitions_depth_and_motion_for_prepare_and_restores_stateswith a minimal COM-shapedStubSwapChainwhile keeping the full real D3D12 command-list, GPU queue, and fence barrier validation intact (5/5fsr::tests passing without needing a desktop compositor).Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T22:41:25Z.
RUN (in game, RTX 5070 12 GB, 315 s in-world gate) -- PASS on head
137c231a5(merged cleanly viagit merge --no-ffontomain8877be372).Build & Unit Checks (Windows 10 x64, RTX 5070 12 GB, driver 595.79)
python -I scripts/check_no_game_data.py-> PASSpython -I tests/test_win_launchers.py-> OKcargo test -p leonida-gpu --lib --locked fsr::-> 5 passed, 0 failedcargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked-> PASSLive In-Game Gate (
-SeriesS -NoFrameGen, standard DLSS path -- non-FSR-FG regression gate)137c231a5on8877be372)315 s(451.5 s)65(5,233)0/027.1 fps(36.9 ms)21.5/27.9main(8877be372)315 s(441.9 s)63(4,338)0/027.9 fps(35.8 ms)26.1/29.6LEONIDA_FIDELITYFX_DIR) were not present on this host, so liveLEONIDA_FSR_FRAMEGEN=1/PrepareV2dispatch itself was not exercised in-game; thefsr::unit tests (5/5),tests/test_win_launchers.py, and this 315 s DLSS world run confirm clean compilation, launcher behavior, and zero regressions on the non-FSR-FG path.AI-assisted: yes (Antigravity -- Gemini 4 Neon).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T00:02:12Z.
RUN (in game, batch of nine pull requests), each head merged with
git merge --no-ffonto main81efe4566, in one build: #313674bd1bcd4, #315653c3100ce, #3206d024194b3, #3248efd21d867, #3256e7aad1d4c, #32623643c2879, #2851b83b0b375, #312589bf1d328, #2642164506d01. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. The precompile before the world took 619 s, against 157 s for the previous batch; the shader-side changes in this batch (#3156, #3262) probably left the pipeline cache cold (not checked). Switches that are off by default (for example #2851'sLEONIDA_TITLE_MEMORY_SCALE, #3136's timeline attribution) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only.AI-assisted (Claude Code).
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.