gpu/ambient: LDS-tile gather compute pass and scope internal UAV barriers (D3D12-GPU-AMBIENT-LDS-GATHER) #2893
Open
djrolfes wants to merge 1 commit from
upstream-pr/2893 into main
pull from: upstream-pr/2893
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!2893
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2893"
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 djrolfes on 2026-12-01T15:37:12Z.
Claimed in the coordination issue as:
D3D12-GPU-AMBIENT-LDS-GATHER.What and why
Tile the
ambient::gathercompute shader through workgroup shared memory (LDS) for 64× fewer global UAV reads and scope internal ambient UAV barriers (d3d12/crates/leonida-gpu/src/ambient.rs).main,gatherruns[numthreads(8, 2, 1)](Dispatch(20, 45, 1)) and every one of the 14,400 (160 × 90) threads independently reads allCELLS = 2,304entries ofcells[](cells[CELLS + 1 + i]andcells[i].rgb) from global UAV memory.keep → mean,mean → ...,place → gather) emitted a globalpResource = NULLUAV barrier, andRole::Resolvealso emitted a pre-dispatch global UAV barrier beforeplace+gathereven though neither touchesviews.image.gatherto[numthreads(8, 8, 1)](Dispatch(20, 12, 1)), cooperatively loading 64-cell tiles intogroupshared float4 tile_pos[64]andgroupshared float3 tile_light[64](CELLS = 64 × 36 = 2,304, an exact multiple of 64), reducing global UAV reads by 64× while guarding partial-group rows (90 % 8 == 2) withbool active = at.x < PX && at.y < PY;so inactive threads still participate in cooperative loads andGroupMemoryBarrierWithGroupSync()before returning.uav_barrier(list, resource: Option<&ID3D12Resource>)to scope internalcellstransitions (keep → mean, aftermean,place → gather) toSome(&pass.cells).Role::Resolve, defers the globaluav_barrier(l, None)until immediately beforepass.raise(synchronizing bothpass.pointswritten bygatherand the title'sviews.imageUAV write beforeraisereads/modifiesviews.image).d3d12/crates/leonida-gpu/src/ambient.rs) + live D3D12 GPU red→green test (gather_dispatches_the_partial_group) + MEASURED 300 s in-world Option-A roam gate withLEONIDA_AMBIENT=0.8and local mid-roam video visual/flicker check.Tested
python3 -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/ambient.rs→ exit 0.leonida-gpuunit test binary (x86_64-pc-windows-msvc) and ran live D3D12 GPU tests under Wine + VKD3D-Proton 3.2.0 (NVIDIA GeForce RTX 3070 Ti, driver620.73.04):origin/main(only the new GPU testambient::tests::gather_dispatches_the_partial_groupapplied, dispatching(20, 12, 1)and asserting all160 × 90output points receive the final tileCELLS - 1): (3840 = 24 × 160— rows24..90were left unwritten undermain's[numthreads(8, 2, 1)].)e9e8b257b(rebased onto3e7b34a52):e9e8b257b, Series S + DLSS Quality1280×720 → 1920×1080,LEONIDA_AMBIENT=0.8, Option Amods/gate_drivermode = roam):310.35 sin-world after world entry at74.71 s).1,580frames after +60 s (1,648total world presents),9.85median FPS (10.90end median FPS),405.56 msp95 frame time,6.964 slongest present gap (<= 10.0 s).6,692 MiBpeak VRAM (<= 7,400 MiB),0device losses (0x887A0005),0crashes,0panics,0faults before stop,0kernelNVRM: Xiderrors.GATE CONTROLreached att = 79.7 s(moved = 7.62 m,mode = roam),30GATE MARKroam ticks,0GATE FAIL.48consecutive presented frames mid-roam withLEONIDA_AMBIENT=0.8(reversals_ge_5 = 0,blink_pct_mean = 0.402%); visual inspection confirmed clean indirect ambient lighting with zero tile seams (including the partial bottom row90 % 8 == 2), zero NaN/black blocks, and zero flicker during camera motion (temporary capture deleted locally; no frames attached).GPUs tested: NVIDIA GeForce RTX 3070 Ti 8 GB, driver 620.73.04, Arch Linux (Wine 11.22 + VKD3D-Proton 3.2.0).
AI-assisted: yes (authored by Gemini 4 Neon; reviewed in a separate independent review pass by Gemini 4 Neon).
Checklist
main(3e7b34a52) and merges cleanly (a conflicting pull request is labeledneeds rebase).check_no_game_data.pyclean on both source and PR description).docs/design.md, with how it was confirmed. (n/a — GPU ambient stand-in compute pass optimization)Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T15:58:40Z.
Nonuniform gather readback across both adapters at
e9e8b257+0ff8a532f. All four ambient unit tests passed on each GPU. I then ran main's 8×2 gather and this PR's 8×8 tiled gather against the same 2,304 synthetic cells with varying positions, RGB and weights (including zero weights) and a null depth SRV. Both readbacks wrote all 14,400 points (172,800 finite floats).The readback required an actual D3D12 device. Dispatching only 11 tiled groups vertically as a negative control left exactly the last two rows (3,840 floats) unwritten on each GPU. This exercises the gather kernel and partial-group coverage. The full ambient pass sequence and frame-time effect were outside the fixture.
MEASURED with synthetic inputs. AI-assisted (Codex).
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T17:30:25Z.
Review: COMMENTED
Tiling is faithful: accumulation order is unchanged (base 0→2304 step 64,
j0→63), 20×12 groups of 8×8 covers 160×96 ⊇ 160×90, andactiveplus both group barriers keep the90 % 8 == 2tail legal;CELLS = 2304 = 36×64keeps the tile loads in range. Barrier scoping is sound:keep→meanandplace→gathertouch onlycells, and the global barrier beforeraisestill orders gather'spointsand the title's image write ahead of raise's read-modify-write (ambient.rs:614), with the post-raise barrier kept — I found no new raise/resolve race. 632/0/59 on the crate, and the new test passes on the real adapter and on WARP.The test, however, pins the kernel, not the wiring:
Dispatch(20,12,1)(ambient.rs:969) instead of the call-site grid, so shrinking the production dispatch to 20×11 leaves all 632 tests green — I verified it.after(), so deleting the pre-gathercellsbarrier also leaves the suite green — verified.:915), so on a host without one it is a no-op rather than a SKIP.Sharing one grid const between the call site and the test would make the full-coverage assertion guard the wiring, and calling
after()would give the barrier a test.Two notes:
CELLS % 64 == 0is an unstated invariant (an out-of-range load ifCXever stops being 64) — a static assert would pin it.Merge: the only conflict is the appended test at the end of
mod tests, because #2904 merged at 17:14Z and already appendedthe_colour_drops_compile; keep both (and the two closing braces). If #2908 lands first, switch the new test'shost()torequire_host()so it SKIPs loudly.Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-01T17:50:37Z.
Checked on native Windows 11 with the native D3D12 driver (no VKD3D), rustc 1.98.1.
Heads-up: this now conflicts with
main(d2a564b66).fe612066aaddedthe_colour_drops_compileat the end ofambient.rs's tests, in the same spot asgather_dispatches_the_partial_group. It is only the two tests touching; keeping both resolves it. I resolved it that way locally and tested the result.Head
e9e8b257b+maind2a564b66, conflict resolved by keeping both tests:cargo test -p leonida-gpu --lib ambient::on the card: 5 passed, 0 failed.LEONIDA_D3D12_WARP=1(software adapter): 5 passed.gather_dispatches_the_partial_groupalso passes there, so the partial last row is written on WARP too.Barrier scoping. I went through which UAV each pass writes.
keep,meanandplacewrite onlycells,gatherwrites onlypoints, andraisewrites the title's view. So scoping thekeep -> mean -> ...andplace -> gatherbarriers topass.cellscovers every dependency. The global barrier beforeraisecoverspointsand the title's view. Radiance still starts with the global barrier, whichkeepneeds since it reads the title's radiance UAV. I see no missing wait.What the LDS tiling buys on a native driver. Same random 2,304 cells and null depth SRV on both sides;
gatheralone, run 201 times in one list with a UAV barrier between dispatches. Best of 5 rounds, minus a 1-dispatch list. Two runs each:gatherdispatchmain(8x2,Dispatch(20, 45, 1))8x8+ LDS,Dispatch(20, 12, 1))That is about 2.3-2.4x faster for the dispatch, about 0.11 ms a frame when the pass runs. These are wall-clock times around a synchronous submit, not GPU timestamps, so treat them as approximate.
One wording note on the description: the "RED on
origin/main" is the new test dispatching(20, 12, 1)againstmain's8x2shader.mainitself dispatches(20, 45, 1)and covers all 90 rows, so that run shows the test needs the PR's group size. It is not a defect onmain.Not checked: the game.
GPUs tested: one hardware adapter (native D3D12 driver) and WARP.
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-01T21:36:29Z.
RUN
Independent native Windows 10 + RTX 5070 (Blackwell) verification of
#2893(7c7e99b48) vsmain(1e3e316c5).Verdict
cargo test --locked -p leonida-gpu --lib ambient:: -- --nocapture: 5 passed, 0 failed (includingthe_passes_build,the_colour_drops_compile, andgather_dispatches_the_partial_group).LEONIDA_AB=20,LEONIDA_AMBIENT_ON): 0 errors / 0 device lost on both runs; all three ambient stand-in roles initialized cleanly (Resolve1280x720,Air80x46,Reflect1280x720,level=0.8). On settled standing frames (~4,400--4,550 draws), the GPU-sidecard_busycost of turningLEONIDA_AMBIENT_ONon (on minus off) dropped from +0.70 ms onmainto +0.07 ms on#2893, while whole-frame median was unchanged (no clear difference, as expected on a CPU-bound Series S frame wherecard busy ~26--27 ms < submitting thread ~36--37 ms,gpu_wait 0.0 ms).Setup
621.40), Ryzen 9 5950X (16C/32T), 64 GiB RAM, Windows 10 Pro 22H2 (build 19045).diagprofile (diagnostics,dlss,mimalloc), Series S profile,-NoFrameGen, standing in the world from the same save snapshot,-More @{ LEONIDA_AB = '20,LEONIDA_AMBIENT_ON' }.Measurements (
MEASURED)d3d12_run_fps.py)d3d12_ab_compare.py phases(median, on minus off)card_busy(onvsoff, draws ~4,400--4,550)main(1e3e316c5)gpu_wait 0.0 ms-0.800 +- 1.331 ms(5 pairs, 3 dropped;no clear difference)26.8 / 26.4 / 26.0 msvs on27.0 / 27.2 ms(4 adjacent pairs:+0.700 +- 0.208 ms)#2893(7c7e99b48)gpu_wait 0.0 ms-0.133 +- 0.384 ms(3 pairs, 5 dropped;no clear difference)27.3 / 26.6 / 26.3 msvs on27.2 / 26.8 / 26.4 ms(3 non-overlapping pairs:+0.067 +- 0.088 ms; incl. phase 9:+0.467 +- 0.232 msover 6 adjacent pairs)(Note: whole-frame medians across the two separate runs are within run-to-run variance on a CPU-bound Series S frame; the
card_busyon - offwithin-run delta isolates the GPU cost of the ambient pass itself.)AI-assisted: Antigravity
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:30:55Z.
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 MoonEyes on 2026-12-02T18:01:01Z.
Triage of head
7c7e99b48(merge base1e3e316c5, 340 commits behind;git merge-treeagainst currentmain45dc41f95: no conflicts).1 file:
d3d12/crates/leonida-gpu/src/ambient.rs(+143/-26).CI green on the head (6 checks).
Existing verification: @merzleckeier compared main's and this gather on 2,304 synthetic cells on two GPUs; @lixonik verified this head natively (RTX 5070, 5 ambient tests). The conflict @Kal0s-design reported on
d2a564b66is gone: it merges cleanly into currentmain.This check: Not re-reviewed in depth. Render-path change (an LDS-tiled compute pass): @MoonEyes's in-game gate asks for a 300 s run on the current head, and none is posted for
7c7e99b48.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: blocked (code verified; still needs the in-game run on the current head that the render-path gate asks for).
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:21:41Z.
RUN (in game, batch of seventeen render-path pull requests), each head merged with
git merge --no-ffonto main3c106eb2f, in one build: #311115b579756, #29485284c6eae, #26981f188c4f7, #294644bf554fe, #3001d924cbb65, #28320c861595a, #291558e8535cf, #2822d359a2f85, #2896c9c6b103d, #29838278ef1b9, #3115ba5121192, #2945d2c08c14f, #297574512d658, #295126da88e8e, #2800b6ebcedd4, #28937c7e99b48, #3113fa1460b6b(and #30970d7a451ab, merged since). RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world.The drops under 5 fps line up with shaders being translated while walking (about 500 translations in the last 330 s): this batch changes the shader translation, so the shader cache built by earlier runs did not apply and the pipeline precompile alone took about 45 minutes. The batch-5 run on the same machine and route had no sample under 5 fps (median 16.4). I read this as cold-cache stutter, not as a regression of a single pull request, but this run cannot tell them apart.
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. A first attempt of this batch is not counted: the run script gave up waiting for the game window after 40 minutes of precompile.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T04:51:52Z.
VERIFY-2893 — en su rama 3 fallos, sobre
mainsólo 1 (el de la iGPU): los otros dos eran de su baseUn fichero, +143/−26, seis días abierto. El método del
AGENTS.md, que hoy ya me ha salvado dos veces:Los dos fallos que no eran de la iGPU desaparecen al aplicar el cambio sobre
main:published(two, two + BLOCK)era un test de su base quemainya arregló, y el otro venía con él.Lo que la PR hace: un pase de cómputo que recoge el
LDSen mosaico para el ambiente (gpu/ambient), y acota los barriers UAV internos a su ámbito. 143 líneas de shader/compute en un fichero: el tipo de cambio que no se puede revisar leyendo el diff sin el contexto del pase, y por eso lo verificado es lo que la suite dice y lo que no.Lo que no verifiqué: el ambiente renderizado — necesita el título, y el mosaico de
LDSes exactamente el tipo de cambio que se ve en la imagen y no en un test.Y lo que esto añade al método: «3 fallos» en una rama de seis días no es «3 fallos en el PR», y la diferencia entre los dos números es el
cherry-pick— el segundo comando de esta noche que convierte un rojo alarmante en un dato limpio.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T17:26:34Z.
In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #2915, #2896, #2893 and #2889 merged into main
09273248c; this PR tested at its current head7c7e99b48. Series S 1080, DLSS FG 2x,play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed, scripted walk, 330 s, screen kept on.AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.
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.