Vulkan-ValidationLayers icon indicating copy to clipboard operation
Vulkan-ValidationLayers copied to clipboard

CreateImage does not currently respect `VK_IMAGE_CREATE_EXTENDED_USAGE_BIT_KHR`

Open ncesario-lunarg opened this issue 3 years ago • 3 comments

As originally reported here, creating an image with VK_IMAGE_CREATE_EXTENDED_USAGE_BIT_KHR can trigger a false error.

Valid Usage ID VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251 and similar VUIDs that take image format + usage into account, as only the format + usage matters at image view creation time when extended usage is used (more or less).

ncesario-lunarg avatar Feb 08 '22 14:02 ncesario-lunarg

Update:

Potential attempt to fix this in https://github.com/KhronosGroup/Vulkan-ValidationLayers/pull/3724

related issue - https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/4520

spencer-lunarg avatar Mar 30 '23 01:03 spencer-lunarg

How can I silence that particular validation error?

How can I silence that particular validation error?

  1. In Vulkan Config image

  2. export VK_LAYER_MESSAGE_ID_FILTER=VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251

spencer-lunarg avatar Mar 14 '24 23:03 spencer-lunarg