-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate 2d image blit with invalid z offsets #9357
Validate 2d image blit with invalid z offsets #9357
Conversation
CI Vulkan-ValidationLayers build queued with queue ID 361099. |
CI Vulkan-ValidationLayers build # 18933 running. |
442afa9
to
30dab9c
Compare
CI Vulkan-ValidationLayers build queued with queue ID 361131. |
CI Vulkan-ValidationLayers build # 18935 running. |
CI Vulkan-ValidationLayers build # 18935 passed. |
30dab9c
to
c63b751
Compare
CI Vulkan-ValidationLayers build queued with queue ID 361176. |
CI Vulkan-ValidationLayers build # 18937 running. |
CI Vulkan-ValidationLayers build # 18937 passed. |
@@ -3377,6 +3377,9 @@ bool CoreChecks::ValidateCmdBlitImage(VkCommandBuffer commandBuffer, VkImage src | |||
") but srcImage is VK_IMAGE_TYPE_3D", | |||
src_subresource.baseArrayLayer, src_subresource.layerCount, dst_subresource.layerCount); | |||
} | |||
} else if (static_cast<uint32_t>(abs(region.dstOffsets[0].z - region.dstOffsets[1].z)) != src_subresource.layerCount) { | |||
vuid = is_2 ? "VUID-VkBlitImageInfo2-maintenance8-10579" : "VUID-vkCmdBlitImage-maintenance8-10579"; | |||
skip |= LogError(vuid, all_objlist, region_loc.dot(Field::dstOffsets), "fail"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better error messages 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops
c63b751
to
19df63f
Compare
CI Vulkan-ValidationLayers build queued with queue ID 361301. |
CI Vulkan-ValidationLayers build # 18942 running. |
CI Vulkan-ValidationLayers build # 18942 passed. |
Closes #9354
I don't see a way to get one without the other