fix(agc): accept compute queue 0x58 on SubmitAcb #10307

Merged
mazen320 merged 4 commits from upstream-pr/10307 into main 2026-10-28 09:19:36 +00:00
mazen320 commented 2026-10-23 17:04:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-23T17:04:18Z.


What

Raise the exclusive compute-queue end from 0x58 to 0x59 so sceAgcDriverSubmitAcb accepts measured queue 0x58. sceAgcDriverSubmitMultiAcbs, sceAgcDriverSubmitCommandBuffer, and sceAgcDriverSubmitMultiCommandBuffers stay on the previous exclusive end (0x58) because those entrypoints were not measured on console. Debt entries are split accordingly and keep the title call-site / queue-construction notes from #10191.

Merge order with #7555: merge #7555 first (widens the SubmissionCapture error buffer to char[96]), then this PR. This head only switches that file's queue-end check to DriverDetail::SubmissionQueueEnd and leaves char what[64] for #7555; a pairwise preview can still conflict on that hunk until #7555 lands, after which a rebase keeps the queue-end change and takes char[96] from main.

Tested

  • Linux (babyhuey): head ba2f78a472 merged onto main 442c43a574 (clean, local only) in the anyps5-build CI image (Ubuntu 24.04, GCC 13, Release, BUILD_TESTING=ON), lavapipe with ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx. Fresh configure/build after merge; select_tests.py select / ninja -f select.ninja selected / --target libs / select_tests.py ctest --timeout 120: selected 1,465 tests all pass (main itself also passes its full suite in that container).

  • python tools/check_conventions.py --base upstream/main

  • Rebased onto current main (4c8da2996e tip; contains latest upstream/main) with the measured-API scope preserved.

  • Same machine (Windows, NVIDIA GeForce RTX 3080 driver 617.42): agc_driver_tests (Submit.cpp) on upstream/main d7948b09f9 and the prior head, both with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Vulkan-ValidationLayers nightly Windows x64 via VK_LAYER_PATH, implicit layers disabled with VK_LOADER_LAYERS_DISABLE=~implicit~), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1. Loader log shows Insert instance layer "VK_LAYER_KHRONOS_validation"; neither log reports was not found but was requested by env var VK_INSTANCE_LAYERS. Both passed; no VUID- messages on main or head (no new VUIDs). Hosted product jobs are skipped on this PR. No new GPU run after this main refresh (production/test files unchanged vs that validated head aside from leaving the capture error-buffer width to #7555).

  • Additional: @wachi35676 NVIDIA RTX 5070 Ti + AMD Radeon RDNA2 iGPU agc_driver on tip ba2f78a472 (135/136 NVIDIA; 133/136 AMD with 2 skips; sole fail agc_host_import_cut_lifetime pre-existing #10746; control with main Submit path refuses 0x58)

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 (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #7555 (merge #7555 first; combined SubmissionCapture keeps SubmissionQueueEnd and char[96])
  • Fixes: SubmitAcb rejecting measured compute queue 0x58
  • Unblocks: none
  • Silent stubs: none
  • GPUs tested: NVIDIA GeForce RTX 3080 (author, driver 617.42); NVIDIA RTX 5070 Ti + AMD Radeon RDNA2 iGPU (wachi35676 on tip ba2f78a472)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4986428962 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10307). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-23T17:04:18Z. --- ### What Raise the exclusive compute-queue end from `0x58` to `0x59` so `sceAgcDriverSubmitAcb` accepts measured queue `0x58`. `sceAgcDriverSubmitMultiAcbs`, `sceAgcDriverSubmitCommandBuffer`, and `sceAgcDriverSubmitMultiCommandBuffers` stay on the previous exclusive end (`0x58`) because those entrypoints were not measured on console. Debt entries are split accordingly and keep the title call-site / queue-construction notes from #10191. Merge order with #7555: merge #7555 first (widens the `SubmissionCapture` error buffer to `char[96]`), then this PR. This head only switches that file's queue-end check to `DriverDetail::SubmissionQueueEnd` and leaves `char what[64]` for #7555; a pairwise preview can still conflict on that hunk until #7555 lands, after which a rebase keeps the queue-end change and takes `char[96]` from main. ### Tested - Linux (`babyhuey`): head `ba2f78a472` merged onto `main` `442c43a574` (clean, local only) in the `anyps5-build` CI image (Ubuntu 24.04, GCC 13, Release, `BUILD_TESTING=ON`), lavapipe with `ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx`. Fresh configure/build after merge; `select_tests.py select` / `ninja -f select.ninja selected` / `--target libs` / `select_tests.py ctest --timeout 120`: selected 1,465 tests all pass (`main` itself also passes its full suite in that container). - `python tools/check_conventions.py --base upstream/main` - Rebased onto current `main` (`4c8da2996e` tip; contains latest upstream/main) with the measured-API scope preserved. - Same machine (Windows, NVIDIA GeForce RTX 3080 driver 617.42): `agc_driver_tests` (`Submit.cpp`) on `upstream/main` `d7948b09f9` and the prior head, both with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (Vulkan-ValidationLayers nightly Windows x64 via `VK_LAYER_PATH`, implicit layers disabled with `VK_LOADER_LAYERS_DISABLE=~implicit~`), `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`. Loader log shows `Insert instance layer "VK_LAYER_KHRONOS_validation"`; neither log reports `was not found but was requested by env var VK_INSTANCE_LAYERS`. Both passed; no `VUID-` messages on main or head (no new VUIDs). Hosted product jobs are skipped on this PR. No new GPU run after this main refresh (production/test files unchanged vs that validated head aside from leaving the capture error-buffer width to #7555). - Additional: @wachi35676 NVIDIA RTX 5070 Ti + AMD Radeon RDNA2 iGPU `agc_driver` on tip `ba2f78a472` (135/136 NVIDIA; 133/136 AMD with 2 skips; sole fail `agc_host_import_cut_lifetime` pre-existing #10746; control with main Submit path refuses 0x58) ### 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 (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #7555 (merge #7555 first; combined `SubmissionCapture` keeps `SubmissionQueueEnd` and `char[96]`) - [x] Fixes: SubmitAcb rejecting measured compute queue 0x58 - [x] Unblocks: none - [x] Silent stubs: none - [x] GPUs tested: NVIDIA GeForce RTX 3080 (author, driver 617.42); NVIDIA RTX 5070 Ti + AMD Radeon RDNA2 iGPU (wachi35676 on tip ba2f78a472) - [x] AI-assisted: yes
MarcZX10 commented 2026-10-23 19:26:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T19:26:56Z.

Review: CHANGES_REQUESTED


The reported console measurement supports sceAgcDriverSubmitAcb(0x58), but this diff also changes acceptance for sceAgcDriverSubmitMultiAcbs, sceAgcDriverSubmitCommandBuffer, and sceAgcDriverSubmitMultiCommandBuffers through the shared SubmissionQueueEnd. The current debt text says the multi-ACB path was not measured, and I see no console evidence for the command-buffer entrypoints. The new tests show that AnyPS5 now accepts those inputs; they do not establish that the console does. Please add evidence for each broadened entrypoint or keep acceptance limited to the behavior supported by the measurement, and make the debt entry describe the measured and unmeasured APIs separately.

This also edits the same debt entry as open #10191. The replacement drops that PR's useful title call-site addresses and queue-construction evidence; please retain those details while updating the measured result, and coordinate merge order/Depends on if needed. The SubmissionCapture.cpp overlap with #7555 is adjacent and appears mechanically resolvable, but please keep the queue-type classification and its error-buffer change together when rebasing.

Finally, this changes the AGC driver. The PR reports agc_driver_tests only on the changed head, without the required same-machine main run, VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, layer-load confirmation, or comparison for new VUID- messages. Please add those results; hosted product jobs are skipped on this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5633435137 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10307#pullrequestreview-5633435137). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T19:26:56Z. **Review:** CHANGES_REQUESTED --- The reported console measurement supports `sceAgcDriverSubmitAcb(0x58)`, but this diff also changes acceptance for `sceAgcDriverSubmitMultiAcbs`, `sceAgcDriverSubmitCommandBuffer`, and `sceAgcDriverSubmitMultiCommandBuffers` through the shared `SubmissionQueueEnd`. The current debt text says the multi-ACB path was not measured, and I see no console evidence for the command-buffer entrypoints. The new tests show that AnyPS5 now accepts those inputs; they do not establish that the console does. Please add evidence for each broadened entrypoint or keep acceptance limited to the behavior supported by the measurement, and make the debt entry describe the measured and unmeasured APIs separately. This also edits the same debt entry as open #10191. The replacement drops that PR's useful title call-site addresses and queue-construction evidence; please retain those details while updating the measured result, and coordinate merge order/`Depends on` if needed. The `SubmissionCapture.cpp` overlap with #7555 is adjacent and appears mechanically resolvable, but please keep the queue-type classification and its error-buffer change together when rebasing. Finally, this changes the AGC driver. The PR reports `agc_driver_tests` only on the changed head, without the required same-machine `main` run, `VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, layer-load confirmation, or comparison for new `VUID-` messages. Please add those results; hosted product jobs are skipped on this PR.
MarcZX10 commented 2026-10-23 20:13:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T20:13:32Z.

Review: CHANGES_REQUESTED


The measurement scope and matched validation findings from my earlier review are addressed in the updated description, and the current base a42f61d has no intervening changes to the focused AGC files since the reported baseline. One merge-order item remains: #7555 is still open, and a direct pairwise merge preview with this PR conflicts in SubmissionCapture.cpp, where both change the error-buffer line. The PR body says it carries #7555's char[96] change, while the checklist still says Depends on: none. Please coordinate that line with #7555's author, record the agreed order/dependency, and preserve the queue classification plus buffer fix in the combined result. I found no new issue in the measured queue behavior itself.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5633908660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10307#pullrequestreview-5633908660). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T20:13:32Z. **Review:** CHANGES_REQUESTED --- The measurement scope and matched validation findings from my earlier review are addressed in the updated description, and the current base `a42f61d` has no intervening changes to the focused AGC files since the reported baseline. One merge-order item remains: #7555 is still open, and a direct pairwise merge preview with this PR conflicts in `SubmissionCapture.cpp`, where both change the error-buffer line. The PR body says it carries #7555's `char[96]` change, while the checklist still says `Depends on: none`. Please coordinate that line with #7555's author, record the agreed order/dependency, and preserve the queue classification plus buffer fix in the combined result. I found no new issue in the measured queue behavior itself.
adriadam10 commented 2026-10-24 05:36:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T05:36:03Z.

Review: CHANGES_REQUESTED


@MarcZX10: the one open point of your second review (the SubmissionCapture.cpp conflict with #7555) is resolved on this head: 23bdd9073f drops the char[96] change from this PR and leaves it to #7555, so the two no longer touch the same line, and Depends on: none is accurate. The queue classification now uses SubmissionQueueEnd (0x59, SubmitAcb/ring/capture only); sceAgcDriverSubmitMultiAcbs and the command-buffer entrypoints stay at the 0x58 exclusive end.

The merge queue refuses the PR while your CHANGES_REQUESTED is active, so could you re-review this head (or dismiss the request if you agree)? Nothing is needed from @mazen320.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5637028012 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10307#pullrequestreview-5637028012). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-24T05:36:03Z. **Review:** CHANGES_REQUESTED --- @MarcZX10: the one open point of your second review (the `SubmissionCapture.cpp` conflict with #7555) is resolved on this head: `23bdd9073f` drops the `char[96]` change from this PR and leaves it to #7555, so the two no longer touch the same line, and `Depends on: none` is accurate. The queue classification now uses `SubmissionQueueEnd` (`0x59`, SubmitAcb/ring/capture only); `sceAgcDriverSubmitMultiAcbs` and the command-buffer entrypoints stay at the `0x58` exclusive end. The merge queue refuses the PR while your `CHANGES_REQUESTED` is active, so could you re-review this head (or dismiss the request if you agree)? Nothing is needed from @mazen320.
MarcZX10 commented 2026-10-24 21:15:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:15:47Z.

Review: DISMISSED


I rechecked exact head 23bdd9073f. The measured sceAgcDriverSubmitAcb(0x58) behavior is kept narrowly scoped, the MultiAcbs and command-buffer entrypoints remain unchanged, and the reported RTX 3080 main/head validation run is useful. The earlier char[96] concern is not fully resolved for integration, though: a pairwise git merge-tree of #10307 and still-open #7555 reports a content conflict in SubmissionCapture.cpp. The conflicting hunk contains both the queue-end line and the error-buffer declaration. The combined result must keep queue < DriverDetail::SubmissionQueueEnd and char what[96].

Please coordinate and record the merge order with #7555 (and keep Depends on accurate), then refresh this branch onto current main while preserving the debt updates. The touched production and test files have no post-base changes on current main, so I do not need a new GPU run solely for those unchanged files; rerun focused checks if the rebase changes the implementation or test. Hosted product jobs are skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640062146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10307#pullrequestreview-5640062146). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:15:47Z. **Review:** DISMISSED --- I rechecked exact head `23bdd9073f`. The measured `sceAgcDriverSubmitAcb(0x58)` behavior is kept narrowly scoped, the `MultiAcbs` and command-buffer entrypoints remain unchanged, and the reported RTX 3080 main/head validation run is useful. The earlier `char[96]` concern is not fully resolved for integration, though: a pairwise `git merge-tree` of #10307 and still-open #7555 reports a content conflict in `SubmissionCapture.cpp`. The conflicting hunk contains both the queue-end line and the error-buffer declaration. The combined result must keep `queue < DriverDetail::SubmissionQueueEnd` and `char what[96]`. Please coordinate and record the merge order with #7555 (and keep `Depends on` accurate), then refresh this branch onto current `main` while preserving the debt updates. The touched production and test files have no post-base changes on current `main`, so I do not need a new GPU run solely for those unchanged files; rerun focused checks if the rebase changes the implementation or test. Hosted product jobs are skipped.
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!10307
No description provided.