Repository navigation
Conversation
|
Native Windows check, AI-assisted (Claude Code). Windows 11, i9-13900K, 64 GB, RTX 4070 Ti 12 GB (NVIDIA 630.20), MSVC 2022 (VS 17 generator, Release), Vulkan. Head
1 passed, 0 failed. |
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Audited and verified. Implements lazy memory binding (DeferredImageBinding) for title-placed GPU-only attachment textures in slot 133, deferring physical allocation to first replay or view use while allowing RTV/DSV creation immediately from metadata. Thread-safe single-initialization with retry semantics. Tests in
untime/test/d3d12_title_placed_test.cpp verify execution and clearance. Approved.
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Clean-Room Audit — PR #1100 (RT-PLACED-IMAGE-DEFER)
Clean deferred memory binding design for placed render target / depth-stencil / UAV textures (DeferredImageBinding) until first use, preventing premature allocation failure while keeping LEONIDA_PLACED_IMAGE_DEFER=0 override and full readback pixel verification in d3d12_existing_heap_test.cpp. 0 game data.
Verdict: APPROVED
|
AMD run (the gap the description lists): RX 9070 XT (RDNA4, GFX1201), AMD proprietary Windows driver 26.11.2 (LLPC, Vulkan 1.4.359), Windows 11, MSVC 2022 RelWithDebInfo. Head |
|
Recommendation: [MERGE] Reasoning: Slot-133 placed render-target/DS/storage images now bind memory on first GPU use instead of always allocating private memory, which cuts memory pressure on limited-budget devices. A moderate runtime behaviour change (+194, new Impact level: 6/10 |
|
GPU verification (AI-assisted, overnight worker w4; independent run, not the author's). Head tested: 84d0675 on this machine's two GPUs. AMD Radeon iGPU (gfx1035, RDNA2, driver 24.10.24, Vulkan 1.3.280) — env:
NVIDIA RTX 4070 SUPER — env:
Verdict: deferred placed-image binding shows no regressions on either GPU; the new concurrency/retry coverage passes under validation. LGTM from this hardware. |
…984 LAYOUT_UNDEFINED, Wave-21b CMake & leonida-ce 525c44e1 ReadFile fast-path - ProjectLeonida/mandy#1100 (RT-PLACED-IMAGE-DEFER): unify Resource deferred memory binding onto leonida::DeferredImageBinding (deduping duplicate flags/mutex), add LEONIDA_PLACED_IMAGE_DEFER=0 rollback, defer placed depth/UAV/RT attachments + cpu_copy bind + race-free memory_flags(), preserve MemoryPriority, add check_placed_target_backing test & docs/d3d12_vulkan.md note. - ProjectLeonida/mandy#1099 (RT-STREAM-TRANSFER-BARRIER): deduped against existing ultimate CopyBuffer/CopyResource transfer barriers; add LEONIDA_ORDER_BUFFER_COPIES=0 opt-out toggle, --expect-unordered test mode, and docs/d3d12_vulkan.md note. - ProjectLeonida/mandy#1097 (SHADER-BUFFER-BOUNDS): use OobSelect::structured_with_offset for structured buffer SRVs in d3d12_vulkan_device.cpp, add cross-record GPU readbacks in d3d12_compute_test.cpp + cs_user_data.comp (and align Xbox slot-17 CBV expectations with wave18b vector-row encoding). - ProjectLeonida/mandy#1096 (RT-STARTUP-TRACE): add VirtualQuery memory region metadata on access violations in startup_trace.h & startup_trace_test.cpp. - ProjectLeonida/mandy#1023 & #1007: update docs/directstorage.md (measured factory IID & slot 8) and docs/d3d12_vulkan.md (device slot 62 5-arg arity & slot 76 FFX-only note). - Wave-21b deferred CMake: add loader TIMEOUT 180 (Reforge#169) and tiny_game_ga / run_tiny_game_ga_tls (ubiq#947 Patch 2). - ProjectLeonida/mandy#984 (self-contained Windows-native port): accept enhanced TextureBarrier into LAYOUT_UNDEFINED without violating VUID-VkImageMemoryBarrier2-newLayout-01198 (command_list.h, vulkan_replay.h, command_list_test, replay_texture_barrier_test, d3d12_close_parity_test). - IAmNotSiob/leonida-ce 525c44e1 (GPL-3.0, deduped): wire optional xmem::commit_physical_range_fn hook into file_system.cpp ReadFile ERROR_NOACCESS retry path to commit large console buffers without per-page VEH faults while keeping zero-cost fast path and touch_pages fallback. - DesignWithTommy/Neonbridge eaf7e7e0: audited and skipped (ultimate has no refresh read-back byte/time cap skipping Bink R8/R8G8 planes).
|
The deferred slot-133 backing and the matching first-use test are on current main via #984. The test exercises a failed bind and retry, four concurrent callers, and the readback of 128 cleared pixels. The older split also conflicts with the newer image-pooling and placement code, so a rebase would reintroduce overlapping runtime paths. AI-assisted. |
…E-DEFER) Retain the regression checks omitted from the integrated fixture. Verify the four retry callers each succeeded, an equivalent committed image already has backing, and closing the command list leaves the placement in its expected state until submission. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
84d0675 to
c92dc97
Compare
|
I checked the old runs on I rebased the remaining regression assertions onto AI-assisted. |
|
Tested 84d0675 on NVIDIA GeForce RTX 4060 (Ada), driver 617.42, Windows 11 Pro build 26200, native Windows (not Proton): pass. Built at this head with
AI-assisted (Claude Code ran the build and tests). No game files. |
|
@Gefik23 Thanks for the native Windows run on Could you rerun the targeted test on
AI-assisted. |
Rebased onto
5129be10. #984 brought deferred slot-133 backing and the first-use fixture into main. This PR now retains three assertions from the original split. All four retry callers must succeed, an equivalent committed image must already have backing, and closing the command list must leave allocation deferred until submission in the default mode. The original test report is below. Onc92dc976,d3d12_existing_heappassed 1/1 with deferred backing and 1/1 withLEONIDA_PLACED_IMAGE_DEFER=0under Wine 11.22 on an RTX 4070 (NVIDIA 620.73.04). Both runs cover the four retry callers, the committed control, the backing check after close, and the 128-pixel readback.Claimed in the coordination issue as: RT-PLACED-IMAGE-DEFER (claim).
Part of the split of #984 into small pull requests.
Depends on: none
Overlaps: #1079 resolves shader views of live placements by address. This change uses the existing slot-133 placement path on main. Streamed sources and shared BC backing are tracked separately.
What and why
Slot 133 allocated private Vulkan memory for every placed render target, depth/stencil target and storage texture, including attachments that only received a logical descriptor. On a device with a limited memory budget, unused attachments compete with active ones.
The image and its format and layout metadata still exist at creation. The runtime binds memory on the first command replay, shader view or CPU subresource copy that needs the image. Concurrent callers share one successful bind. A failed allocation or bind can be retried, and a failed bind releases its unused allocation. Set
LEONIDA_PLACED_IMAGE_DEFER=0for eager allocation.Tested
Release cross-build with clang-cl 23 and an xwin SDK. Commands use a configured build directory.
PROTON_WINEnames the Wine executable andWINEPREFIXselects the test prefix.Both targets built. The existing-heap test passed twice on the same binary. Each run used a 16 × 8 RGBA8 render target placed at a reserved, inaccessible address.
GPUs tested: NVIDIA GeForce RTX 4070 12 GB, driver 620.73.04, CachyOS kernel 7.3.5, Proton Experimental (Wine 11). Native Windows, AMD, Intel and a game boot were not tested on this child. The optional XMA decoder was omitted from the cross-build because its Rust target was unavailable.
AI-assisted: yes.
Checklist
3aa975421.python3 -I scripts/check_no_game_data.py.🤖 Generated with Claude Code