Repository navigation
Conversation
… at recording time
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes all 7 remaining copy-recording
Known::layer_loosergaps inruntime/test/d3d12_close_parity_test.cppso invalidCopyBufferRegion,CopyTextureRegion, andCopyResourcecalls failID3D12GraphicsCommandList::Close()matching native D3D12 / WARP.Claim: #6089 (comment)
Summary
CopyBufferRegion(runtime/shims/d3d12_com.cpp):D3D12_RESOURCE_DIMENSION_BUFFERrequired for bothdstandsrc).[offset, offset + bytes] <= Widthfor non-zero copies while preserving live WARP's no-op acceptance for 0-byte copies.CopyTextureRegion(runtime/shims/d3d12_com.cpp,runtime/shims/d3d12_com.h,runtime/shims/d3d12_vulkan_device.cpp):SUBRESOURCE_INDEXlocations against texture dimension andMipLevels * ArraySize * PlaneCount(accounting for 3D textures and 2-plane depth/stencil formats).PLACED_FOOTPRINTformats: rejectsDXGI_FORMAT_UNKNOWNand verifies compatibility with the texture's typeless family, multi-plane depth/stencil plane formats, or creation-time castable-format list (resource_lists_castable_format).(x, y, z) + copy_extent <= dst_mip_extent(block-padded for BC textures, scaled block-for-texel for BC <-> uncompressed cross-format copies, and preserving empty/invertedD3D12_BOXno-ops).CopyResource(runtime/shims/d3d12_com.cpp):dst.Width != src.Width, while preserving buffer-to-textureCopyResource(where WARP returnsS_OK).runtime/test/d3d12_close_parity_test.cpp):Known::layer_loosertoKnown::match.CopyBufferRegionUINT64_MAXoffset overflow check and 0-byte past-end check, both verified against live WARP.Verification (Windows 11, NVIDIA GeForce RTX 5090,
LEONIDA_VK_VALIDATION=1, 0 Vulkan validation errors)d3d12_close_parity_test:102 cases, 74 match WARP, 20 known layer-stricter, 8 known layer-looser, 0 not run, 0 where WARP differs from the measured column, 0 failures(exit 0)d3d12_com_test:COM list/queue/fence: 16 colour, depth and stencil texels matched; queue wait held the GPU(exit 0)d3d12_copy_xfmt_test:46 compared, 0 differ (BC <-> uncompressed, controls), 0 depth <-> colour differ(exit 0)d3d12_subresource_copy_test:109 steps compared with the host(host image copy & staging copy),0 mismatches(exit 0)d3d12_noop_copy_test:native WARP&Leonida Vulkan:5 legal no-op copy submissions, invalid upload copy rejected; pattern mismatches=0(exit 0)d3d12_vulkan_device_test: full suite passed (exit 0)AI-assisted (Gemini 4 Neon).