chore(agc): log texture creation only with APS5_DEBUG_LOG, except the sRGB copy #11423
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11423"
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-26T12:54:52Z.
What
Put four of the five remaining unconditional texture creation log sites in
Texture.cppbehindAPS5_DEBUG_LOG, as81c67e1bedid for the storage image and storage-viewed texture lines: the guest-memory texture line and its per-mip lines, and the repacked, block and depth copy-of-storage-image lines.The sRGB copy-of-storage-image line (
APS5_LOG_OUT(... sRGB copy of storage image ...)) stays unconditional. #7085 changes the lines directly above and below it (copyLevels = ...and theCreateExpandImagecall), and guarding it here makes a merge of the two heads conflict inTexture.cpp. It can follow once #7085 is merged or closed.GTA V (PPSA04264 v01.011.001) creates textures throughout gameplay; on
main30be9b428these lines were 68,694 of the 69,889 lines (98 %) of a 7-minute run's log, about 8 MB.Tested
CachyOS Linux (kernel 7.3.0-4-cachyos), NVIDIA GeForce RTX 4070 SUPER, driver 615.78.08.
main2db37cf1d; since rebased onto035ac96ed, whose 17 new commits don't touchTexture.cpp.mainand on this change,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R <pattern> -Vwithagc_driver_staged_clear_sampled_read,agc_driver_view_past_last_mip,agc_driver_resource_cache_replaced_texture,agc_driver_packed_mip_tail_target,agc_driver_image_repacked_float,agc_driver_recover_repack_allocation,agc_driver_bc_block_copy,agc_driver_depth_copy_draw,agc_depth_copy_kept_bytes: 9/9 pass on both. Neither log containswas not found but was requested by env var VK_INSTANCE_LAYERS; neither containsVUID-. Themainlog has 30Texture address=lines, 36 mip lines and 6 copy-of-storage-image lines; this change's log has none.Texture.cppalso compiles with-DAPS5_DEBUG_LOG.sRGB copy of storage imageline onmaineither); this PR does not change it.main2db37cf1dand this change stop about 50 s in withcompute shader 0x25b36a200: reads or writes a converted float image with 16-bit data, which is not implemented(shader recompiler, unrelated to this change). Up to that pointmainlogged 1,701 lines, 1,096 of them fromTexture.cpp; this change logged 619 and 605 lines in two runs, none fromTexture.cpp.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-26T12:58:37Z.
Review: CHANGES_REQUESTED
The measured log reduction and nine focused Vulkan tests on both base and changed builds are strong evidence for the changed paths; conventions, intake and labels pass, and this head is based on current
main035ac96edd.One scope gap remains. The sRGB sampled-texture constructor in
Texture.cppstill emits an unconditionalAPS5_LOG_OUTline (sRGB copy of storage image), while the title says sampled texture creation is logged only withAPS5_DEBUG_LOG. The PR body identifies this as intentionally omitted because #7085 changes nearby code. I checked the pairwise merge preview of these exact heads: it is clean, includingTexture.cpp, so #7085 does not appear to prevent changing this line. Please either guard this line too, or narrow the title and stated scope to make clear that sRGB-copy logging remains unconditional. The reported GTA V run did not exercise this branch, so itsnone from Texture.cppresult does not validate the exception.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T13:14:22Z.
Review: APPROVED
Reviewed head
ddab03671fa101033d06299516a53ee7c1486701against currentmain035ac96edd. The four in-scope texture creation/copy log sites are consistently guarded byAPS5_DEBUG_LOG; the title and body now explicitly leave the sRGB copy line out, addressing my prior scope concern. The reported base/change Vulkan validation runs cover the changed constructors, and the stated limitation that neither run reaches the sRGB path is clear. Conventions and label checks pass. I did not independently run the author-reported GPU tests.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T13:55:58Z.
Review: APPROVED
Reviewed head
ddab03671fa101033d06299516a53ee7c1486701against currentmain. The four guarded sites are texture diagnostics only; the values they previously logged remain used outside the guards, and the sRGB-copy line is deliberately unchanged. The path is limited toTexture.cpp, and the PR explains the conflict/ordering with #7085.git diff --checkandtools/check_conventions.py --base upstream/main --head upstream/pr-11423pass.The Vulkan regression matrix and GTA V log comparison in the description are author-reported; I did not reproduce them. Current hosted checks cover conventions and labels but do not run the AGC tests. I found no correctness issue in this logging-only diff.