KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.36k stars 650 forks source link

Synchronization validation error with dynamic rendering sample #1136

Closed lwjglgamedev closed 3 months ago

lwjglgamedev commented 3 months ago

When testing the dynamic rendering sample, with synchronization validation layers enabled, I get the following error:

SYNC-HAZARD-WRITE-AFTER-READ(ERROR / SPEC): msgNum: 929810911 - Validation Error: [ SYNC-HAZARD-WRITE-AFTER-READ ] Object 0: handle = 0x2f856cf8, type = VK_OBJECT_TYPE_QUEUE; | MessageID = 0x376bc9df | vkQueueSubmit():  Hazard WRITE_AFTER_READ for entry 0, VkCommandBuffer 0x2f8fcca0[], Submitted access info (submitted_usage: SYNC_IMAGE_LAYOUT_TRANSITION, command: vkCmdPipelineBarrier, seq_no: 1, reset_no: 3). Access info (prior_usage: SYNC_PRESENT_ENGINE_SYNCVAL_PRESENT_ACQUIRE_READ_SYNCVAL, read_barriers: VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT|VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT, , batch_tag: 105, vkAcquireNextImageKHR aquire_tag:105: VkSwapchainKHR 0xfa21a40000000003[], image_index: 1image: VkImage 0xe7f79a0000000005[]).
    Objects: 1
        [0] 0x2f856cf8, type: 4, name: NULL

I'm testing it with Fedora 40, and have installed latest Vulkan SDK (1.3.290.0). This the configuration of the validation layers:

Screenshot from 2024-08-23 09-30-52

SaschaWillems commented 3 months ago

See https://github.com/KhronosGroup/Vulkan-Samples/pull/983

lwjglgamedev commented 3 months ago

Thanks! Closing this and waiting for the changes to be merged.