graphics: add structured PM4 submission inspector #345
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!345
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/345/head"
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?
@Techx3 on GitHub · 2026-08-28 19:11 UTC · original
Techx3:techx3/pm4-submission-inspector→main· +1081 −3 · 9 files · 1 commits · closed without mergingSummary
Add an opt-in structured PM4 submission inspector alongside the existing text command-buffer dump.
When Command Buffer Dump is enabled, Kyty now writes one JSON trace per graphics or async-compute submission. Normal execution is unchanged when dumping is disabled.
Captured data
Known means the packet structure was decoded. It does not claim complete runtime semantics.
Safety and correctness
Verification
Tests cover direct and indirect registers, nested buffers, malformed and unknown packets, state persistence/reset, JSON schema, trace file output, and cross-kind queue isolation.
Scope
This PR intentionally excludes the later AGC resource-registration layer from the external branch because those ABI additions require separate validation. It also does not overlap the PM4 fuzzer in #302: that PR stress-tests packet walking, while this change produces deterministic semantic traces for real submissions.
The SDK 12 Shader Core ISA corpus confirms command-buffer interaction at a general level but does not document the private packet names used here. Accordingly, unsupported named opcodes are classified as Inferred, not Known.
Original work is retained through the commit co-author trailer.
@Nmzik on GitHub · 2026-08-29 07:05 UTC · original
We don't need that on the main branch. Keep it private as a debugging helper for yourself. I also deliberately avoid adding one-time debugging stuff to the project because I don't want to complicate the codebase.
Pull request closed