KhronosGroup/Vulkan-ExtensionLayer

Synchronization2 Layer vkCmdPipelineBarrier2KHR fails with Swapchain images

andreasschultes opened this issue · 0 comments

Follow Error occures if a swapchain image from vkGetSwapchainImagesKHR is used in the pipeline barrier:

/build/vulkan-extensionlayer-1.2.189.0~rc1-1lunarg20.04/layers/synchronization2.cpp:885: synchronization2::DependencyInfoV1::DependencyInfoV1(const synchronization2::DeviceData&, uint32_t, const VkDependencyInfoKHR*, const VkAllocationCallbacks*): Assertion `image_data != device_data.image_map.end()' failed.

ASSERT(image_data != device_data.image_map.end());

imaga_data is only filed with the CreateImage HOOK

VKAPI_ATTR VkResult VKAPI_CALL CreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator,

Images from vkGetSwapcahinImagesKHR are missing, in image_data map

vk_concurrent_unordered_map<VkImage, ImageData> image_map;

I think that the ImageAspect From Swapchain images is Color.