Repository navigation
perf(runtime): feedback-hinted pass opening (P3-1) and lazy initial texture clear elision (P3-3) - #6
Merged
Conversation
…upload clears on full-clear first passes (P3-3) - P3-1: Add sticky Image.feedback_hint set in RenderCommandEncoder::feedback_moves(). On subsequent passes, single-mip/single-layer 2D non-storage color render targets with feedback_hint open directly in ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT and pre-seed encoder.moved, eliminating mid-pass vkCmdEndRendering + ALL_COMMANDS other_barriers + vkCmdBeginRendering(LOAD) (~5,500 interrupts/150s on Lavapipe). - P3-3: Track segment-0 full-extent Clear/DontCare single-2D first overwrites in Gpu.first_overwrites and transition those targets directly from UNDEFINED at PassStartBarriers. WorkState::close/take_uploads skips eager Upload::home GPU zeroing clears when no earlier command in the batch references the image (~2,400 clears / ~260 MB / ~1,450 texture_clear_barriers per 150s on Lavapipe), preserving full safety for dropped or reordered command buffers and LoadAction::Load textures. - Add Lavapipe device tests for both P3-1 and P3-3 and update draw_depth barrier count.
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.
Summary
Image.feedback_hint): Sticky hint recorded inRenderCommandEncoder::feedback_moves()so subsequent passes on single-mip/single-layer 2D non-storage color targets open directly inATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXTwithencoder.movedpre-seeded, eliminating ~5,500 mid-passrendering_interruptsandother_barriersper 150s on Lavapipe while keepingordered()intact after prior writes.texture_clearselision): Segment-0 full-extentClear/DontCarepasses on un-homed single-2D textures covering all aspects transition directly fromUNDEFINEDand registerGpu.first_overwrites;WorkState::close()/take_uploads()claimsImage::claim_homed()and elides eagerUpload::homeclears (~2,400 clears / 260 MB / 1,450texture_clear_barriersper 150s on Lavapipe), with zero hazard for dropped or reordered command buffers.every_device_reuses_feedback_layout_on_subsequent_passes_without_interruptandevery_device_elides_initial_texture_clear_when_first_pass_clears_whole_image, plus updatedevery_device_clears_loads_and_stores_a_depth_attachment_its_draws_do_not_test.