Repository navigation
Conversation
kacper-serewis
left a comment
There was a problem hiding this comment.
Independent Windows RTX 5070 (616.56) buffer-copy readback on parent 98d977a and head 8e1fae6. ExecuteCommandLists submitted 9, 2, then 11 copies interleaved with resource barriers. Each submission changed the source pattern, offsets and destination sentinel. All 1,536 destination bytes per revision matched after the corresponding fences, including 1,272 sentinel bytes. The CPU replay self-test also passed on both. Each buffer copy had one region. GPU evidence. AI-assisted.
8e1fae6 to
2ce4ff2
Compare
|
Rebased onto Two merges on
Tested at 19353e1 (the head of the chain, which carries this commit):
AI-assisted (Claude Code). |
Copies, resolves and atomic copies keep their source, regions, depth24/rgb96 conversion and staging in detail::PreparedCopy, in PreparedList::copies, indexed by Prepared::copy, the way ItsNotRexed#2123 moved the draws' data. An ExecuteIndirect's count buffer uses the same slot. Each PreparedCopy is kept between executions and reset() keeps its vectors' storage. detail::Prepared: 872 -> 392 bytes (MSVC 14.44, measured with sizeof). replay_cpu_bench --self-test checks that a buffer copy prepared where a texture upload was before keeps none of its regions. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2ce4ff2 to
0c1f606
Compare
|
Rebased onto Tested 2446c4a (#2969 on top of this) on RTX 5070, driver 621.01, Windows 11, MSVC 14.44, Vulkan SDK 1.4.363,
AI-assisted (Claude Code). |
|
Tested 0c1f606 on AMD Radeon RX 6800 (RDNA2), AMD 26.8.1 (Windows 32.0.21045.5002), Windows 11 Pro 25H2 (build 26200): pass. The runs so far were NVIDIA; this is the AMD side.
Built with AI-assisted (Claude Code): it built both commits and ran the tests. |
|
Tested 0c1f606 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; no Vulkan validation layer installed), one GPU at a time, device line confirmed: AMD Radeon RDNA2 iGPU (driver 26.10.1) and NVIDIA RTX 5080 (driver 616.92). Ran AI-assisted. |
#2123 is merged (41cdb55), so this sits directly on
main. Claim: #2716 (comment)#2123 moved a draw's prepared data out of
detail::Prepared. This does the same for copies.detail::PreparedCopy. That coversCopyBufferRegion,CopyTextureRegion,CopyResource,ResolveSubresource(Region)andAtomicCopyBuffer*. The new structs live inPreparedList::copies, indexed byPrepared::copy(no_copyfor every other command).ExecuteIndirectcount buffer uses the same slot, insource, as it did inPrepared.reset()keeps each copy's vectors' storage.sizeof). Every command's entry is refilled on everyExecuteCommandLists, and most commands are neither draws nor copies.(Prepared& p, PreparedCopy& c):prepare_texture_copy,prepare_resource_copy,prepare_resolveandkeep_around_resolve.p.binding/p.rangestay the destination's.d3d12_state_map_testandpredicated_copy_testread the fields there now.Numbers
replay_cpu_bench --reps 25, i7-14700K, frame row (37,888 commands: 8 lists x 128 passes, draws included). Median of 5 alternating runs of the base (98d977a, #2123's head) and this branch:Recording is unchanged (~75 ns), and allocations are unchanged (prepare 0.04, emit 0 per command).
Tests
Tested 8e1fae6 on an RTX 5070, driver 621.01, Windows 11, MSVC 14.44, Vulkan SDK 1.4.363, with
LEONIDA_VK_VALIDATION=1:ctest -E loader: 117/117 passed.d3d12_vulkan_device_test: exit 0, 0 validation messages.replay_cpu_bench --self-test: ok. It has a new check that a buffer copy prepared where a texture upload was before keeps none of the upload's regions.reset()inadd_copy, that check fails (FAIL copy storage, exit 1).AI-assisted (Claude Code).
🤖 Generated with Claude Code