test(agc): wait for target surface writes #6745

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/6745 into main
MarcZX10 commented 2026-10-16 09:09:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T09:09:36Z.


What

Fixes #6735. HoldPending treated any pending storage image as evidence that the just-submitted store for this surface had executed. Since submissions are asynchronous and earlier fixture cases can leave unrelated images pending, the helper could return before this surface had a live storage image; the subsequent ReadImage/FindLive check could then race the queue worker. It now waits for pending writes that overlap the surface under test.

Tested

  • python3 tools/check_conventions.py --base upstream/main — passed.
  • git diff --check — passed.
  • agc_driver_store_over_untracked_tests target built on Linux after temporarily applying the independent missing-template compiler fix from #6738; that unrelated line was removed before commit.
  • Focused CTest starts but aborts before the fixture runs: this host CPU lacks LZCNT, BMI1, BMI2, MOVBE, AVX2 and FMA.
  • No GPU runtime result is claimed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in technical debt
  • No notes, investigation files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a; no GPU runtime test was possible on this host
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4886094716 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6745). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T09:09:36Z. --- ### What Fixes #6735. `HoldPending` treated any pending storage image as evidence that the just-submitted store for this surface had executed. Since submissions are asynchronous and earlier fixture cases can leave unrelated images pending, the helper could return before this surface had a live storage image; the subsequent `ReadImage`/`FindLive` check could then race the queue worker. It now waits for pending writes that overlap the surface under test. ### Tested - `python3 tools/check_conventions.py --base upstream/main` — passed. - `git diff --check` — passed. - `agc_driver_store_over_untracked_tests` target built on Linux after temporarily applying the independent missing-`template` compiler fix from #6738; that unrelated line was removed before commit. - Focused CTest starts but aborts before the fixture runs: this host CPU lacks LZCNT, BMI1, BMI2, MOVBE, AVX2 and FMA. - No GPU runtime result is claimed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed in technical debt - [x] No notes, investigation files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a; no GPU runtime test was possible on this host - [x] AI-assisted: yes
MarcZX10 commented 2026-10-16 09:20:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T09:20:52Z.


Closing in favor of #6744 after reviewing its updated evidence. The author reproduced the reported failure on unchanged main, showed that 37 of 44 accepted waits lacked a live or pending image for the tested surface, then passed 100/100 fresh Windows GPU runs on the exact committed fix. That is stronger and more specific than my earlier Linux-only build evidence, and the PR isolates the tested surface by address and size. My PR’s diagnosis overlapped; no separate fix is needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212318545 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6745#issuecomment-6212318545). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T09:20:52Z. --- Closing in favor of #6744 after reviewing its updated evidence. The author reproduced the reported failure on unchanged main, showed that 37 of 44 accepted waits lacked a live or pending image for the tested surface, then passed 100/100 fresh Windows GPU runs on the exact committed fix. That is stronger and more specific than my earlier Linux-only build evidence, and the PR isolates the tested surface by address and size. My PR’s diagnosis overlapped; no separate fix is needed.

Pull request closed

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!6745
No description provided.