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

Validation error: Hazard WRITE_AFTER_WRITE vs. layout transition #546

Open
Tracked by #533
IAmNotHanni opened this issue Jun 19, 2023 · 4 comments
Open
Tracked by #533
Labels
cat:bug bug/error/mistake which limits the program

Comments

@IAmNotHanni
Copy link
Member

IAmNotHanni commented Jun 19, 2023

Describe The Bug

When enabling Vulkan synchronization validation layers, I get at least 2 validation errors.

Steps To Reproduce

  1. Open vkcube and select synchronization validation layers:
    grafik
  2. Download, builld and run Inexor's current main branch

Expected Behavior

In a correct implementation, no synchronization errors occur in the most ideal case.

Affected Code

The rendergraph(?)

Operating System

All

Application Version

4f7b837

Additional Context

None

Relevant Log Output

SYNC-HAZARD-WRITE-AFTER-WRITE(ERROR / SPEC): msgNum: 1544472022 - Validation Error: [ SYNC-HAZARD-WRITE-AFTER-WRITE ] Object 0: handle = 0x3fbcd60000000028, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x5c0ec5d6 | vkCmdBeginRenderPass: Hazard WRITE_AFTER_WRITE vs. layout transition in subpass 0 for attachment 1 aspect depth during load with loadOp VK_ATTACHMENT_LOAD_OP_CLEAR.
Objects: 1
[0] 0x3fbcd60000000028, type: 18, name: NULL
2023-06-19 04:38:22.731829 critical 25072 [vulkan-renderer] Validation Error: [ SYNC-HAZARD-WRITE-AFTER-WRITE ] Object 0: handle = 0x3fbcd60000000028, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x5c0ec5d6 | vkCmdBeginRenderPass: Hazard WRITE_AFTER_WRITE vs. layout transition in subpass 0 for attachment 1 aspect depth during load with loadOp VK_ATTACHMENT_LOAD_OP_CLEAR.

@IAmNotHanni IAmNotHanni added the cat:bug bug/error/mistake which limits the program label Jun 19, 2023
@IAmNotHanni IAmNotHanni mentioned this issue Jun 19, 2023
22 tasks
@IAmNotHanni IAmNotHanni changed the title Hazard WRITE_AFTER_WRITE vs. layout transition Validation error: Hazard WRITE_AFTER_WRITE vs. layout transition Jun 19, 2023
@IAmNotHanni
Copy link
Member Author

@IAmNotHanni
Copy link
Member Author

I think the issue is in RenderGraph::build_render_pass...

@IAmNotHanni
Copy link
Member Author

I believe this will go a way once use dynamic rendering in rendergraph2, so I am not sure if it's worth looking into this any further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:bug bug/error/mistake which limits the program
Projects
None yet
Development

No branches or pull requests

1 participant