d3d12-gpu: record enhanced barriers as the legacy ones they stand for #2962
Closed
aznohonza wants to merge 6 commits from
upstream-pr/2962 into main
pull from: upstream-pr/2962
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!2962
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2962"
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 aznohonza on 2026-12-01T21:55:43Z.
Re-created from the original #2906.
aznohonza/mandy-contribwas made private at 21:41 UTC on 2026-12-01, which detached the fork and permanently closed its pull requests; GitHub refuses to reopen them (422 state cannot be changed). Same branch, same headba1828afe3600716e20c81cc9ce2e4c77523b5a3. The original review thread is at #2906.replay/record.rslistedID3D12GraphicsCommandList7::Barrieras not recorded, so a stream that used enhanced barriers lost those ordering points when it was replayed. This hooks the method and records each group as the legacy barriers the runtime itself uses for the same wait:play::wait_for_allfalls back to on a device without enhanced barriers.D3D12_RESOURCE_STATESits layouts stand for (layout_state), with the subresource the range names when it names one. A same-state barrier becomes the UAV barrier it stands for, or nothing at all: a real device rejects a transition to the state it is already in (E_INVALIDARG).The wire already carries
Cmd::Barriers, and playback already issues those legacy barriers, so nothing changes inplay.rsorwire.rs. The enhanced sync/access masks order the same accesses with less; the recorded legacy barriers are the same waits, never fewer.One stated shortcut: a texture range naming more than one subresource is recorded as the whole resource, since a legacy transition carries one subresource. That is conservative; a title that keeps two subresources of one texture in different layouts at once would need the wire extended. The code says so where it happens.
Verification:
layout_statecovers every layout and both queue-specific forms;enhanced_records_its_texture_and_buffer_barriersdrivesenhanced()itself with texture and buffer groups,same_state_texture_barriers_are_a_wait_or_nothingcovers the same-state forms, andone_subresource_ranges_flatten_to_that_subresourcethe range forms.The workspace also checks with the default features (
cargo xwin check --target x86_64-pc-windows-msvc --workspace --all-targets --locked). Replay is behind thediagnosticsfeature, so that unit test runs withcargo test -p leonida-gpu --features diagnostics --lib; there is no D3D12 device on this Linux host, so the recorded-and-replayed path itself is compile/read-verified here and exercised by the crate's device tests on Windows. No game data, no new switch.Claimed in #2570 (RS-RECORD-ENHANCED-BARRIERS). AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T22:01:15Z.
The partial-range shortcut changes the recorded state of untouched mips even when all subresources start in the same layout. I reproduced it at
ba1828afeusing the existing two-mip, two-array-slice fixture in enhanced_records_its_texture_and_buffer_barriers.I passed the range through enhanced() and round-tripped its Cmd::Barriers through the current wire encoder and decoder. Applying the decoded first command to a four-entry state table yields [SRV, SRV, SRV, SRV]. The second recorded transition expects UAV at index 0. Encoding the first command as two existing legacy transitions (indices 2 and 3) round-trips intact and yields [UAV, UAV, SRV, SRV], matching the second transition.
For a known texture descriptor, expanding a partial range into per-subresource transitions fits the existing wire format. ALL can still represent a range that actually covers the whole resource. This was a CPU-side recorder/codec test with synthetic inputs; it did not submit commands to a GPU. Codex-assisted for #2570.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T22:19:23Z.
Review: COMMENTED
Same head (
ba1828afe) as #2906, which I reviewed through three rounds — the blocker there (same-state texture transitions) was fixed and verified on a real device, andmerge-treeagainst current main is clean. No re-review needed. The only remaining item is non-blocking: a buffer barrier withAccessBefore = COPY_DEST, AccessAfter = UNORDERED_ACCESSstill records a bareUav, which does not order the copy. Approved in substance.Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-01T22:28:17Z.
Fixed in
a4a26ec63. The bareUavis now recorded only whenAccessAfteris UAV andAccessBeforeis UAV or NONE; a copy before it records the global alias + UAV pair, the same as the non-UAV case. The test coversCOPY_DEST -> UAV(alias pair),NONE -> UAV(bare), andCOPY_DEST -> COPY_SOURCE(alias pair); the sixreplay::record::testspass under Wine. Thanks for catching it.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T22:41:33Z.
The current recorder still widens a partial 3D mip range to ALL.
I reran
a4a26ec6320e52f2a3536b3b7be2d6a47c8773d4on main1abef08dwith #2975, whose files are separate from the recorder. All six stock recorder tests passed under Wine, including the updated bufferCOPY_DESTto UAV alias-plus-UAV case.The earlier array-slice finding also applies to a known 3D texture. My synthetic descriptor used depth 16 and four mips. Asking the production converter to transition only mips 1 and 2 from UAV to shader resource produced
Transition { sub: ALL, before: 8, after: 192 }. The next request for untouched mip 0 still producedTransition { sub: 0, before: 8, after: 1024 }(UAV to copy destination). Applying the first recording to the four mips puts mip 0 in shader resource, which disagrees with that second before-state.This fixture checks the CPU recorder with synthetic input. AI-assisted, independently verified against the raw results.
Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-01T22:52:39Z.
Thanks for the 3D case — you are right, and it is a real limitation, not a fixture artifact: a partial mip range of a 3D texture is several subresources (one per mip), and the legacy encoding needs one transition per subresource, not
ALL. Collapsing toALLwrites the after-state into mips the range never named, which is exactly why the next barrier's before-state disagrees.That needs
texture_barrierto return a list rather than one barrier and a per-mip split for 3D ranges, so I would rather not squeeze it into this reviewed head. I will open a separate item for it (partial 3D mip ranges: one legacy transition per mip, with your synthetic depth-16/four-mip fixture as the test) and link this PR. The array-slice half you found earlier is the same flattening decision.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-01T23:21:33Z.
The partial-range flattening is fixed in
replay/partial-mip-split(b1f4a8f6d, stacked on this branch until it lands; I will retarget it tomainand open the PR then, as promised above).What changed in
texture_barrier: it returns the list of legacy barriers the enhanced texture barrier stands for. A single-subresource range keeps the indexsubresourcegives; a partial range enumerates its mips × array slices × planes into one transition each; a range that covers the whole resource stays oneALLtransition.The test is the synthetic depth-16, four-mip 3D fixture from @merzleckeier: mips 1–2 → transitions for subresources 1 and 2, untouched mip 0 → subresource 0, whole-resource range →
ALL, and the array-slice case → subresources 2 and 4. All sevenreplay::record::testspass under Wine; with the enumeration replaced by a singleALLtransition the new test fails.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:32:57Z.
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-02T13:31:03Z.
Ran natively on Windows 11, head
a4a26ec63merged into currentmain(d0bf821fa, clean merge), pinned toolchain,cargo test -p leonida-gpu --features diagnostics --lib --locked. This goes past the closure checks in #2906. I executed the recorded barriers on a device with the debug layer and compared them with the enhanced originals. The partial-range flattening already reported above is left out. OnmaintheBarriercall is only counted as not recorded, so none of these inputs record anything there.Suites on the merge
replay::record::tests(6, incl. the 4 new)watch::tests::a_block_guarded_before_we_were_told_of_its_view_can_be_written, passed when rerun alone. That file is untouched and other builds were running in parallel--all-targets(diagnostics)record.rs. The 10 warnings are all in files this PR does not touchRecorded barriers executed with the debug layer
The throwaway test creates a 64x64 RGBA8 texture with 2 mips and 2 slices, starting in
COMMON. For each sequence, one copy of the texture gets the enhanced barriers throughID3D12GraphicsCommandList7::Barrier. A second copy gets whatenhanced()returns for the same barriers, issued withResourceBarrier. Both lists are executed, then the debug layer's errors are counted. The sync and access values are ones the debug layer accepts. WARP and the NVIDIA card gave identical results, and both reportEnhancedBarriersSupported.0→0x4,0x4→0xC0,0xC0→00→0xAC3,0xAC3→0x8,0x8→00→0x8, UAV,0x8→0xC0,0xC0→00→0x4,0x4→00→0x4,0x4→00→0x4,0→0x400,0x400→00→0x8,0→0x4,0x4→00→0x4,0→0x400,0x400→0Each error is id 527,
Before state (0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]) ... does not match with the state (0x4: D3D12_RESOURCE_STATE_RENDER_TARGET) specified in preceding ResourceBarrier.The cause is
layout_statemappingUNDEFINEDto0(-1 | 0 => 0x0). That holds only when the texture really is inCOMMON.UNDEFINEDwithDISCARDis how a transient render target or UAV is normally reused from whatever layout it was left in, so the recorded transition names a before-state the resource is not in. Playback issues the recorded before-state unchanged (play.rs,Cmd::Barriers). The same mapping makesUNDEFINED → COMMONrecord nothing, which leaves the replayed texture in its old state while the title treats it asCOMMON. The before-state forUNDEFINEDhas to be the resource's actual state at that point in the list. The recorder's state tracking applies changes only when a list runs, so it does not directly give that state for a barrier earlier in the same list.enhanced()over the input space (CPU)I ran all 32 before-layouts (UNDEFINED and 0 to 30) against 31 after-layouts on the whole range. That gave 915 transitions, 9 UAV barriers and 68 empty results. Of the 40 empty results with different layouts, 4 are
UNDEFINEDto a COMMON-family layout (the case above). The other 36 are a queue-specific layout and its common form, withVIDEO_QUEUE_COMMONreaching0only through the catch-all arm.Two inputs record fewer waits than I would expect. These are questions for the author rather than observed corruption.
AccessBefore = D3D12_BARRIER_ACCESS_COMMON(0) →UNORDERED_ACCESSUav(res)AccessBefore = NO_ACCESS(0x80000000) →UNORDERED_ACCESSCOMMONwithCOPY_DEST → SHADER_RESOURCE,DIRECT_QUEUE_COMMONwithUAV → SHADER_RESOURCEorCOPY_DEST → COPY_SOURCE)The reply above describes the bare case as "
NONE -> UAV", but the code compares againstACCESS_COMMON, which is 0 and notNO_ACCESS. As I read the enhanced-barrier rules,ACCESS_COMMONbefore means any earlier access the layout allows, a copy write included, and a legacy UAV barrier does not order that. WasNO_ACCESSmeant there? For textures,texture_barrieronly compares the two mapped states, so a barrier that keeps the layout and changes only the access is dropped. Would the alias + UAV pair used for buffers be the right stand-in there? This is the other side of the same-state case I raised in #2906: not recording abefore == aftertransition fixes the list close, but when the access goes from a write to a read, some barrier is probably still needed.Every other buffer pair I tried matches the description.
UAV → UAVgives a bare UAV barrier.NO_ACCESS,COPY_DEST,SRV,UAV|SRVandUAV|COPY_DESTbefore, each againstUAV,SRVandUAV|SRVafter, give the alias + UAV pair.Not checked: the in-game run requested above; capture and playback of a real stream end to end (I called
enhanced()directly with a registered resource, as the PR's own test does); depth textures (DEPTH_STENCIL_READmaps to0x20only); a hardware data race for the two missing waits.GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T17:06:59Z.
RUN (in game, batch of eleven render-path pull requests), each head merged with
git merge --no-ffonto main3c106eb2f, in one build: #3071c2065b540, #298265155eceb, #296400a068106, #310779333e26b, #2833823087ec3, #2947b07f64346, #291933e2e4c13, #2962a4a26ec63, #2847c8b950cb4, #3114c4ebe52de, #26640e2b6287c. 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.For reference, the same machine and route rendered 13.3 to 17.2 fps today on main with single pull requests or other batches. 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; free system memory was low (median 0.6 GB); arrival in the world was driven by keys and not checked on pictures. An earlier attempt of this batch is not counted: two runs were started at the same time by mistake on one GPU (no device loss in either, but the measure is not clean).
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:00:49Z.
Triage of head
a4a26ec63(merge base60f7dcd90, 355 commits behind;git merge-treeagainst currentmain45dc41f95: no conflicts).1 file:
d3d12/crates/leonida-gpu/src/replay/record.rs(+454/-1).CI green on the head (6 checks).
Existing verification: Verified on this head by @Kal0s-design (recorded barriers executed on a device with the debug layer) and in @MoonEyes's eleven-PR in-game batch on
3c106eb2f.This check: Open point from the thread: @merzleckeier showed a partial mip range of a 3D texture is still widened to
ALL; the author agreed and put the fix in a stacked branch (replay/partial-mip-split) to follow. That is a known limitation of the replay recorder (diagnostics), not of the render path; acceptable if the follow-up is tracked.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 on this head; 3D partial-mip follow-up tracked separately).
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:41:01Z.
VERIFY-2962 — 454 líneas en
replay/record.rsy ningún test nuevo, con la suite en 643/1 (el 1 de la iGPU)El título: «record enhanced barriers as the legacy ones they stand for» — grabar las barreras enhanced como las legacy que representan.
Y eso es una traducción entre dos dialectos de la misma idea — el mismo género que
#2686(latches paradxil-spirv) y#2800(cadenas canónicas): el runtime emite una forma moderna, el grabador guarda una forma que el reproductor entiende, y la equivalencia entre las dos tiene que ser exacta.Lo que me hace pedir un test, y no es una preferencia: una equivalencia entre dos enumeraciones es una tabla —
enhanced → legacypara cada estado y cada acceso — y una tabla se verifica con una tabla. 454 líneas sin una sola prueba nueva, en el único sitio de esta noche donde la respuesta es mecánica, es lo que no cuadra.Lo que verifiqué: la suite con el cambio — 643 pasan (su base es más vieja que la de
main, de ahí el número) y la única falla es la de la iGPU. No lo verifiqué con un test porque no hay.Y la pregunta que le haría: ¿el grabador puede producir una combinación
enhancedsin equivalente legacy? Si la respuesta es sí, ese caso es una barrera perdida al reproducir y no una traducción; y si es no, hay una tabla que se puede escribir en veinte líneas.Pull request closed