Skip to content

Commit

Permalink
layers: Fix message in VUID 06410 validation
Browse files Browse the repository at this point in the history
Print the number of mipLevels instead of arrayLayers in
VUID-VkImageCreateInfo-format-06410 validation.
  • Loading branch information
tmerilehti authored and jeremyg-lunarg committed Apr 14, 2022
1 parent b5f4eca commit f178cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/buffer_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ bool CoreChecks::PreCallValidateCreateImage(VkDevice device, const VkImageCreate
if (pCreateInfo->mipLevels != 1) {
skip |= LogError(device, "VUID-VkImageCreateInfo-format-06410",
"vkCreateImage(): mipLevels = %d, but when using a YCbCr Conversion format, mipLevels must be 1",
pCreateInfo->arrayLayers);
pCreateInfo->mipLevels);
}

if (pCreateInfo->samples != VK_SAMPLE_COUNT_1_BIT) {
Expand Down

0 comments on commit f178cca

Please sign in to comment.