chore(agc): log the storage writeback submit and done lines only with APS5_DEBUG_LOG #12244
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12244"
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 Tehshortbus on 2026-10-28T04:39:07Z.
What
writeBackLayersinTexture.cppprintedStorageTexture writeback submitandStorageTexture writeback doneunconditionally, around the blocking submit of every storage image writeback. Both now useAPS5_LOG_CHARS_OUT_DEBUG, the macro the AGC driver's other per-operation lines use, so they are compiled out unlessAPS5_DEBUG_LOGis defined. Same approach as81c67e1beand #11423. +2/−2, no behaviour change.Tested
CachyOS Linux (kernel 7.3.0-4-cachyos), GCC 16.2.1, Release, NVIDIA GeForce RTX 4070 SUPER (615.78.08).
Focused tests,
main86fb985abband this change on it (c80bbd9eea, since rebased onto82d5f01f28with no other change):ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build-tests -V -R '^(agc_storage_idle_writeback_race|agc_storage_split_writeback|agc_storage_write_back|agc_storage_writeback_blocks|agc_driver_storage_write_back_no_window|agc_driver_storage_write_back_overhang|agc_driver_storage_write_back_overhang_draw_pipeline)$'mainVUID-lineswas not found but was requested by env var VK_INSTANCE_LAYERSStorageTexture writebacklinesThe 18 lines on
maincome fromagc_storage_idle_writeback_race(6),agc_storage_split_writeback(8) andagc_storage_writeback_blocks(4), so those three reach the changed lines; the other four pass on both without printing them.GTA V (PPSA04264 01.011.001).
mainstops 40–50 s after launch on #11425, so these runs usedmain86fb985abbwith #11580 (fedf3e91a7) merged locally, the base for both columns:StorageTexture writebacklines per runAll six runs reached gameplay, with no
[gpu] driver failure. The four warm base runs also hadAPS5_FRAME_CAPTUREset (it never started); the run with this change had onlyAPS5_TRACE_SUMMARY_EVERY.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pylists 44 open pull requests sharingTexture.cppthat it could not compare; I checked their diffs and none adds, removes or edits either line.Not checked: a build with
APS5_DEBUG_LOGdefined (the macro's debug branch is unchanged and already used elsewhere), and Windows or other GPUs.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T04:44:12Z.
Review: APPROVED
The change is limited to routing the two per-writeback messages through the existing debug-only logging macro. It leaves the submit/wait and writeback code unchanged. The reported Linux validation-layer run confirms the relevant storage tests pass with zero
VUID-lines and suppresses the target log lines; the hosted Windows job also completed successfully. TheAPS5_DEBUG_LOG-defined build was not tested, as stated.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T09:01:29Z.
Review: APPROVED
Both per-writeback log lines now use the same debug-only macro as other AGC per-operation diagnostics. The focused before/after run reports the same seven tests passing and zero validation errors, with the three tests that reach these call sites dropping from 18 log lines to none. This removes unconditional output without changing the writeback sequence. Current Windows and conventions checks pass. No blocking issue found.