Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSIL has validation errors #80099

Closed
darksylinc opened this issue Aug 1, 2023 · 0 comments · Fixed by #80315
Closed

SSIL has validation errors #80099

darksylinc opened this issue Aug 1, 2023 · 0 comments · Fixed by #80315

Comments

@darksylinc
Copy link
Contributor

Godot version

master [75f9c97]

System information

Godot v4.2.dev (262d1ea) - Ubuntu 20.04.6 LTS (Focal Fossa) - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 6800 XT - AMD Ryzen 9 5900X 12-Core Processor (24 Threads)

Issue description

I get SSIL spams in the log with:

ERROR: VALIDATION - Message Id Number: -564812795 | Message Id Name: VUID-VkDescriptorImageInfo-imageLayout-00344
	Validation Error: [ VUID-VkDescriptorImageInfo-imageLayout-00344 ] Object 0: handle = 0xdc9e5a0, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xde55a405 | vkCmdDispatch: Cannot use VkImage 0xc3e06d00000048ea[RenderBuffer render_buffers/depth] (layer=0 mip=0) with specific layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL that doesn't match the previous known layout VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL. The Vulkan spec states: imageLayout must match the actual VkImageLayout of each subresource accessible from imageView at the time this descriptor is accessed as defined by the image layout matching rules (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-VkDescriptorImageInfo-imageLayout-00344)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_COMMAND_BUFFER, Handle 231335328
	Command Buffer Labels - 1
		Label[0] - Downsample Depth{ 1, 1, 1, 1 }
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -439258052 | Message Id Name: VUID-vkCmdDispatch-None-02699
	Validation Error: [ VUID-vkCmdDispatch-None-02699 ] Object 0: handle = 0x22f9750000004c6b, name = RID:572218492846533, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; | MessageID = 0xe5d1743c | Descriptor set VkDescriptorSet 0x22f9750000004c6b[RID:572218492846533] encountered the following validation error at vkCmdDispatch time: Image layout specified at vkUpdateDescriptorSet* or vkCmdPushDescriptorSet* time doesn't match actual image layout at time descriptor is used. See previous error callback for specific details. The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid if they are statically used by the VkPipeline bound to the pipeline bind point used by this command (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-vkCmdDispatch-None-02699)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_DESCRIPTOR_SET, Handle 2520174109350972523, Name "RID:572218492846533"
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -564812795 | Message Id Name: VUID-VkDescriptorImageInfo-imageLayout-00344
	Validation Error: [ VUID-VkDescriptorImageInfo-imageLayout-00344 ] Object 0: handle = 0xd9da440, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xde55a405 | vkCmdDispatch: Cannot use VkImage 0xc3e06d00000048ea[RenderBuffer render_buffers/depth] (layer=0 mip=0) with specific layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL that doesn't match the previous known layout VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL. The Vulkan spec states: imageLayout must match the actual VkImageLayout of each subresource accessible from imageView at the time this descriptor is accessed as defined by the image layout matching rules (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-VkDescriptorImageInfo-imageLayout-00344)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_COMMAND_BUFFER, Handle 228435008
	Command Buffer Labels - 1
		Label[0] - Downsample Depth{ 1, 1, 1, 1 }
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -439258052 | Message Id Name: VUID-vkCmdDispatch-None-02699
	Validation Error: [ VUID-vkCmdDispatch-None-02699 ] Object 0: handle = 0x22f9750000004c6b, name = RID:572218492846533, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; | MessageID = 0xe5d1743c | Descriptor set VkDescriptorSet 0x22f9750000004c6b[RID:572218492846533] encountered the following validation error at vkCmdDispatch time: Image layout specified at vkUpdateDescriptorSet* or vkCmdPushDescriptorSet* time doesn't match actual image layout at time descriptor is used. See previous error callback for specific details. The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid if they are statically used by the VkPipeline bound to the pipeline bind point used by this command (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-vkCmdDispatch-None-02699)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_DESCRIPTOR_SET, Handle 2520174109350972523, Name "RID:572218492846533"
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -564812795 | Message Id Name: VUID-VkDescriptorImageInfo-imageLayout-00344
	Validation Error: [ VUID-VkDescriptorImageInfo-imageLayout-00344 ] Object 0: handle = 0xdd1e910, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xde55a405 | vkCmdDispatch: Cannot use VkImage 0xc3e06d00000048ea[RenderBuffer render_buffers/depth] (layer=0 mip=0) with specific layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL that doesn't match the previous known layout VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL. The Vulkan spec states: imageLayout must match the actual VkImageLayout of each subresource accessible from imageView at the time this descriptor is accessed as defined by the image layout matching rules (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-VkDescriptorImageInfo-imageLayout-00344)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_COMMAND_BUFFER, Handle 231860496
	Command Buffer Labels - 1
		Label[0] - Downsample Depth{ 1, 1, 1, 1 }
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -439258052 | Message Id Name: VUID-vkCmdDispatch-None-02699
	Validation Error: [ VUID-vkCmdDispatch-None-02699 ] Object 0: handle = 0x22f9750000004c6b, name = RID:572218492846533, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; | MessageID = 0xe5d1743c | Descriptor set VkDescriptorSet 0x22f9750000004c6b[RID:572218492846533] encountered the following validation error at vkCmdDispatch time: Image layout specified at vkUpdateDescriptorSet* or vkCmdPushDescriptorSet* time doesn't match actual image layout at time descriptor is used. See previous error callback for specific details. The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid if they are statically used by the VkPipeline bound to the pipeline bind point used by this command (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-vkCmdDispatch-None-02699)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_DESCRIPTOR_SET, Handle 2520174109350972523, Name "RID:572218492846533"
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -564812795 | Message Id Name: VUID-VkDescriptorImageInfo-imageLayout-00344
	Validation Error: [ VUID-VkDescriptorImageInfo-imageLayout-00344 ] Object 0: handle = 0xdd13710, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xde55a405 | vkCmdDispatch: Cannot use VkImage 0xc3e06d00000048ea[RenderBuffer render_buffers/depth] (layer=0 mip=0) with specific layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL that doesn't match the previous known layout VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL. The Vulkan spec states: imageLayout must match the actual VkImageLayout of each subresource accessible from imageView at the time this descriptor is accessed as defined by the image layout matching rules (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-VkDescriptorImageInfo-imageLayout-00344)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_COMMAND_BUFFER, Handle 231814928
	Command Buffer Labels - 1
		Label[0] - Downsample Depth{ 1, 1, 1, 1 }
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: VALIDATION - Message Id Number: -439258052 | Message Id Name: VUID-vkCmdDispatch-None-02699
	Validation Error: [ VUID-vkCmdDispatch-None-02699 ] Object 0: handle = 0x22f9750000004c6b, name = RID:572218492846533, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; | MessageID = 0xe5d1743c | Descriptor set VkDescriptorSet 0x22f9750000004c6b[RID:572218492846533] encountered the following validation error at vkCmdDispatch time: Image layout specified at vkUpdateDescriptorSet* or vkCmdPushDescriptorSet* time doesn't match actual image layout at time descriptor is used. See previous error callback for specific details. The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid if they are statically used by the VkPipeline bound to the pipeline bind point used by this command (https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-vkCmdDispatch-None-02699)
	Objects - 1
		Object[0] - VK_OBJECT_TYPE_DESCRIPTOR_SET, Handle 2520174109350972523, Name "RID:572218492846533"
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)

Steps to reproduce

  1. Create an empty project
  2. Create a WorldEnvironment node
  3. Add a custom color background (unknown if this has an effect)
  4. Enable SSIL

Minimal reproduction project

I will handle this bug myself during the weekend. I'm reporting it for tracking purposes.

EmptyGodotProject.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants