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

[vulkan] Fix subregion memory offsets to respect buffer alignment #7576

Merged
merged 2 commits into from
May 17, 2023

Conversation

derek-gerstmann
Copy link
Contributor

This appears to fix issues that were present on linux-buildbot-4 whereby the driver is reporting a buffer alignment constraint which is larger (??) than the offset alignment constraint for the buffer usage. In this case, the validation layer reports that this buffer alignment constraint has to be applied to the byte offset for BindBufferMemory.

These changes fix this issue.

Derek Gerstmann added 2 commits May 17, 2023 14:48
…ers report a minimum alignment for the buffer that is larger than the storage or uniform storage offset alignemnt)

Cleanup region offset and size constraints
@derek-gerstmann derek-gerstmann merged commit 6c8f7aa into main May 17, 2023
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
…lide#7576)

* Fix buffer alignment constraints for subregion allocations (some drivers report a minimum alignment for the buffer that is larger than the storage or uniform storage offset alignemnt)
Cleanup region offset and size constraints

* Clang tidy/format pass

---------

Co-authored-by: Derek Gerstmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants