Repository navigation
fix(agc): identify programs in slow dispatch summaries - #23484
oneandonlydean merged 1 commit into
Conversation
|
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The changed summary uses the program address already stored by DispatchTimer, and the inspected call paths pass that timer the dispatch’s address.
What I ran
Reviewed head 8d8bf554bdf11768365a8e19823f902f586d24a2 using repo_read.py to inspect the prepared diff and targeted source lines. No tests or builds were run. The changed source file was read only in the relevant range; its full text was excluded because it is too large for the review folder.
Results
| Check | Result | Note |
|---|---|---|
| Diff and description | passed | One changed line |
| Targeted source review | passed | Address field and dispatch timer call paths inspected |
| Build and tests | not run | No independent run performed |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full VulkanDevice.cpp file and the author-reported builds, focused tests, GPU run, and merge-tree check were not independently verified. No other files were changed.
To get this to a good state
Nothing is required.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
What
Include the guest program address in the existing
APS5_PROFILE_DRAWslow-dispatch completion summary. A phase already prints the address when that phase exceeds one second, but a dispatch spending 100–1000 ms in resource upload only prints its group dimensions and SPIR-V word count. Repeated dispatches therefore cannot reliably be linked to the matchingshader_<address>.reqdump.This adds
program=0x...to the existing summary using the address already held byDispatchTimer. The 100 ms threshold, phase accounting and synchronization behavior are unchanged. No performance improvement is claimed.Overlap: the required branch scan inspected 2,002 open PRs and flagged 47 conflicting shared-file branches for manual review. Their exact source patches were compared; none changes this completion-summary attribution. The related hunks concern compute-pipeline creation. #16753 was also checked: its bookkeeping changes leave this summary without an address. No implementation from another PR is included.
Tested
Pinned main
1040e183a758versus change8d8bf554bdf1, same Linux machine and AMD Radeon RX 6650 XT (RADV Mesa 26.2.7, Linux 7.2.14-arch1-1), Khronos validation 1.4.363.4349fe5f2605), which forces a real copied allocation on this GPU. It links against each arm's own AGC SDK; public-header compatibility and binary hashes checked. This is supplemental test setup, not a production dependency. Other fixtures use their respective arm's frozen build.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer; complete CTest registrations, linkage and verbose logs are attached.e20e467101cais clean.A bounded Mortal Shell II (PPSA34008, discussion #8844) diagnostic completed in 242.6 s with exit 0. The new summary linked 103 slow dispatches across five program addresses to private captured requests; the most frequent program had 60 slow calls and upload phases up to 809.63 ms. Shared assets, normalized inputs, SDK bank and kernel setting remained unchanged; mounts were removed and no native process remained. Reviewed window captures are nearly black, with a skip prompt first and a faint menu later; gameplay/rendering correctness is not established. Request dumping and profiling alter timing, so this run is not a performance comparison.
Patch, complete focused-test logs, exact CTest registrations, source/binary provenance and selected native profiler lines, SHA-256
3ea9dd66c563c72577704ad670946a6a65ba2f06e32b2995e097abf8d2352570. Downloaded archive and all 30 payload hashes verified. Game code, shader requests, SPIR-V and full title logs remain private.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)