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

Don't recycle indices that reach EOL #2462

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Conversation

kvark
Copy link
Member

@kvark kvark commented Feb 7, 2022

Connections
Related to gfx-rs/wgpu-native#171
But also affects 64-bit systems.

Description
Once the epoch reaches its max value, we should never try to recycle it.

Testing
small unit test inside

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, didn't realize we were using a freelist before for IDs

@cwfitzgerald cwfitzgerald merged commit 6931e57 into gfx-rs:master Feb 8, 2022
@kvark kvark deleted the vk-log branch February 11, 2022 21:19
@kvark kvark added the PR: needs back-porting PR with a fix that needs to land on crates label Feb 11, 2022
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Feb 9, 2023
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