Skip to content

chore(agc): tag dispatch IO traces with queue origin - #7010

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
MarcZX10:codex/trace-dispatch-queue-origin
Oct 19, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
MarcZX10:codex/trace-dispatch-queue-origin

Conversation

@MarcZX10

Copy link
Copy Markdown
Contributor

What

Adds the queue ID and submission serial to each APS5_TRACE_DISPATCH_IO shader line. Those values identify which queue emitted the dispatch and match the identifiers used by [gpu] execute/done serial messages, addressing the attribution gap noted in #6284. This is diagnostic output only; it does not change dispatch behavior or claim to fix the reported AMD GPU hang.

Updates docs/dev/TRACING.md to describe the added fields.

Tested

  • Debian 12, GCC 12.2: compiled the changed Dispatch.cpp translation unit with the configured project compile command.
  • python3 tools/check_conventions.py --base upstream/main: passed.
  • python3 tools/pr_overlap.py --branch codex/trace-dispatch-queue-origin: no overlap with open pull requests.
  • git diff --check: passed.
  • The full libSceAgcDriver target did not complete: an unrelated current-main error in shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp (read.read->Flags<MemoryFlags>()) stops the build before the target finishes.
  • No runtime capture or GPU test was run.

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: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
PR 7332 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
PR 7417 docs/dev/TRACING.md
PR 7446 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
PR 7604 docs/dev/TRACING.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp

@github-actions github-actions Bot added docs agc libSceAgc* labels Oct 17, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor Author

I manually checked the overlap warnings for #5497, #5925 and #5958. Each touches Dispatch.cpp inside Driver::dispatch, but the hunks are distinct from this PR’s single [dispatch-io] formatting line: #5497 adds GPU key-fill recording around dispatch execution, #5925 adds a dispatch-cache early return, and #5958 changes shader invocation capture. No duplicate behavior is present. The automated comparison could not complete because of the base conflicts, so this is a manual file-level review rather than a clean merge test.

@adriadam10 adriadam10 self-assigned this Oct 19, 2026
@adriadam10
adriadam10 merged commit 4393456 into boykopovar:main Oct 19, 2026
9 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the new fields against Submission (queue uint32, serial uint64, both in scope in Driver::dispatch), the printf formats and the TRACING.md wording; trace-only change, no behaviour impact. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants