KhronosGroup / Vulkan-ValidationLayers

Vulkan Validation Layers (VVL)
https://vulkan.lunarg.com/doc/sdk/latest/linux/khronos_validation_layer.html
Other
754 stars 404 forks source link

VUID-VkImageCopy-dstOffset and copying form UINT format to DXT (BC) #1946

Open mark-lunarg opened 4 years ago

mark-lunarg commented 4 years ago

[From LunarXchange] Operating System | Win 10 Graphics Card | any Driver | any SDK Version 2.141.0

There could be an issue with VL when copying from uncompressed (UINT) formats to comrpessed (DXT), or I'm doing something wrong there. :/ (There are some problems with lower mipmaps, size less than 4x4). Here...

Validation Error: [ VUID-VkImageCopy-dstOffset-00150 ] Object 0: handle = 0x22931790, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0x5c912440 | vkCmdCopyImage(): Dest image pRegion 0 x-dimension offset [0] + extent [4] exceeds subResource width [2]. The Vulkan spec states: dstOffset.x and (extent.width + dstOffset.x) must both be greater than or equal to 0 and less than or equal to the destination image subresource width (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkImageCopy-dstOffset-00150)

Validation Error: [ VUID-VkImageCopy-dstOffset-00151 ] Object 0: handle = 0x22931790, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xb73b73ad | vkCmdCopyImage(): Dest image pRegion 0 y-dimension offset [0] + extent [4] exceeds subResource height [2]. The Vulkan spec states: dstOffset.y and (extent.height + dstOffset.y) must both be greater than or equal to 0 and less than or equal to the destination image subresource height (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkImageCopy-dstOffset-00151)

pvkCmdCopyImage( vkCmdBuf, vkSrcImage, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, vkDstImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, &vkImgCopy);

vkSrcImage cration info:

Type VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO (14) VkStructureType pNext 0x0000000000000000 const void * flags 0 unsigned int imageType VK_IMAGE_TYPE_2D (1) VkImageType format VK_FORMAT_R16G16B16A16_UINT (95) VkFormat

vkDstImage cration info:

sType VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO (14) VkStructureType pNext 0x0000000063b2f238 const void * flags 8 unsigned int imageType VK_IMAGE_TYPE_2D (1) VkImageType format VK_FORMAT_BC1_RGB_UNORM_BLOCK (131) VkFormat

cfnptr commented 1 year ago

Same problem. Any news on this?