chore(agc): log the storage upload submit and done lines only with APS5_DEBUG_LOG #12813
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12813"
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-29T10:52:56Z.
What
The synchronous upload in
Texture.cppprintedStorageTexture upload submitandStorageTexture upload doneunconditionally, around the blocking submit of every storage image upload. Both now useAPS5_LOG_CHARS_OUT_DEBUG, as the matching writeback lines do since #12244, so they are compiled out unlessAPS5_DEBUG_LOGis defined. +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:
mainf99d7fece3and this change on it (6eec740e13), withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build-tests -V -R '^(agc_driver_prepared_shaders_indirect|agc_driver_recorder|agc_driver_array_layer_target_cpu|agc_driver_depth_plane_partial_store_buffer_copy|agc_driver_image_table_cache|agc_recorder_cube|agc_storage_split_writeback|agc_driver_bc_block_copy|agc_driver_vertex_target_range_copied|agc_slice_dirty|agc_driver_staged_clear_sampled_read_draw_pipeline|agc_driver_depth_surface_from_storage)$'. These are the twelve tests that print the lines in a fullagc_run onmain(1,110 of 1,110 pass there). After rebasing onto365ad48546(head93568c8644;Texture.cppis unchanged onmainin between), the same twelve pass again with noVUID-line and noStorageTexture uploadline.mainVUID-lineswas not found but was requested by env var VK_INSTANCE_LAYERSStorageTexture uploadlinesPPSA26344 (02.002.000),
mainf99d7fece3and this change, one run each from launch, withanyps5-entitlements.inilisting the add-on label the title needs. Both runs stop about 116 s in on #12796, which this does not touch:StorageTexture uploadlinesmainGTA V (PPSA04264) takes no synchronous storage upload, so its logs have none of these lines on either build.
python3 tools/check_conventions.py --base origin/mainandgit diff --checkpass.Overlap and merge order: I merged each pull request
tools/pr_overlap.pylists with this PR, and separately withmain, and compared the conflicts inTexture.cpp, the only file this PR changes.APS5_LOG_CHARS_OUT_DEBUGwhere they end up:vkCmdPipelineBarriercall on the line beforeupload submitwithimageBarrier;if (batch)block;vkCmdPipelineBarriercall through the device function table.Texture.cppresult as merging withmain, either the same conflicts as withmain(#1368, #1395, #4448, #5609, #6187, #6188, #6192, #6197, #6209, #6280, #6481, #6960, #6971, #7256, #7604, #10064) or none in this file (#6977, #7514, #7642, #8246, #9432, #9508, #9891, #9892, #9893, #9895, #10193, #10249, #10472, #11280, #12070, #12662).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 BunnyFl on 2026-11-03T04:51:56Z.
Review: APPROVED
Still applies to current
mainf6232fcfda: both lines are unconditionalAPS5_LOG_CHARS_OUTatcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:3186and:3188.APS5_LOG_CHARS_OUT_DEBUG(core/libs/prx/libc/include/general/LogMacros.hpp:123,:126) prints only withAPS5_DEBUG_LOGand is((void)0)otherwise, so the submit/wait between them is unchanged.Windows 11, WinLibs GCC 15.2.0: the merged
Texture.cppcompiles with no warnings. I didn't run a storage-upload test; nothing outside the two log lines changes.