Repository navigation
[vulkan] Avoid dropping work in serializing command queue - #2378
Merged
Merged
Conversation
We inspect all deferred submission one by one in ProcessDeferredSubmissions() and put them in remaining_submissions if they are not ready. These work should be returned to deferred_submissions_ when we cannot prepare VkSubmitInfo for any of them. Previously we will just silently dropping them. Also we cannot std::move the fence from FencedSubmission until it's clear that we can prepare VkSubmitInfo with it. Otherwise the remaining_submissions will see a nullptr fence.
antiagainst
force-pushed
the
fix-queue-bugs
branch
from
July 1, 2020 22:15
d116bd6 to
e9a5de4
Compare
Member
Let's untangle this next week after holidays / the weekend. |
Member
Author
|
Updated to revert the change for inlining lambda and pulled in Scott's magic for silencing ASAN check. |
ScottTodd
approved these changes
Jul 7, 2020
| // We need to return all remaining submissions back to the queue to avoid | ||
| // dropping work. | ||
| auto submission_cleanup = MakeCleanup([this, &remaining_submissions]() { | ||
| // Disable thread-safety-analysis as it doesn't understand this lambda. |
Member
There was a problem hiding this comment.
For the record, I'm not totally confident in my interpretation of the analysis here, and this pattern isn't listed as a "known-limitation".
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We inspect all deferred submission one by one in ProcessDeferredSubmissions()
and put them in remaining_submissions if they are not ready. These work should
be returned to deferred_submissions_ when we cannot prepare VkSubmitInfo for
any of them. Previously we will just silently dropping them.
Also we cannot std::move the fence from FencedSubmission until it's clear that
we can prepare VkSubmitInfo with it. Otherwise the remaining_submissions will
see a nullptr fence.
These are issues exposed by #2196.
Thanks Scott! :)