test(agc): keep untracked store surfaces alive through queued work #5790

Merged
Amoenus merged 1 commit from upstream-pr/5790 into main 2026-10-14 19:06:25 +00:00
Amoenus commented 2026-10-14 11:03:28 +00:00 (Migrated from github.com)

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.

  • Unmodified main3e control in the same checkout/build directory: NVIDIA failed an initial execution, then failed after nine passes in a separate repeat campaign; AMD passed20.
  • Original correction on main3e:100 serial passes on each GPU.
  • Rebased correction on main82:100 serial passes on each GPU (maximum0.395661s NVIDIA/0.326654s AMD), plus an initial focused pass. No CTest skips/timeouts;30s per process. The fixture blob is identical on the stock control and final base.
  • Vulkan required, AnyPS5 shader cache disabled, default GPL on; GPL-off/Linux not tested. Existing inner fixture branches may report that a case was not run when its prerequisites are unavailable.
  • Later main9d81b4f6c has a clean merge preview, which is unbuilt. The three-line topic is range-equivalent after rebase.

Checklist

  • Based on current main at frozen test start; later main merge preview clean; no other open PR implements this lifetime wait
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt (none added)
  • Unimplemented paths throw; no silent stub added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none (test reliability during PPSA99902 #4443 validation)
  • GPUs tested: NVIDIA GeForce RTX5080,610.62/32.0.16.1062; AMD Radeon(TM) Graphics1002:13c0,32.0.21036.18; Windows11 Enterprise26200
  • AI-assisted: yes (Codex); author responsible for every line
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4856888986 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5790). Originally posted by [Amoenus](https://github.com/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](https://github.com/boykopovar/AnyPS5/issues/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](https://github.com/boykopovar/AnyPS5/pull/5760#issuecomment-6166907111) 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. - Unmodified main3e control in the same checkout/build directory: NVIDIA failed an initial execution, then failed after nine passes in a separate repeat campaign; AMD passed20. - Original correction on main3e:100 serial passes on each GPU. - Rebased correction on main82:100 serial passes on each GPU (maximum0.395661s NVIDIA/0.326654s AMD), plus an initial focused pass. No CTest skips/timeouts;30s per process. The fixture blob is identical on the stock control and final base. - Vulkan required, AnyPS5 shader cache disabled, default GPL on; GPL-off/Linux not tested. Existing inner fixture branches may report that a case was not run when its prerequisites are unavailable. - Later main9d81b4f6c has a clean merge preview, which is unbuilt. The three-line topic is range-equivalent after rebase. ### Checklist - [x] Based on current main at frozen test start; later main merge preview clean; no other open PR implements this lifetime wait - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt (none added) - [x] Unimplemented paths throw; no silent stub added - [x] No notes, investigation .md files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none (test reliability during PPSA99902 #4443 validation) - [x] GPUs tested: NVIDIA GeForce RTX5080,610.62/32.0.16.1062; AMD Radeon(TM) Graphics1002:13c0,32.0.21036.18; Windows11 Enterprise26200 - [x] AI-assisted: yes (Codex); author responsible for every line
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5790
No description provided.