Repository navigation
perf(agc): remember shader validation failures and reject repeats without throwing - #192
Merged
boykopovar merged 1 commit intoSep 30, 2026
Conversation
…hout throwing Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
oneandonlydean
added a commit
to oneandonlydean/AnyPS5
that referenced
this pull request
Oct 1, 2026
…opovar#208 test layout, our merged PRs) into astrobot Conflicts resolved: - Driver.cpp: upstream split it into Execution/src/Driver/*; astrobot's driver changes are ported into the split files (flip throttle APS5_MAX_QUEUED_FLIPS, dispatch tolerance, NoteProgram, metadata-pass switch and DB HTILE blits, depth state in the draw register key, HTILE fill clears, wait outcome counters, opt-in deferred EOP interrupts). boykopovar#192's KnownDrawRejection is taken. - Our merged PRs take upstream's reviewed versions: boykopovar#124 shader fusion, boykopovar#128 videoout open param, boykopovar#132 CB metadata passes, boykopovar#138 EOP events, boykopovar#176 GE_INDX_OFFSET, boykopovar#136/boykopovar#137 pixel inputs and NoPerspective by I/J pair, boykopovar#133 mesh tests. boykopovar#142's interpolation validation is upstream's. - Depth: astrobot's DepthTarget model stays; upstream's DepthSurface module is dropped again, boykopovar#188's 16-bit depth-bit reads are kept on top. - Videodec2: upstream's ffmpeg-core version (boykopovar#42 rework); 3rdparty/FFmpeg stays for libSceAvPlayer only. - Tests follow boykopovar#208's layout (add_test_executable, build/tests); the AvPlayer, GDS and wave tests are defined the same way. - Shader disk cache format 5 and request serialization version 7 cover both sides' fields. - Duplicates the auto-merge produced (state decoders, RequestInputInfo, structurizer helpers, image offsets, opcode enum, tests) are removed.
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
A draw whose shaders fail
ValidateShadersis skipped by throwing, and the unwinding costs about 1–1.5 ms per throw on this toolchain (LibcUnwinddecodes the frames). A title that keeps issuing the same rejected combination pays that for every draw.CachedFragmentOutputsalready remembers the fragment outputs of a validated configuration, keyed by the stages' variants, push constant placement, vertex attribute shapes and the state fields validation checks. Its key is now built byValidationKey.KnownDrawRejectionbefore a (non-recipe) draw. A known failure returnsDrawVerdict::Rejectedwith the same message, so the skip is reported as before, without an exception.APS5_NO_VALIDATE_CACHE=1still disables both.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
DepthReplacing, about 5000 draws per 10 s.ctest: the same results as plainmainon this machine. The failures are identical there:agc_driver*exit with0xc0000139at startup, andempty_tls,tls_function_coverage,windows_guiandguest_intel_trampolinesfail.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code