You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDK or header version if building from repo: 1.3.280.0
Options enabled (synchronization, best practices, etc.): synchronization
Describe the Issue
The source issue was described on Discourse.
I faced the problem when I used multisubpass and secondary command buffers. I got the Hazard WAW error. Without secondary buffers, I got no errors.
You can familiarize yourself with the example based on VulkanTutorial here.
I received an error about sync image layout, but it is somewhat nonsensical that Store Op could hazard anything (look at the error below).
Additional context
code or terminal output
validation layer: Validation Error: [ SYNC-HAZARD-WRITE-AFTER-WRITE ] Object 0: handle = 0xead9370000000008, type = VK_OBJECT_TYPE_RENDER_PASS;| MessageID = 0x5c0ec5d6 |vkCmdEndRenderPass(): Hazard WRITE_AFTER_WRITE in subpass 1 for attachment 1 color aspect during store with storeOp VK_ATTACHMENT_STORE_OP_DONT_CARE. Access info (usage: SYNC_COLOR_ATTACHMENT_OUTPUT_COLOR_ATTACHMENT_WRITE, prior_usage: SYNC_IMAGE_LAYOUT_TRANSITION, write_barriers: SYNC_FRAGMENT_SHADER_INPUT_ATTACHMENT_READ, command: vkCmdNextSubpass, seq_no: 3, subcmd: 1, renderpass: VkRenderPass 0xead9370000000008[], reset_no: 2)
The text was updated successfully, but these errors were encountered:
I can build the original sample and reproduce the error. That should be a validation bug. For some reason the layout transition does not synchronizes correctly with the accesses from the secondary command buffer. The net effect that the layout transition detects only accesses after the secondary command buffer (DONT_CARE storeOp writes). Then the system thinks there is a missing synchronization with DONT_CARE access.
The first test reproduces the issue in a single subpass render pass by using LoadOp NONE.
The second test reproduces the same issue in a two subpass scenario, it's more similar to the reported sample.
Environment:
Describe the Issue
The source issue was described on Discourse.
I faced the problem when I used multisubpass and secondary command buffers. I got the Hazard WAW error. Without secondary buffers, I got no errors.
You can familiarize yourself with the example based on VulkanTutorial here.
I received an error about sync image layout, but it is somewhat nonsensical that Store Op could hazard anything (look at the error below).
Additional context
code or terminal output
The text was updated successfully, but these errors were encountered: