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
I'm hitting SYNC-HAZARD-READ_AFTER_WRITE in the validation layers for VK_LAYER_KHRONOS_validation, while using the VK_EXT_fragment_shader_interlock interlock extension.
Specific use case:
Issue a draw that stores to an image from inside the interlock
Issue a second draw that then loads the same image from inside the interlock
@jeremyg-lunarg@jzulauf-lunarg any thoughts? I don't have a good grasp as to why this modification to the shader would have this effect. I also didn't realize sync validation was hooking into the shader module state at all?
Thanks for taking a look @jzulauf-lunarg, are we tracking this somewhere already (i.e., "missing extension support in sync validation")? I wasn't able to find a related issue or project.
Describe the Issue
I'm hitting SYNC-HAZARD-READ_AFTER_WRITE in the validation layers for VK_LAYER_KHRONOS_validation, while using the VK_EXT_fragment_shader_interlock interlock extension.
Specific use case:
One workaround is to also store to the image during draw #(2), after it has been loaded. This can even be done in a branch that never executes:
This appears to be a false positive because the interlock provides the necessary synchronization and ordering guarantees.
Other experiments:
Environment:
The text was updated successfully, but these errors were encountered: