fix(agc): defer Windows exceptions during shader preparation #7686
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7686"
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 gohansharma79-svg on 2026-10-18T23:01:39Z.
What
Prevent redirected Windows guest exceptions from entering a handler while the target is acquiring or holding a shader preparation transaction. A handler that prepares shaders otherwise waits on a writer mutex held by the thread it interrupted. Defer delivery through the full transaction lifetime, release staged state before ending deferral, and preserve nesting when a native thread is adopted by
scePthreadSelf.This is a host deadlock correction, not a measured FPS improvement. The existing one-second sender retry limit remains; exceeding it throws. Other host locks and POSIX signal delivery are outside this change, as recorded in the AGC debt file.
Depends on #7652, included as the first commit with its original authorship retained. That change avoids redirecting running host-module code; this follow-up keeps shader transaction scopes protected even after control returns to executable code, or while a writer is blocked. Its delivery-loop condition retains #7652's running-host-code policy. The original baseline regression also fails before that dependency is applied; validation of this combined branch is listed below.
Tested
Windows 11 x64, GCC 15.2 / MinGW, Release, Ryzen 7 5800X. Fresh current-main dependency build with the existing FFmpeg static artifact reused,
ANYPS5_ENABLE_SPIRV_TOOLS=OFF.tools/check_conventions.py --base origin/main: passed.fc623324a: all ten focused tests pass (19.23 s), including #7652's host-code regression. Prepared publication and the new signal regression each pass ten repeats. A control that disables only the new lock-deferral check while retaining #7652 fails the owner assertion; restoring the check passes. An earlier test launched during an in-progress library rebuild was excluded and rerun after the build completed.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T23:01:59Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed