test(agc): keep untracked store surfaces alive through queued work #5790
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5790"
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 Amoenus on 2026-10-14T11:03:28Z.
What
Keep StoreOverUntracked's guest surfaces alive until submitted work finishes. Run can return Missed while a Store is queued; its local Surface then unregisters/frees the memory the worker will upload. A three-line scope guard calls AgcDriverWaitIdle before those surfaces are destroyed. The GPU mutex releases before the guard waits.
Found while validating the PPSA99902 bring-up integration. Unmodified main's public fixture also access-violates on Windows NVIDIA: reproduction and scope/#5789. This changes test cleanup only; it is not a title capability fix.
Related #5760 adds a second-store case to this fixture; this lifetime correction is independent of its production changes. The overlap bot names #5761, which is explicitly a combined test build and is not intended for merging. No dependency on that test build is required. Coordination with its author notes the cleanup ordering for the added case; #5760/#5761 are not validated by this PR's results.
Tested
Head260514de7672d7abe4b19e73afde95e1d70495bd, base main82f112d20f32c411068517e5087c96dbedc5729f. Win11 Enterprise26200, WinLibs GCC15.2.0r7/Ninja Release, bundled dependencies/SPIRV-Tools ON, testing ON. Full runtime libraries and the affected fixture built; conventions/registration/whitespace checks pass. No whole-application/full-suite result claimed.
Checklist