Repository navigation
perf(runtime): deferred disjoint-blit barrier batching in BlitCommandEncoder (P4-2a) - #9
Open
Apdelrahman1911 wants to merge 3 commits into
Open
Apdelrahman1911 wants to merge 3 commits into
Apdelrahman1911 wants to merge 3 commits into
Conversation
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 P4-2a from the post-P3 toward-60-FPS audit:
BlitBatchinsideBlitCommandEncoder(blit.rs) so consecutive disjoint blits (multi-texture proxy writebacks, disjoint atlas quadrant uploads, disjoint buffer copies/fills) share 1 leadingvkCmdPipelineBarrier2(combining all imageawaylayout transitions) and 1 deferred closing barrier (combining allbacktransitions, which still joins the next pass or segment end via P3-4A/B).(vk::Buffer, start..end)byte spans; plain textures by(vk::Image, level, layer, aspect, layout)+ 3D texel write boxes (deduplicatingaway/backfor disjoint quadrant writes while flushing on WAW overlap, layout/aspect mismatch, orUNDEFINEDwhole-subresource discard).tracked_id()granularity alongsideall_buf_ids/aliased_tex_ids.managed_backs,overs_owed,aliases, multi-slab/shared/overwrite blit,generate_mipmaps,reset_commands_in_buffer,read_back_range, fence op, or encoder end.tests/blit.rs(every_device_copies_between_buffers_and_textures:(copies, copies) -> (1, 1);every_device_coalesces_back_to_back_blit_barriersCase 1:(4, 1, 5, 4, 4) -> (1, 1, 2, 1, 1)) and addsevery_device_batches_disjoint_blits_and_flushes_hazards.