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

Fix dedicated allocation not getting created even when required #2215

Merged
merged 2 commits into from
May 31, 2023

Conversation

marc0246
Copy link
Contributor

@marc0246 marc0246 commented May 30, 2023

#2214 made me realize that we have a bug when a dedicated allocation is required but the user configured the allocator with dedicated_allocation: false, in which case the allocation isn't made dedicated.

Changelog:

### Bugs fixed
- Fixed a bug when using `GenericMemoryAllocator` configured not to use dedicated allocation, where a dedicated allocation wasn't created even when required.

@marc0246 marc0246 changed the title Fix dedicated allocation UB Fix dedicated allocation not getting created even when required May 30, 2023
@marc0246
Copy link
Contributor Author

Technically not UB because {Buffer, Image}::bind_memory have checks in place for this.

@Rua Rua merged commit 3519883 into vulkano-rs:master May 31, 2023
@marc0246 marc0246 deleted the dedicated-allocation-ub branch June 1, 2023 04:06
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
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