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

BestPractices_ImageBarrierAccessLayout - VK_ACCESS_INPUT_ATTACHMENT_READ_BIT not being allowed for read-only layouts #8521

Open
vmilea opened this issue Sep 10, 2024 · 2 comments
Labels
BestPractices Best practices layer

Comments

@vmilea
Copy link

vmilea commented Sep 10, 2024

The validation of access-layout combinations in image memory barriers is too restrictive. In addition to VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, input attachment access should be allowed for the following layouts:

  • VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL
  • VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
  • VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
  • VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
  • VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
  • VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
  • VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
  • VK_IMAGE_LAYOUT_RENDERING_LOCAL_READ_KHR

Also, some recent layouts like VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL and VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL were never handled. Could we fix that as well?

@vmilea
Copy link
Author

vmilea commented Sep 10, 2024

Related issues: #2918, #6216.

@spencer-lunarg spencer-lunarg added the BestPractices Best practices layer label Sep 10, 2024
@spencer-lunarg
Copy link
Contributor

Thanks for reporting this! you are right, this needs to be updated/fixed

unfortunately we are very backlogged and Best Practices is towards the bottom of the stack, so it might be awhile until we get to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BestPractices Best practices layer
Projects
None yet
Development

No branches or pull requests

2 participants