perf(agc): bind one texture for the dynamic-resolution variants of an image table surface #10256
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10256"
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 Capmare on 2026-10-23T15:56:34Z.
What
A game that renders at a dynamic resolution keeps several descriptors of one surface in an image table, one per extent. The extent sets the pitch, so only the descriptor that matches the newest GPU write reads the memory in its layout. Today every descriptor builds its own texture from the same guest bytes.
variantRepresentativesgroups the table's read-only elements by surface (address, bank xor, format, tile mode, dimension, mip range, layers). A group that holds more than one extent has a representative: the member whose extent matches the newest GPU write to the address (StorageTexture::LastWrite), else the extent of the active depth surface at the address (ActiveDepthExtent), else the largest accessible member.image_get_resinfoand to texel fetches; this is listed indocs/dev/debt/libSceAgcDriver.md.Related: #6099 describes the storage cache holding several times the guest memory for dynamic resolution. This change does not touch the storage cache.
Tested
BUILD_TESTING=ON, NVIDIA GeForce RTX 4070 SUPER, NVIDIA 615.71.09,ANYPS5_REQUIRE_VULKAN=1:ctest -j20on head9823e7ffe(main88795ed44merged in): 2384 tests, 1 fails:guest_mathaborts. It aborts onmain88795ed44too;agc_driver_image_table_variants(new) covers the representative choice (newest write, active depth surface, largest accessible), the rejected representative, and what a borrowing entry reads and reports for size;ctest -V -R ^agc_driver_image_tablewithVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandANYPS5_NO_SHADER_CACHE=1: 8 of 8 pass on the head, 7 of 7 onmain, 0VUID-errors in both (run on8fb5807f5).agc_driver_image_table_variantspasses on an RTX 4070 SUPER, a GTX 1650 SUPER and a Radeon RDNA2 iGPU (run by another contributor in the comments, on8fb5807f5).APS5_TRACE_FRAMES; numbers and digest are in the comment "Performance on the current base".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 (none added).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:34:54Z.
Review: CHANGES_REQUESTED
Reviewed the updated head
411523eaab. The current diff passes repository conventions and git diff --check. I could not run the GPU execution suite here: this environment has neither vulkaninfo nor /dev/dri. The posted execution and title runs are pinned tod55c90c9f7, before this branch merged main, so please rerun the focused image-table test and Vulkan validation on this head and identify any baseline failures there. The performance label still needs the matched main/change summary records and trace_digest output (or traces), including steady state; the current Windows measurements stop at the title splash screen and do not include those artifacts. Finally, pairwise merge-tree against open PR #6340 conflicts in ShaderResources.cpp. Please coordinate and record the landing order, preserve both changes, then repeat the affected tests and performance capture on the final combined head.