fix(agc): accept compute queue 0x58 on SubmitAcb #10307
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10307"
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 mazen320 on 2026-10-23T17:04:18Z.
What
Raise the exclusive compute-queue end from
0x58to0x59sosceAgcDriverSubmitAcbaccepts measured queue0x58.sceAgcDriverSubmitMultiAcbs,sceAgcDriverSubmitCommandBuffer, andsceAgcDriverSubmitMultiCommandBuffersstay 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
SubmissionCaptureerror buffer tochar[96]), then this PR. This head only switches that file's queue-end check toDriverDetail::SubmissionQueueEndand leaveschar 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 takeschar[96]from main.Tested
Linux (
babyhuey): headba2f78a472merged ontomain442c43a574(clean, local only) in theanyps5-buildCI image (Ubuntu 24.04, GCC 13, Release,BUILD_TESTING=ON), lavapipe withANYPS5_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 (mainitself also passes its full suite in that container).python tools/check_conventions.py --base upstream/mainRebased onto current
main(4c8da2996etip; 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) onupstream/maind7948b09f9and the prior head, both withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(Vulkan-ValidationLayers nightly Windows x64 viaVK_LAYER_PATH, implicit layers disabled withVK_LOADER_LAYERS_DISABLE=~implicit~),ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1. Loader log showsInsert instance layer "VK_LAYER_KHRONOS_validation"; neither log reportswas not found but was requested by env var VK_INSTANCE_LAYERS. Both passed; noVUID-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_driveron tipba2f78a472(135/136 NVIDIA; 133/136 AMD with 2 skips; sole failagc_host_import_cut_lifetimepre-existing #10746; control with main Submit path refuses 0x58)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)SubmissionCapturekeepsSubmissionQueueEndandchar[96])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 forsceAgcDriverSubmitMultiAcbs,sceAgcDriverSubmitCommandBuffer, andsceAgcDriverSubmitMultiCommandBuffersthrough the sharedSubmissionQueueEnd. 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 onif needed. TheSubmissionCapture.cppoverlap 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_testsonly on the changed head, without the required same-machinemainrun,VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1, layer-load confirmation, or comparison for newVUID-messages. Please add those results; hosted product jobs are skipped on this PR.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
a42f61dhas 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 inSubmissionCapture.cpp, where both change the error-buffer line. The PR body says it carries #7555'schar[96]change, while the checklist still saysDepends 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.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.cppconflict with #7555) is resolved on this head:23bdd9073fdrops thechar[96]change from this PR and leaves it to #7555, so the two no longer touch the same line, andDepends on: noneis accurate. The queue classification now usesSubmissionQueueEnd(0x59, SubmitAcb/ring/capture only);sceAgcDriverSubmitMultiAcbsand the command-buffer entrypoints stay at the0x58exclusive end.The merge queue refuses the PR while your
CHANGES_REQUESTEDis active, so could you re-review this head (or dismiss the request if you agree)? Nothing is needed from @mazen320.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:15:47Z.
Review: DISMISSED
I rechecked exact head
23bdd9073f. The measuredsceAgcDriverSubmitAcb(0x58)behavior is kept narrowly scoped, theMultiAcbsand command-buffer entrypoints remain unchanged, and the reported RTX 3080 main/head validation run is useful. The earlierchar[96]concern is not fully resolved for integration, though: a pairwisegit merge-treeof #10307 and still-open #7555 reports a content conflict inSubmissionCapture.cpp. The conflicting hunk contains both the queue-end line and the error-buffer declaration. The combined result must keepqueue < DriverDetail::SubmissionQueueEndandchar what[96].Please coordinate and record the merge order with #7555 (and keep
Depends onaccurate), then refresh this branch onto currentmainwhile preserving the debt updates. The touched production and test files have no post-base changes on currentmain, 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.