Skip to content
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

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

ziga-lunarg
Copy link
Contributor

Closes #9354

I don't see a way to get one without the other

@ziga-lunarg ziga-lunarg requested a review from a team as a code owner January 30, 2025 20:50
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 361099.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18933 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 361131.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18935 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18935 passed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 361176.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18937 running.

@ci-tester-lunarg
Copy link
Collaborator

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better error messages 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 361301.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18942 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18942 passed.

@spencer-lunarg spencer-lunarg merged commit cc3e5e3 into KhronosGroup:main Jan 31, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new additional maintenance8 VUs
3 participants