perf(shader): read each indirect image table descriptor once per pointer #25850
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25850"
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 Remi-Bon on 2026-11-22T19:23:51Z.
What
The image table snapshot reads an indirect column record by record, through the descriptor pointer each record holds. Many records hold the same pointer, and each one walked the hops and read the descriptor again.
This change has three parts:
readWordscall instead of dword by dword.Tested
ctest --test-dir build -R "image_table|materializ|resource_table|indirect": 66/66 passed, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer, validation layer from Vulkan SDK 1.4.363.1. The loader log showsInsert instance layer "VK_LAYER_KHRONOS_validation"and contains noVUID-.mainvs changetools/trace_digest.pycomparison:mainalone does not reach the scene. Guest word reads during split part capture fell about 7x. The single bulk read alone showed no measurable gain.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-11-22T19:32:12Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at head
61fb2a335b024575d9a33a6a0b7ffe12507f3af5has no verified blocking defect in the changed logic; execution checks were not run.What I ran
Read the prepared diff and the changed implementation at the pinned head. No build or tests were run.
Results
Findings
Blocking
None identified in the code read.
Non-blocking
None.
Not verified
Build, tests, and the author-reported Windows and console measurements were not independently verified. The review bundle reports
files.jsonas excluded/not available; the listing shows one changed file, and its full text was included and read. No other changed files were excluded.To get this to a good state
Nothing is required.