Repository navigation
layers: Add 3D subresource checks for CopyMemoryToImageIndirect - #13572
Conversation
|
User apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
188e04d to
9c8f4ef
Compare
|
User apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
spencer-lunarg
left a comment
There was a problem hiding this comment.
few nits, otherwise looks good to me!
| if (!IsIntegerMultipleOf(base_layer, block_depth)) { | ||
| skip |= LogError("VUID-VkCopyMemoryToImageIndirectInfoKHR-dstImage-12291", dst_objlist, | ||
| subresource_loc.dot(Field::baseArrayLayer), | ||
| "(%" PRIu32 ") must be a multiple of the texel block extent depth (%" PRIu32 ") of %s.", |
There was a problem hiding this comment.
word this more like 00207
must be a multiple of the image format (%s) texel block depth (%" PRIu32 ")
| } else if (layer_end != depth && !IsIntegerMultipleOf(layer_count, block_depth)) { | ||
| skip |= LogError("VUID-VkCopyMemoryToImageIndirectInfoKHR-dstImage-12290", dst_objlist, | ||
| subresource_loc.dot(Field::layerCount), | ||
| "(%" PRIu32 ") must be a multiple of the texel block extent depth (%" PRIu32 |
There was a problem hiding this comment.
same thing above
image format (%s) texel block depth (%" PRIu32 ")
9c8f4ef to
3c64fa8
Compare
|
User apollo-2006 not on autobuild list. Waiting for curator authorization before starting CI build. |
|
thanks for the review, all addressed. good catch on 12292, I switched it to < ahead of your spec MR and added a test for baseArrayLayer == depth |
|
CI Vulkan-ValidationLayers build queued with queue ID 174343. |
|
CI Vulkan-ValidationLayers build # 25107 running. |
|
CI Vulkan-ValidationLayers build # 25107 failed. |
For a 3D dstImage, baseArrayLayer and layerCount select depth slices, so check them against the depth of the mip level being copied to (12289, 12292) and against the texel block depth of the format (12290, 12291).
3c64fa8 to
9aaee5a
Compare
|
CI Vulkan-ValidationLayers build queued with queue ID 174754. |
|
CI Vulkan-ValidationLayers build # 25108 running. |
|
CI Vulkan-ValidationLayers build # 25108 passed. |
Fixes #11332.
This fills in the TODO in the 3D branch of
ValidateCopyMemoryToImageIndirectInfowith 12289 to 12292. The depth comes fromGetEffectiveSubresourceExtent, so it follows the mip level, and the checks are skipped whenmipLevelis already out of range (07670).Tests:
NegativeCopyBufferImage.MemoryToImageIndirectSubresource3D: ranges past the depth, including one that fits mip 0 but not mip 1 (12289, 12292).NegativeCopyBufferImage.MemoryToImageIndirectSubresource3DBlockDepth: ASTC 4x4x4 for the block depth checks (12290, 12291).PositiveCopyBufferImage.MemoryToImageIndirect3D: in-range copies at both mips.Both negative tests fail on main. The ASTC one skips on max_profile.json since it has no 3D ASTC format, but passes with a local copy that adds one. I'm happy to add it to the profile here if you'd like it running in CI. Full suite on the test ICD: 0 failures (excluding
NegativeMemory.AllocationCount, which aborts on GCC 16 for a reason which I believe is unrelated).