Repository navigation
perf(libSceAgcDriver): order in-place vertex inputs behind pending GPU writes with a barrier - #5338
Closed
ErenYeager1836 wants to merge 1 commit into
Closed
ErenYeager1836 wants to merge 1 commit into
ErenYeager1836 wants to merge 1 commit into
Conversation
…U writes with a barrier An in-place draw input flushed pending GPU writes over its range on the CPU before the bind, a submit-and-wait of the open batch when a dispatch in it wrote the buffer. The CPU never reads a vertex buffer's bytes, so a vertex input under a pending write is bound in place behind a barrier from shader and transfer writes to vertex attribute reads, recorded before the draw's rendering begins; index inputs keep the flush, since the highest index is read on the CPU. Minecraft generates a vertex buffer with a compute dispatch every frame and drew from it one CPU wait later. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
Author
|
Closing in favor of earlier open PR #4649 by @Mouad-Scriptz-0. |
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.
What
An in-place draw input previously flushed pending GPU writes over its range on the CPU before binding, causing a CPU submit-and-wait stall of the open batch whenever a compute dispatch wrote the buffer. Since the CPU never reads a vertex buffer's bytes directly, vertex inputs under pending writes can instead be bound in place behind an execution barrier from shader/transfer writes to vertex attribute reads recorded before the draw's rendering begins.
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp.Carried from @Mouad-Scriptz-0 with author attribution preserved.
Tested
agc_recorder_testsin AgcDriver tests suite. Passes conventions check.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)