Repository navigation
Conversation
Contributor
|
Tested On each adapter, the three-mip BC1 copy matches all 88 upload bytes. The two-layer copy matches all 176 upload bytes. The test reports 48 comparisons and zero differences on each adapter with Vulkan validation enabled. I built the same test against parent cmake --build E:/Leonida-review-work-build --config RelWithDebInfo --target d3d12_copy_xfmt_test --parallel 4
$env:LEONIDA_VK_VALIDATION = '1'
foreach ($mask in @('*nv*', '*amd*')) {
$env:VK_LOADER_DRIVERS_DISABLE = $mask
& E:/Leonida-review-work-build/RelWithDebInfo/d3d12_copy_xfmt_test.exe
}I checked both device names in the test output. This result covers the cross-format copy test. AI-assisted. |
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.
What changes
A whole-resource copy from uncompressed texels to block-compressed texture blocks failed when any destination mip ended inside a BC block. Native D3D12 WARP accepts these copies. This follows merged #3477, which fixed the region-copy case. Coordination claim.
Replay keeps aligned mips on
vkCmdCopyImage. For each mip that reaches a partial BC block, it uses transfer scratch with matching byte strides and a write extent clipped to the logical mip size. Scratch offsets account for every layer and depth slice. Copies with more source blocks than destination blocks remain invalid.Validation
d3d12_copy_xfmtchecks 88 bytes across three mips with a partial tail and 176 bytes across three partial mips in two array layers, against independent upload bytes and WARP.d3d12_copy_xfmt,d3d12_subresource_copy,d3d12_stencil_copy,replay_copy_offset, andvk_bc_zero_initpassed on an RTX 4070 SUPER with Vulkan validation and synchronization validation enabled.AI-assisted. No game files were used.
Coordination
#6178 validates calls at recording time. I checked that it merges cleanly with this branch. #3019 changes conditional execution and already conflicts with current main in replay. This PR changes cross-format mip geometry. When combining the two, keep the clipped per-mip extents here and route both the aligned and clipped regions through #3019's conditional path for a predicated copy.