fix(gpu): by_address leaks its cap and inflates WINDOW_CARD_BYTES #2981
Closed
Luislariosss wants to merge 1 commit from
upstream-pr/2981 into main
pull from: upstream-pr/2981
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!2981
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2981"
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 Luislariosss on 2026-12-01T22:22:48Z.
Claimed in the coordination issue as: D3D12-GPU-BY-ADDRESS-ACCOUNTING (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7327718532)
What and why
shadow::by_address()kept the card-memory cap (LEONIDA_MEMORY_CARD_MB) in a function-localUSEDcounter:uav_buffer()returnedNone, so headroom leaked for the rest of the session;WINDOW_CARD_BYTES, so by-address copies ateLEONIDA_CARD_WINDOWS_MBand the window roomcard_room_kept()keeps for real windows.This moves the counter to module scope (
BY_ADDRESS_USED), reserves it withfetch_update+checked_add(rollback only when the allocation fails) and releases it on drop.Card::account(CardAccount) picks which counterDropreleases, so a shadow cannot be in two accounting buckets at once. By-address arenas no longer touchWINDOW_CARD_BYTES;BY_ADDRESS_USEDis included inlive_span_bytes()andcard_stats().Behaviour change, both behind opt-in switches: by-address arenas no longer consume
LEONIDA_CARD_WINDOWS_MBnorcard_room_kept(), and PC-memory fallbacks drop out of the span and the card stats.Tested
cargo test -p leonida-gpu --offline --lib -- --test-threads=1: 647 passed, 0 failed, 59 ignored.cargo test -p leonida-gpu --offline --lib --features diagnostics -- --test-threads=1: 728 passed, 0 failed, 59 ignored.cargo clippy -p leonida-gpu --all-targets --offline: clean (one pre-existing warning outside this file).New tests: cap boundary (
used + len == most),u64::MAXoverflow, rollback, all fourCardAccountvariants on release and drop;land_testsnow balancesCARD_BYTES[0]; the shared counter tests take one lock so they can run in parallel.GPUs tested: n/a (unit tests only; no in-game run).
AI-assisted: yes — implementation and review by coding agents, reviewed by the submitter.
Checklist
mainand merges cleanly (rebased onc4ca5761).Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T22:27:27Z.
Verified the cap and fallback through by_address() with actual D3D12 allocations on an RTX 5070, driver 616.92, at
b020637ac. I set LEONIDA_MEMORY_CARD_MB=1 in a fresh process and requested three 1 MiB arenas backed by distinct synthetic CPU ranges.The first arena used card memory. The second used the shared fallback while the first was held. Dropping the first returned BY_ADDRESS_USED, live_span_bytes() and card_stats()[8] to zero even with the fallback still live. The third arena then used card memory. Dropping the fallback left all three counters at 1 MiB, and dropping the third returned them to zero. WINDOW_CARD_BYTES stayed zero throughout. I checked the actual CardAccount selected for each allocation and resolved the card name from the D3D12 device LUID.
This covers exact-cap allocation, fallback, and reuse on hardware. The test used small allocations to exercise the configured cap. Codex-assisted for #2570.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T22:31:16Z.
Real by-address allocations regain the device heap after dropping the previous allocation.
I called production
by_addresswithLEONIDA_MEMORY_CARD_MB=1on mainc4ca5761andb020637ac09182f12fe0e8f70e279666e27b3676integrated with #2975. The testedshadow.rsis identical with #2981 alone, and the D3D12 trees match after merging current main1abef08d. Three fresh runs per tree and GPU agreed on RTX 4070 SUPER (620.73.4) and AMD Raphael (RADV 26.3.1), with Wine 11.22 and VKD3D-Proton 3.1.0.With the first two live, main added 1,310,720 bytes to both window and total live-span accounting. The PR added zero window bytes and counted 1,048,576 bytes in the aggregate. Oversized shared fallback added no card bytes on the PR, and all deltas were zero after drops. The three stock by-address tests passed on each GPU.
The test uses actual D3D12 resource heap properties at a small configured cap, with the separate DXGI video-memory budget check satisfied. AI-assisted, independently checked against the raw results.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:34:03Z.
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:41:01Z.
Ran natively on Windows 11, head
b020637acmerged into currentmain(69cd4106c, merges cleanly and builds;maingained the ray tracing commits inshadow.rssince this was rebased), on WARP and on one NVIDIA desktop card. The earlier comments covered a few arenas on hardware. This adds the suites on the current merge and two throwaway stress tests (not pushed) that call the realby_address()thousands of times, including from 8 threads at once.Suites on the merge
cargo test -p leonida-gpu --lib(default features), WARPcargo test -p leonida-gpu --lib --features diagnostics, WARPby_addresstests, WARP and NVIDIAcargo clippy -p leonida-gpu --all-targets --features diagnosticsshadow.rsThe failures are unrelated to this PR. Two texture
aheadtests passed when rerun alone.timeline::report::tests::real_waits_are_recorded_with_who_ended_themandframe::tests::waits_end_on_ticks_and_count_framesfailed when rerun alone, and they fail the same way onmainalone on this machine right now. The merge only changesshadow.rs.Stress through the real
by_address(),LEONIDA_MEMORY_CARD_MB=8, each test alone in its own process, 2 runs each on WARP and NVIDIANoneBY_ADDRESS_USEDWhat I checked after each allocation and at the end:
BY_ADDRESS_USED,WINDOW_CARD_BYTES,CARD_BYTES[0],LIVE,live_span_bytes()andcard_stats()[8].fetch_updatereservation never let concurrent threads overshoot. At most 8 card-side 1 MiB arenas were live at once, a lower bound I counted from the test side.WINDOW_CARD_BYTESstayed at 0 for the whole run, card and fallback alike.BY_ADDRESS_USED,live_span_bytes()andcard_stats()[8]with 12 arenas held).Paths I looked at in the code
uav_bufferreturnsNone. If the stagingshared_bufferfails, that happens before the reservation. If the fallbackshared_bufferfails, no reservation is held. I could not makeuav_bufferfail on demand, so this path is covered only by the PR's unit test with a closure.Cardout of a liveShadow(cardis set once, at creation), so release happens only inDrop.CounterGuardwrites the three counters back to their starting values on drop. A leak inside those tests would therefore be wiped before the next test sees it. The stress tests above don't reset anything.Overlap with #3139
Both PRs edit
shadow.rs, and they conflict when merged together (5 hunks). Three hunks are only the two new test modules at the end of the file. The other two are real: #3139 moves the buffer and window copy construction out of the table locks and rewrites bothCard { .. }literals there, without this PR'saccountfield. Whichever lands second has to addaccount: CardAccount::Buffer(buffer copy) andaccount: CardAccount::Window(window). Otherwise it won't compile, andDropwould release from the wrong counter. I did not resolve or build the combination.Not checked: the in-game run requested above; the combination with #3139; a real
uav_bufferfailure; the debug layer.GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:00:45Z.
Triage of head
b020637ac(merge basec4ca57615, 329 commits behind;git merge-treeagainst currentmain45dc41f95: no conflicts).1 file:
d3d12/crates/leonida-gpu/src/shadow.rs(+297/-25).CI is at
action_requiredon this head (fork workflow approval).Existing verification: Verified on this head with real D3D12 allocations by @andrew-ai (RTX 5070), @merzleckeier, and natively by @Kal0s-design on
69cd4106c(WARP and an NVIDIA card).This check: Not re-reviewed in depth. It merges cleanly both with
mainand with #3163, the other openshadow.rschange (merge-treeof the two heads: no conflict), so the order between them does not matter textually; a combined test run after the first lands would be prudent since both touchshadow.rs.I did not build it: the crate is Windows-only (or the C++ runtime's Windows build), so no red/green was run here.
Verdict: ready (verified three times on this head; needs CI approval).
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:20:54Z.
VERIFY-2981 — 69 tests de
shadowpasan, y el cambio es un contador que se quedaba altoEl título: «
by_addressleaks its cap and inflatesWINDOW_CARD_BYT…» — o sea, una tabla cuyo límite de capacidad se pierde y un contador que crece de más.Y es el mismo género que cinco PRs de esta noche:
#3003,#2994,#2946,#2947,#2587— estado que se libera mal. La diferencia es que este no es unHANDLE: es una capacidad — un número que decide cuánto se reserva y que, si sólo crece, convierte una tabla acotada en una que nunca encoge.Por qué importa y por qué es difícil de ver: un contador que se queda alto no rompe nada — no hay un crash, no hay un test rojo, sólo una asignación que crece con el tiempo. En un juego de sesiones largas es el tipo de fuga que se nota a la hora y se atribuye a otra cosa. Y 297 líneas en un fichero para arreglarlo sugiere que el autor tuvo que instrumentar la tabla antes de poder verlo.
Lo que verifiqué: 69 tests de
shadowen verde con el cambio.Lo que no: la fuga de verdad — necesita una sesión con el juego cargando y descargando sombras durante horas, y ese es precisamente el caso que ningún test de 1,4 segundos ejerce. Si el autor midió el contador con el título y tiene el número antes/después, ese número vale más que los 69 tests juntos, y no está en el comentario de la PR.
Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-03T10:16:13Z.
RTX 3090 exact-head compatibility report — Series S/title RT passed (one completed run per arm).
PR head
b020637ac09182f12fe0e8f70e279666e27b3676was merged locally onto maind9b618f10150f275c30088e4769c1acbf1d8d689, producingbb356fc5c8145354d32b0e00fffff4e6f3a4212f(tree1e4d92f002a63d795c624d98ad2333e6b9a234f0). Nothing was pushed or merged upstream. Existing claim: D3D12-GPU-BY-ADDRESS-ACCOUNTING.Machine/recipe: Windows 11 Home build 26200, Ryzen 9 5900X, 32 GiB RAM, RTX 3090 24 GiB, NVIDIA 610.88. Rust 1.98.1; diag build with
diagnostics,dlss,mimalloc. Stock game gate and prepared local freeroam/idle driver;-SeriesS -RayTracing -NoFrameGen -NoPrecompile, 1920×1080 output,LEONIDA_MEMORY_CARD_MB=128. Separate processes, identical 10-file pipeline seeds (1,882,183,380 bytes), shared warm shader cache; the later arm inherits driver-cache warmth. Existing glyph files were used. Native control and destination readback were verified. A supported timed native teleport at 300 seconds after launch recovered placement after loading.FPS uses present intervals from world+60 seconds until the target stop (2,236 / 2,152 intervals). Both processes suspended and saved their caches cleanly. Hard-fault telemetry was unavailable.
Placement scope: Loading overwrote the candidate's first placement; the timed second teleport restored it. The final consecutive near-target suffix was 19 / 20 marks, at most 0.3 / 0.2 m from the destination, covering 188.134 / 195.749 seconds from the first such mark to stop. The 300-second world durations include time before final placement; this is not a claim of 300 seconds continuously at the destination.
Accounting mechanism: Real title structure-builder/by-address activity was observed. Final samples were 17,420 / 20,260 pages (1,088 / 1,266 MiB) in 19 / 21 arenas. The source uses 64 MiB arenas and a 16 MiB directory: the configured 128 MiB card cap permits the directory plus one arena, while total arena demand exceeded it. This exercises by-address allocation with cap pressure and fallback demand. Per-resource heap/account selection and hardware drop/reuse transitions were not instrumented; no claim of hardware cap reuse is made. The unit tests cover the cap boundary, overflow, rollback and release accounting.
Verification: Serial
shadow::diagnostics tests: 69 passed, 2 ignored, including all three by-address accounting tests. Both locked/offline builds, clean-room scan and diff check passed. Independent read-only source review found no production blocker; a separate agent recomputed the reported numbers from private evidence. The pre-existing dirty submodule was preserved.Earlier attempts retained: Main-only Series X/title RT exited
0xC0000409after 61.346 world seconds, with 138 MiB last/minimum sampled commit headroom and no reported device loss; the cause was not established. A Series S main placement-recovery attempt was deliberately stopped after 99.680 world seconds (clean exit 0) when loading moved it off route. Neither is counted as a pass. This report establishes the completed Series S compatibility passes, not Series X stability or a speed/memory improvement: one pair, different draw workloads and loading/camera behavior prevent attribution.Executable SHA-256:
e044c701e9876d2087e3f14dadf7f9427adaca4120c627d7ea6a53fb5926290aa88e9671315b2376855dd456f3c756a8da6dbddc02e1275f36cbfba224cfc163CI on this head still has three workflows awaiting maintainer approval. No game content, logs, screenshots or machine-local paths are attached.
AI-assisted testing/source integration: GPT-6.1 Sol (high reasoning). Independent read-only source and numerical review: GPT-6.2 Sol.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:22:47Z.
Combined check with #3163 on current
maind9b618f10. Exact headsb020637acandf063f5b33merge without conflicts in either order and yield the same tree (e7ebf93ca986).git diff --checkpassed.The combined
leonida-gpudiagnostics build passed theshadow::suite on Wine 11.22 with vkd3d-proton 3.1.0 and AMD Radeon Graphics (RADV 26.3.1). 71 passed, 0 failed, 2 ignored. This includes the PC-memory copy-back regression from #3163. I reran the drop-accounting test with a local test-only change that makes missing D3D12 initialization or a failed buffer allocation fail the test. All four accounting cases ran and passed.This used synthetic unit tests with no game data. AI-assisted combined verification.
Imported from ubiquitarianism/leonida. Originally posted by Luislariosss on 2026-12-03T17:58:44Z.
Paused to free the one open pull request an account without write access may have, for the image work on this host. The branch stays as it is; the change was verified on hardware by two reviewers above.
Pull request closed