perf(agc): remember shader validation failures and reject repeats without throwing #192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/192"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-09-30T16:46:30Z.
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