Skip to content

Fix issue with multiple queued mappings where the last one is not cancelled#1240

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
Imberflur:unmap
Mar 1, 2021
Merged

Fix issue with multiple queued mappings where the last one is not cancelled#1240
bors[bot] merged 1 commit intogfx-rs:masterfrom
Imberflur:unmap

Conversation

@Imberflur
Copy link
Copy Markdown
Contributor

Connections
Follow up from #1239

Description
In #1239 I missed the case where there are multiple rounds of mapping/unmapping with the last map not being cancelled. In practice it doesn't occur very often, but I did encounter it with settings/a scene that created a heavy GPU load.

Sorry for not catching this earlier!

Testing
Using wgpu-rs capture example, after the first map_async I added in an unmap followed by another map_async.

Copy link
Copy Markdown
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

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

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 94 warnings, 0 errors.

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.

Thank you!
bors r+

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Mar 1, 2021

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