vsg-dev / VulkanSceneGraph

Vulkan & C++17 based Scene Graph Project
http://www.vulkanscenegraph.org
MIT License
1.3k stars 209 forks source link

Validation error: vkCmdCopyBufferToImage #1301

Open TP-David opened 2 days ago

TP-David commented 2 days ago

Hello, After the commit "Merge pull request #1279 from vsg-dev/Compile_Using_TransferData" on Sep 18 we have started getting this validation error when initializing VSG, originating from ImageView.cpp when calling Viewer::recordAndSubmit. Is this a known issue?

The width, height of the image data in question is 3x256 if that helps to know.

VUID-vkCmdCopyBufferToImage-dstImage-07978(ERROR / SPEC): msgNum: -1680595593 - Validation Error: [ VUID-vkCmdCopyBufferToImage-dstImage-07978 ] Object 0: handle = 0x136ab1435e0, type = VK_OBJECT_TYPE_COMMAND_BUFFER; Object 1: handle = 0x88f3210000000302, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0x9bd42577 | vkCmdCopyBufferToImage: pRegion[0] bufferOffset 0x2b02c2 must be a multiple 4 if using a depth/stencil format (VK_FORMAT_D32_SFLOAT). The Vulkan spec states: If pname:dstImage has a depth/stencil format, the bufferOffset member of any element of pRegions must be a multiple of 4 (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdCopyBufferToImage-dstImage-07978) Objects: 2 [0] 0x136ab1435e0, type: 6, name: NULL [1] 0x88f3210000000302, type: 10, name: NULL

robertosfield commented 2 days ago

During the process of working on the Compile_using_TransferData branch there was times when I say such errors, but have resolved the ones I was seeing. Without knowing how about the data/code paths being taken in your case I can't provide any suggestions as to the cause/how we might resolve them.

Do any of the vsgExamples set reproduce this error?