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

[0.6/dx12] Improve descriptor handling #3434

Merged
merged 5 commits into from
Oct 24, 2020
Merged

[0.6/dx12] Improve descriptor handling #3434

merged 5 commits into from
Oct 24, 2020

Conversation

kvark
Copy link
Member

@kvark kvark commented Oct 24, 2020

Can be reviewed commit-by-commit. Actually gets us to release the descriptors.
It also fixes a mistake I made in one of the previous PRs that would panic in view creation, unnecessarily.

Also works around gfx-rs/wgpu#1002 in the following way:

  • we rotate the temporary descriptor heaps instead of resetting them every time
  • once we reach the head during rotation, we insert a new heap in

That is not a guarantee that we'll never hit this WARP issue again, but there is a high chance most apps will not notice. If there is a better workaround, I'll be happy to scrap this one.

I think the old logic was plain wrong, too: the update_pool_index wasn't actually being used...

@kvark kvark requested a review from msiglreith October 24, 2020 04:28
Copy link
Contributor

@msiglreith msiglreith left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 24, 2020

@bors bors bot merged commit 5b44eca into gfx-rs:hal-0.6 Oct 24, 2020
@kvark kvark deleted the 0.6-dx12 branch October 24, 2020 19:14
bors bot added a commit that referenced this pull request Oct 25, 2020
3436: [dx12] fix and improve descriptor handling r=kvark a=kvark

An improved port of #3434 for master

Co-authored-by: Dzmitry Malyshau <[email protected]>
bors bot added a commit that referenced this pull request Oct 25, 2020
3436: [dx12] fix and improve descriptor handling r=kvark a=kvark

An improved port of #3434 for master

Co-authored-by: Dzmitry Malyshau <[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