perf(agc): late-bind bindless heap entries and push title writes to them #28470
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28470"
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 17bryen on 2026-11-30T21:10:18Z.
What
With
APS5_BINDLESS_IMAGES=1(#20519), the texture service checks every entry of a served table on every heap draw and dispatch, under the GPU mutex. It also checks every entry at every present, and each present waits for the GPU. The cost is per entry, so it grows with table size. On PPSA38500 the story load's largest image tables, about 30,000 textures each, belong to mesh-path draws, which #20519 keeps on per-draw tables; this PR does not change them (see Tested). The same check serves two purposes: it notices a title CPU write, and it also fires when the driver itself stores a GPU result back into guest memory, after which the entry is rebuilt.The GPU never changes memory unannounced: every GPU write is a command the driver issued. Only the title's CPU does. This PR keeps each heap entry current from those two sources directly, instead of re-checking it per draw:
fetch_or, so a burst coalesces and cannot overflow; the heap's part of the fault handler takes no lock and allocates nothing, and libc's part holds only its own spin lock, which no holder keeps while storing to guest pages). GPU image writes and store-backs, which carry an image, are deduplicated per range and image. A serve drains them, finds the affected entries through a block index and re-proves only those.WindowsMappings, which already protects their subpages on every alias when it collects them, now pushes a notice from each write fault and host write for every alias, and an entry armed that way on all aliases is late-bound like a trapped one. Pages compared when shared, pinned or under a host write, and resident direct memory, are swept when write-watched (one collect at most once per ordering point) and otherwise keep the old per-serve check.Driver::AttachWindowand stays alive until teardown; its texture service hands the write notices back once it is idle (VulkanDevice::PrepareForReplacement), and only the owner can switch them off. The replaced service's worker is stopped there too, so it cannot commit into the new device's recorder, and a service whose worker cannot start gives the notices back.[late-binding]line counts these.APS5_NO_HEAP_LATE_BINDING=1restores the per-serve and per-present checks and the present wait.APS5_HEAP_WRITE_NOTICES=sweepleaves write-watched memory to one write-watch collect of the held ranges, at most once per ordering point, and traps only the rest.[late-binding]line is also printed from the end of a heap serve, sharing one 10 s period with the present path, so a load that presents nothing (PPSA38500's story load) still reports its counters.Armcounts a range before protecting it, so a store that races an arm or another thread's open is never declined. The retry count for a fault that finds its page writable restarts whenever the traps change, so a thread that keeps losing that race is not cut off. A page the traps hold armed reads as writable to the arena's logical protection, so the driver's own access checks and store-backs treat it as the guest does. A run whose write access cannot be restored stays armed. A host write to a shared view notifies the aliases again when it ends.VulkanDevice::dispatch(first commit). An overlapped dispatch run records no leading barrier, and its access list does not include the images a heap dispatch samples through its table, so a heap dispatch could run beside the dispatch that writes the image it samples. Heap dispatches now never join an overlapped run.Write-trap costs measured on the test machine (
windows_write_trap_cost, Ryzen 9 9950X3D, Windows 11 26200, medians of 5):Traps are the default: a frame that does not write a held texture pays nothing, while a sweep costs at least 0.46 ms per GiB held each time it runs, whether or not anything was written.
The
[late-binding]profile line reports, every 10 s: serves and their mean and max time, entries following an image / on a snapshot / on the old path (split into per-use, shared views and other), notices by kind, re-proves and their time, traps fired and handler time, sweeps, presents without a wait and misses repaired a present late.Not in this draft:
ResourceMaterializer::BindlessTables), which changes shader cache keys.mainwith #20519 as with this PR.This branch is its earlier head
25039bc2e74with #20519's current head27e873a41a6merged in (01ecdf528b2), plus one test commit (748bda38a41, the late-binding test's lazy path); its own commits are otherwise unchanged, and until #20519 merges the diff shows #20519's commits too. Against27e873a41a6the diff is 27 files, all this PR's own. The merge kept #20519's restructuredcommitPrepared, present-wait lock scope and worker stop, and adds this PR's write-trap arming,printLinesand notice release to them.Tested
Windows 11 Pro 26200, RTX 5090 (NVIDIA 617.14) and the AMD Radeon(TM) Graphics of the Ryzen 9 9950X3D (driver 26.11.2), WinLibs GCC 15.2.0, Release (
-O3 -DNDEBUG -g), validation layer 1.4.363.1.windows_write_trap_{arm,rearm,disarm,host,import,readtrap,reset,refused,threads,cost}pass (all butimportandcostrepeated 40 times; 8 threads in the threads mode);windows_mappings_notice(a write through one alias of a shared view notifies every alias, the written range stops reading as armed until the next collect, a host write notifies, compared-when-shared pages are not armed) passes.748bda38a41; the wider set at01ecdf528b2, which differs only in that test file) and at #20519's head27e873a41a6(onmainfc294cbbb53), built on the same machine, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer,ctest -j1 -V --timeout 300. The focused pattern is^(agc_driver_(texture_service|bindless|image_table|storage_flush_ordering|heap_device_replacement|nested_sampler_table|heap_late_binding|heap_notice_ownership)|agc_device_image_keys|windows_write_trap|windows_mappings_notice)(the last four groups are this PR's tests and do not exist at #20519's head). The wider pattern is^(agc_driver_(graphics|recorder|pipeline_journal|cached_image_multisample_guard|split_table_call_run|nested_image_table|pointer_[a-z_]*table)|agc_shader_(device_profile|memory)).VUID-VK_LOADER_DRIVERS_SELECT=*amd*,ANYPS5_GPU=AMD), defaultAPS5_BINDLESS_IMAGES=1for every test, RTX 5090APS5_BINDLESS_LAZY=1as well, RTX 5090APS5_BINDLESS_LAZY=1alone, RTX 5090was not found but was requested by env var VK_INSTANCE_LAYERS.agc_driver_pointer_phi_*_tabletests fail at #20519's head and here alike; they are #20519's heap path, not this PR.APS5_BINDLESS_LAZY=1a table is resolved from the misses of a finished batch, so the late-binding test runs each sample dispatch twice there with the driver idled between: the first read must be the resolved texel or a null read, and the second is checked as on the eager path. With lazy forced,agc_driver_heap_late_binding_heap_off(this PR's switchAPS5_NO_HEAP_LATE_BINDING=1, that is #20519's per-serve path) fails at a title write between two dispatches: the first dispatch reads the texel from before the write ("lane 1 sampled 0x1"). A lazy table is not decoded, so that path sees a title write only at the next present, as #20519's gaps entry states; with late binding on, the write trap re-proves the entry and the same step passes.4a308e3323): the focused pattern without the heap, 52 tests, 47 passed, 1 skipped by design, 5 failed; withAPS5_BINDLESS_IMAGES=1, 8 tests, 5 passed, 3 failed, the same withAPS5_NO_HEAP_LATE_BINDING=1. The layer was inserted in every log, with noVUID-orSYNC-HAZARD-line. Two causes:agc_driver_image_table_bindless(andagc_driver_image_tablewith the heap on) is the #20519 failure above.agc_driver_heap_late_binding,_heap,_heap_offand_heap_sweepfailed withreset 0x...+0x10000 outside the guest arena: on Linux the test took its texels from a plain anonymous mapping, outside the guest arena, so the evicted-region case'sGuestArenaResetrefused it, and that case and the two-queue case never ran. That was a test defect, not a driver one;ab9d12ed7atakes the blocks from the guest arena on both platforms and commits the block again after the reset. On Windows the four tests andagc_driver_texture_service_late_bindingpass with it, with noVUID-; the Linux rerun with it is pending. Write traps exist only on Windows, so on Linux every heap entry stays on the old per-serve check, and thewindows_*tests do not exist there.agc_driver_texture_service_late_binding(arm before resolve, a quiet serve checks only per-use entries, a title write re-proves only its surface and re-arms it, a GPU write into the viewed image is followed, a driver store-back of the viewed image re-proves nothing, a stray notice is ignored, a burst of 200,000 notices over one block re-proves only that surface, unarmable memory is swept when write-watched and otherwise stays on the old path) andagc_driver_heap_late_binding_{heap,heap_off,heap_sweep}: a GPU-written image sampled by a later dispatch with no CPU read between; the same after the title reads it back; a title write between two dispatches; a title write to a region whose device copy was dropped with its mapping; a store on one queue and a sample on another ordered by a label.agc_driver_heap_notice_ownership_heap: a device with the heap on is prepared for replacement and replaced; the notices move to the replacement and its predecessor's teardown leaves them on. It fails without the hand-over inPrepareForReplacement.agc_driver_texture_service_late_bindingpassed 200 of 200 runs at this head (748bda38a41,ctest --repeat until-fail:200 -Vwith the settings above; the layer inserted in all 200 runs, noVUID-); it also checks that the line prints from serves when no present comes, from the present path, and once per period across both.windows_read_trap_unknownfails on the base build the same way; #28028 addresses it.44fd218e2372, stack3f991f1e66aplus #28487's two commits) against the same plus this PR's commits (3de2d6d4d9db). The two lines below are the 70-80 s interval of each boot'ssummary_every 10capture, in the main menu before the story load. That menu runs at the 30 fps vsync limit with no heap entries live, so the pair shows that this PR costs nothing there (frame p50 33.366 against 33.364 ms) and does not show its effect, which is in the story load.[late-binding]line, now printed during the load, shows it acting on them: at the end of the load the heap held 514 entries, of which 139 follow a GPU-written image, 315 are late-bound snapshots, and 60 stay on the old per-serve check (58 shared guest views, 2 per-use); arms 452 (7.1 ms, 18,857 pages) as the tables filled; no traps fired and no sweeps; 5 entries were re-proved in the 10 s in which the load began (0.1 ms) and none after; serves averaged 0.20 ms (436 in 10 s, 87.9 ms, max 19.6 ms). Not shown: how much this saves. The mesh-only binary does not print serve time when no frame is presented, so its per-serve check cost during the load is not recorded. Its draw-side totals are dominated by graphics pipeline builds that the late-binding boot's cache copy already held (34-330 ms per commit in the windows with pipeline-cache misses, against 0 misses in the late-binding boot's first two load windows), so they are not comparable. Over the first 30 s of the load, which both boots reached, the late-binding boot recorded 5,569 draws against 2,137, at 0.95 against 2.0 ms of GPU mutex held per draw, and 0.75 against 0.61 ms of resource time per draw. Both stopped on the same unsupported sample-mask case (a known gap), 30 and 60 s into the load.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T21:13:58Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect was verified in the four source paths inspected; this is a COMMENT because most changed files and the title workload performance evidence remain unverified.
What I ran
Reviewed the prepared materials for head
c73da98277e06f0eb31118ecb21023163dfd4027. Usedrepo_read.pyto inspect selected ranges fromTextureService.cpp,GuestWriteWatch.cpp,VulkanDevice.cpp, andTextureService.hpp; used shell commands to inspect the prepared diff and file manifest. No build or tests were run. The author-reported test results were not independently verified.Results
Negative control
Not run; no tests were run.
Findings
Blocking
No blocking defect was established in the inspected source ranges. This does not cover the uninspected changed files.
Non-blocking
No code-level non-blocking finding is reported from the limited source review.
Sources
Not verified
At head, I inspected selected ranges of
core/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cpp,core/libs/prx/libc/src/GuestWriteWatch.cpp,core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp, andcore/libs/prx/libSceAgcDriver/Graphics/include/TextureService.hpp. The other 83 changed paths infiles.jsonwere not read. The 30 paths whose full text was omitted fromfiles/because of size were:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp,core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp,core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp,core/libs/prx/libc/src/GuestWriteWatch.cpp,core/shader/recompiler/CMakeLists.txt,core/shader/recompiler/DeviceImageTableAbi.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp,core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/Recompiler.cpp,core/shader/recompiler/Recompiler.hpp,core/shader/recompiler/ShaderDiskCache.cpp,core/shader/recompiler/ShaderDiskCache.hpp,core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp,core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp,core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvImageEmitter.hpp,core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp,core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp,core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp,core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp,core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp,core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp,docs/dev/ENVIRONMENT.md,docs/dev/debt/changes/perf-agc-bindless-heap.md, anddocs/dev/debt/changes/perf-agc-heap-late-binding.md. The review folder omitted these full texts by size; selected ranges were available through the reader. The PR description reports that title evidence for PPSA38500 and PPSA22969 is still in progress, and that evidence was not verified here.To get this to a good state
Nothing is required for the limited findings above. Optional: complete the full changed-file review and add the title workload captures and summary evidence before treating the performance claims as verified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T00:32:35Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared diff and metadata were inspected, but the pinned source reader could not complete its reads because it tried to append to the read-only run directory; title performance evidence is also still marked in progress.
What I ran
Inspected the prepared description, commits, manifest, file list, and portions of
diff.patchfor head67260323f69731e95b4bf5de8ab02145c87196c7. No tests or builds were run. Attempts to search pinned source withrepo_read.pyreturned matches but failed while logging becausereads.jsonlcould not be written.Results
Negative control
Not run; no tests were run.
Findings
Blocking
No blocking defect was established from the inspected material. The changed source was not reviewed completely.
Non-blocking
None established.
Not verified
Full head text for the changed source files, behavior beyond the inspected diff excerpts, and all test results. No changed source file was read in full. The PR description says title evidence for PPSA38500 and PPSA22969 is still in progress.
To get this to a good state
Nothing is required for the current comment. Optional: add the promised title captures and trace summaries to support the performance claims.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T06:16:13Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because I inspected only selected parts of the change, and the PR description says its title performance evidence is still in progress.
What I ran
Reviewed head
db0d5bc39a8e9b0d10c3616b40b6da22c5404cf3. I read the prepared description, commits, manifest and diff, then inspected selected source ranges withrepo_read.py. No tests or builds were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
No blocking finding is stated. The review is incomplete, so the broader change has not been assessed for blocking defects.
Non-blocking
None from the inspected source ranges.
Sources
Not verified
The manifest lists 93 changed files; I inspected selected source ranges in 3 of them. The other 90 changed files were not inspected. The prepared
files.jsonlists no rule exclusions; the manifest marks 33 full texts as too large for the review folder. I did not verify the reported test results, console behavior, or title performance evidence.To get this to a good state
Nothing is required by the inspected code. Optional: complete the title evidence described as in progress before requesting a formal review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T12:17:57Z.
Review: COMMENTED
Reviewed — no blocking findings
This is an incomplete review: I inspected selected late-binding code, and the PR description says title performance evidence is still in progress; I found no verified blocking defect in the inspected portion.
What I ran
Head:
4a308e3323616ba8118990da5f98cd2f2fbbfd7d. I did not run checks or tests. The commands used were read-only inspection of the prepared review materials and selectedTextureService.cpplines; no source was compiled.Results
Negative control
Not run.
Findings
Blocking
None verified in the inspected portion. This is not a conclusion that the full change is defect-free.
Non-blocking
The description says the PPSA38500/PPSA22969 title evidence is still in progress. Add the paired late-binding on/off results and trace summaries before treating the performance claim as supported.
Not verified
I read
description.md,commits.md,manifest.json,files.json, and portions ofdiff.patchandcore/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cpp. I did not read the other changed source files or complete the audit of the 93 reviewed files listed infiles.json. The manifest marks 29 files as too large for the review folder;files.jsonreports no rule-based exclusions. No tests, hardware behavior, or reported measurements were independently verified.To get this to a good state
Nothing is required. Optional: add the title performance evidence described above.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-01T12:33:31Z.
Review: COMMENTED
🏛️ Architecture findings (1)
Advisory architecture findings (1)
💬 Code review
Actionable comments posted (19)
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-01T12:34:36Z.
Review: COMMENTED
Review continued from previous batch...
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T06:51:49Z.
Review: COMMENTED
Reviewed — no blocking findings in sampled code
Nothing blocks this review; the points below are optional.
What I ran
Reviewed head
25039bc2e7456b625647106694013c8582005aae; no merged-preview check was run. I read the prepared description, commit list, manifest, and diff, and sampled source withrepo_read.py. No tests or builds were run.The reader emitted source excerpts but returned an error when it could not append its read log to the read-only run folder.
Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None verified in the inspected excerpts. This does not establish that the uninspected changes are free of blocking defects.
Non-blocking
None.
Sources
Not verified
The sampled source excerpts covered
TextureService.cpp(lines 1–200 and 600–799),GuestWriteWatch.cpp(2360–2419), andGuestArena.cpp(729–780). No changed file was read in full. The manifest lists 93 changed files: 61 have full text in the prepared folder and 32 were omitted because they were too large;files.jsonlists no rule-excluded files. The other changed files and the remaining portions of these three files were not reviewed. Tests, runtime behavior, and author-reported results were not independently verified.To get this to a good state
Nothing is required. Optional: review the remaining changed files before treating this as an approval.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-02T06:54:41Z.
Review: COMMENTED
Actionable comments
3d3a2c82-1bc6-4983-a347-883abbf5f4eaReviewing files that changed from the base of the PR and between
4a308e3323and25039bc2e7.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/TextureService.hppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cppcore/libs/prx/libSceAgcDriver/tests/execution/HeapLateBinding.cppcore/libs/prx/libSceAgcDriver/tests/execution/HeapNoticeOwnership.cppcore/libs/prx/libc/include/WindowsMappings.hppcore/libs/prx/libc/src/GuestArena.cppcore/libs/prx/libc/src/GuestWriteWatch.cppcore/libs/prx/libc/tests/cmake/windows_write_trap_tests.cmakecore/libs/tests/WindowsMappingsNotices.cppcore/libs/tests/WindowsWriteTraps.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T03:19:44Z.
Review: COMMENTED
Reviewed — no blocking findings
I could not justify approval because the review did not cover all changed files, and the reported PPSA38500 comparison does not measure the story load this change targets.
What I ran
Reviewed the prepared description, commit list, manifest, diff, and targeted excerpts from
TextureService.cppandTextureService.hppat head748bda38a41b0c75a0e3a885922044e9e8c3735e. No tests or builds were run. The test results in the description are author-reported.Results
Negative control
Not run.
Findings
Blocking
None verified.
Non-blocking
Sources
Not verified
The manifest lists 96 changed files. Targeted source excerpts were inspected for 2; the other changed files were not fully reviewed.
files.jsonmarks these 40 as too large to include infiles/:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp,core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp,core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp,core/libs/prx/libSceAgcDriver/tests/execution/PipelineJournal.cpp,core/libs/prx/libSceAgcDriver/tests/execution/SplitTableCallRun.cpp,core/libs/prx/libc/include/WindowsMappings.hpp,core/libs/prx/libc/src/GuestArena.cpp,core/libs/prx/libc/src/GuestWriteWatch.cpp,core/libs/tests/WindowsMappingsNotices.cpp,core/libs/tests/WindowsWriteTraps.cpp,core/shader/recompiler/BdaAbi.hpp,core/shader/recompiler/BindlessImageAbi.hpp,core/shader/recompiler/CMakeLists.txt,core/shader/recompiler/CacheKey.hpp,core/shader/recompiler/DeviceImageTableAbi.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp,core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/Recompiler.cpp,core/shader/recompiler/Recompiler.hpp,core/shader/recompiler/ShaderDiskCache.cpp,core/shader/recompiler/ShaderDiskCache.hpp,core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp,core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp,core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp,core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp,core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp,core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp,core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp,core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp,docs/dev/ENVIRONMENT.md,docs/dev/debt/changes/perf-agc-bindless-heap-gaps.md,docs/dev/debt/changes/perf-agc-bindless-heap.md, anddocs/dev/debt/changes/perf-agc-heap-late-binding.md. No platform tests or console behavior were independently confirmed.To get this to a good state
Nothing is required. Optionally add matched story-load performance captures and complete the review of the remaining changed files.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-03T03:27:14Z.
Review: COMMENTED
Actionable comments
Recordercan resolve its KHR commands.18fceacf-73cc-437d-a2df-7bdf436b69aaReviewing files that changed from the base of the PR and between
25039bc2e7and748bda38a4.core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BindlessTable.hppcore/libs/prx/libSceAgcDriver/Graphics/include/DescriptorHeap.hppcore/libs/prx/libSceAgcDriver/Graphics/include/TextureService.hppcore/libs/prx/libSceAgcDriver/Graphics/src/BindlessResolvers.cppcore/libs/prx/libSceAgcDriver/Graphics/src/BindlessTable.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DescriptorHeap.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DeviceImageKeys.cppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cppcore/libs/prx/libSceAgcDriver/tests/BindlessTable.cppcore/libs/prx/libSceAgcDriver/tests/DeviceImageKeys.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/TextureService.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bindless_images_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bindless_table_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_device_replacement_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_split_table_call_run_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_texture_service_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/HeapDeviceReplacement.cppcore/libs/prx/libSceAgcDriver/tests/execution/HeapLateBinding.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/ENVIRONMENT.mddocs/dev/debt/changes/perf-agc-bindless-heap-gaps.mddocs/dev/debt/changes/perf-agc-bindless-heap.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T14:30:46Z.
Review: COMMENTED
Ran the same image-table and GCN scalar buffer CTests on
mainand this head integrated using lavapipe. The scalar controls passed. The full image-table suite timed out on both runs. The branch's three late-binding fixtures passed with the heap on, with the heap off, and in sweep mode. The logs show the requested Khronos validation 1.4.369 being inserted, with no missing-layer diagnostic orVUID-messages. The Windows write-trap path remains outside this run.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.