Closed zeux closed 6 years ago
Can you provide a test case? We already validate access masks against stage masks, but we might be broken somewhere..
See the dependency in the original issue; when used as an external subpass dependency it triggers no warnings/errors
OK, I see what's going on here now. CmdPipelineBarrier etc outside a renderpass validates these masks correctly, but the renderpass path is different and misses it.
Yeah - sorry, I didn't check this thoroughly; CmdPipelineBarrier does issue an error here, so the issue is only with external dependencies.
The spec says this:
To me this suggests that, for example, the following barrier:
Is something an application "must not specify" since there are no stages in the mask that can issue transfer reads. It would be nice to get a validation warning/error for this.
This seems to be the case for both external pass dependencies and vkCmdPipelineBarrier.