Launching Black Myth: Wukong Benchmark Tool (3132990) with validation layers enabled spews out sync hazard coming from a discarded attachment.
SYNC-HAZARD-READ-AFTER-WRITE: vkCmdBeginRendering(): READ_AFTER_WRITE hazard detected. vkCmdBeginRendering reads pRenderingInfo.pColorAttachments[0] (VkImageView 0x8a500000008a5[ImageView (cookie 1460)], loadOp VK_ATTACHMENT_LOAD_OP_LOAD), which was previously written during an image layout transition initiated by vkCmdPipelineBarrier2[CommandList].
The current synchronization allows VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT accesses at VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT, but to prevent this hazard, it must allow VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT accesses at VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT.
The following patch makes VVL happy, but I'm not sure what the intended behavior here is. Especially given the comment about undefined reads...
Launching Black Myth: Wukong Benchmark Tool (3132990) with validation layers enabled spews out sync hazard coming from a discarded attachment.
The following patch makes VVL happy, but I'm not sure what the intended behavior here is. Especially given the comment about undefined reads...
Software information
VKD3D_DEBUG=trace VKD3D_CONFIG=vk_debug VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation PRESSURE_VESSEL_DEVEL=1 %command%System information