Repository navigation
P3-4: Coalesce trailing closing barrier into segment end and elide bare opening buffer-blit barrier - #7
Merged
Conversation
…re opening buffer-blit barrier
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.
Implements Investigation 33 P3-4A + P3-4B:
back.is_empty()), coalesces any deferred trailing closing barrier (self.closingfrom a trailing render pass or blit) directly intorecord::end()'s singleALL_COMMANDSbarrier viajoined(). Eliminates one redundant full-pipelineALL_COMMANDSbarrier on every command buffer / segment ending with a pass or blit while preservingrecord::end()'s cross-CB ordering invariant (required bysubmit.rsbatching up to 16 CBs into oneVkSubmitInfo2).bare = !openson the four buffer-onlybuilding.lead(command, &[], ...)sites (copy_from_buffer_to_buffer,fill_buffer,reset_commands_in_buffer,read_back_range) when opening a fresh command buffer with no prior commands, managed copy-backs, heap aliases, or over-copies, matchingrender_encoder.rs.tests/pass.rs,tests/blit.rs,tests/draw.rs,tests/present.rs, andtests/mipmaps.rs.