Search Issue Tracker

Fixed

Fixed in 2021.3.31f1, 2022.2.19f1, 2023.1.0b16, 2023.2.0a12

Votes

0

Found in

2020.3.36f1

2023.2.0a1

2023.3.0a3

Issue ID

UUM-15079

Regression

No

[Graphics, Vulkan] Copying Texture2D to Texture2D array with incomplete MIP chain source causes crash and validation errors

--

-

How to reproduce:

# Open and run the user attached build
# Observe the crash

Reproducible with: 2020.3.36f1

Reproduced on: Windows 10 (Intel)

Note: When the debug validation layers are active they show multiple errors

VULKAN DEBUG: ERROR: \[Validation, 0]: Validation Error: \[ VUID-VkImageMemoryBarrier-subresourceRange-01724 ] Object 0: handle = 0x76f3e50000000194, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0x29bbee05 | vkCmdPipelineBarrier: subresourceRange.baseMipLevel + .levelCount (= 9 + 1 = 10) is greater than the mip level count of the image (i.e. greater than 9). The Vulkan spec states: If subresourceRange.levelCount is not VK_REMAINING_MIP_LEVELS, subresourceRange.baseMipLevel + subresourceRange.levelCount must be less than or equal to the mipLevels specified in VkImageCreateInfo when image was created ([https://vulkan.lunarg.com/doc/view/1.3.204.1/windows/1.3-extensions/vkspec.html#VUID-VkImageMemoryBarrier-subresourceRange-01724|https://vulkan.lunarg.com/doc/view/1.3.204.1/windows/1.3-extensions/vkspec.html#VUID-VkImageMemoryBarrier-subresourceRange-01724|smart-link] )

VULKAN DEBUG: ERROR: \[Validation, 0]: Validation Error: \[ VUID-vkCmdCopyImage-dstImage-01732 ] Object 0: handle = 0x7bb5800000000191, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0x6a05d345 | vkCmdCopyImage: pRegion\[0] dst_copy_extent width (2) must be a multiple of the blocked texture block width (4), or when added to dstOffset.x (0) must equal the image subresource width (4). The Vulkan spec states: If dstImage is a blocked image, then for each element of pRegions, extent.width must be a multiple of the compressed texel block width or (extent.width + dstOffset.x) must equal the width of the specified dstSubresource of dstImage ([https://vulkan.lunarg.com/doc/view/1.3.204.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdCopyImage-dstImage-01732|https://vulkan.lunarg.com/doc/view/1.3.204.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdCopyImage-dstImage-01732|smart-link] )

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.