Skip to content

Fix cmd buffer cleanup not always using lowest active index#442

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
LaylBongers:master
Jan 8, 2020
Merged

Fix cmd buffer cleanup not always using lowest active index#442
bors[bot] merged 1 commit intogfx-rs:masterfrom
LaylBongers:master

Conversation

@LaylBongers
Copy link
Copy Markdown
Contributor

This fixes the index picked for cleanup not always being the lowest index.
Additionally this fixes command buffers not being cleaned up if there are no active submissions, because in that case 0 would be picked, which resulted in nothing being cleaned up. Now instead if there are no active submissions, usize MAX will be picked.

Fixes #441

Copy link
Copy Markdown
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Looks reasonable, thank you!
bors r+

bors bot added a commit that referenced this pull request Jan 8, 2020
442: Fix cmd buffer cleanup not always using lowest active index r=kvark a=LaylConway

This fixes the index picked for cleanup not always being the lowest index.
Additionally this fixes command buffers not being cleaned up if there are no active submissions, because in that case 0 would be picked, which resulted in nothing being cleaned up. Now instead if there are no active submissions, usize MAX will be picked.

Fixes #441 

Co-authored-by: Layl <2385329-layl@users.noreply.gitlab.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jan 8, 2020

Build succeeded

@bors bors bot merged commit a221ca1 into gfx-rs:master Jan 8, 2020
kvark pushed a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
442: replace vertex_format_size macro with VertexFormat size function r=kvark a=bootra-dev

This pull request depends on gfx-rs#802

I'm not sure if multiple pull requests is the right way to handle this - let me know if I need to use another workflow.

Co-authored-by: bootra-dev <bootragames@gmail.com>
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.

Resource cleanup validation errors

2 participants