feat(agc): opt-in bindless image heap for sampled image tables #20519
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20519"
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 slopezjur on 2026-11-15T08:07:00Z.
What
Opt-in bindless image heap for sampled image tables (
APS5_BINDLESS_IMAGES=1, off by default). Today a draw or dispatch that reads a runtime image table gets a per-draw image array with one element per table entry (ShaderResources::resolveImageTables). With the heap on, sampled table images are read through one update-after-bind descriptor set and a published key table, and a texture service keeps the entries alive across draws.This is a port to
mainof the heap from theyotei/bestfork (discussion #675). The code is @Celegans12's, with the key table of @fable-void and @EagleBearerYS (from #7642, including EagleBearerYS's3aa9bc59c2) and @hritikutekar's work; the commits carry their co-author lines. @Celegans12 and @Pipodi agreed in #675 that this port goes up instead of #10193 / #13928 / #13929.Commits:
feat(agc): hashed device image key table:DeviceImageKeys,DeviceImageTableAbi.feat(agc): bindless image descriptor heap:DescriptorHeap,BindlessTable, the device feature probe,VulkanDevice::BindlessImagesEnabled. The heap is descriptor set 4 (BindlessImageAbi::HeapDescriptorSet), aftermain's split-state set 3. On a device without the descriptor indexing features or with fewer than 5 bindable descriptor sets, the switch is ignored with a message that names what is missing.feat(agc): serve sampled table images of compute shaders from the bindless heap: texture service, resolvers, compute lowering. Disk cache format 99.feat(agc): read graphics-stage image tables through the bindless heap.docs(agc): ENVIRONMENT rows.test(agc):agc_driver_image_table_bindlessruns the image table test with the heap on.fix(shader): the plan encoder writes a table column's dynamic flag where the decoder reads it. The rebase had put it after the required blocks, so a cached plan with a guarded descriptor source did not decode (agc_shader_descriptor_phis,agc_shader_memory,agc_shader_memory_coherent_atomic_loadsfailed on Windows CI).fix(agc): bound the texture service's refusal details: the first 64 refused keys keep their reason; later keys share one "details suppressed" entry instead of growing the list until the fault index overflows. A repeat refusal is counted once, and a key refused for a transient reason or dropped no longer counts as a kept refusal.test(agc): cover table S#s, heap lowering and runtime-address T#s: the review cases from @Celegans12 (sampler slots per filter and LOD-bias word, independent T#/S# indices, S#-only changes keeping the module and the heap slots, sampler refusals and the refusal cap, what the compiled module keeps off the heap), and the newagc_driver_image_table_runtime_address.docs(agc): move the bindless heap debt entry into a fragment:docs/dev/debt/changes/perf-agc-bindless-heap.md.fix(shader): update the Linux layout guards for the bindless cache fields: thesizeofguards inShaderDiskCache.cppthat only run on Linux x86_64 with libstdc++ still held the sizes from beforebindlessHeap,bindlessTablesandTableColumn::dynamic, so the Linux build failed (reported by domx4q; the CIlinuxjob was skipped). The encoders already wrote and read those fields; only the guards change. Onmainae0df0e03e, this branch's base, the sizes areCompiledShaderArtifact304,ShaderInvocation240,RecompileResult600 (grown by +8 frommain'sResultKeyMemo::raw),ImageResource244 (fieldCount<ImageResource>() == 53, combiningnestedTablewithmain'soverwritefrom #18369; reported by @DerKarussellbremser),DescriptorSource224,TableColumn120. Checked by compiling the structs with WinLibs GCC 15.2, which matchesmain's Linux values for every unchanged struct. domx4q's earlier Linux builds ofcae79630e3and2d7f1418e4confirmed the pre-ResultKeyMemo::rawvalues.test(agc): drop the unreachable heap-off branch of the runtime-address test:agc_driver_image_table_runtime_addressalways runs withAPS5_BINDLESS_IMAGES=1and skips on a device without the heap, so the branch that expectedmain's refusal never ran.fix(agc): keep bindless miss-ring stores out of the guest address store scan: a lazy lookup writes misses into the heap's miss ring and seen table through addresses read from the heap header (set 4, binding 3).SpirvStoresThroughAddressescounted those stores as stores through guest addresses, so every address-based build that could record a miss noted its whole leased heaps as possibly written, and later reads there waited for the GPU. Stores whose pointer is built from the header's two address words are now left out; any other physical store still counts. Four cases intests/BdaContracts.cpp(agc_driver_bda_device): the header store is not a guest store, the same pattern on another binding is, a header low word with a non-header high word is, and a header store next to a guest store still counts.test(agc): cover materialization through both image-table ABIs(@Scramblrrrr):agc_driver_bindless_imagesnow pins the per-draw ABI by unsettingAPS5_BINDLESS_IMAGES, and the newagc_driver_bindless_images_heapruns the same materialization with the heap on, asserting which ABI the recompiler chose. It keeps every artifact-reuse, guarded-output and lifetime comparison of the original case, soagc_driver_bindless_imagesno longer fails when the heap is forced on.test(agc): report the heap skip of the bindless images test: the--heapcase prints askipped, the device lacks ...line instead of returning the skip code without a reason.fix(agc): refuse the bindless present wait under the GPU lock:BindlessPresentWaitwaits for the present serial between its two GPU lock scopes. The GPU mutex is recursive, so a caller holding it would make that wait run under the lock. The presenter enters through the VideoOut flip exports, which hold no AGC lock; the wait now throws if that changes, like the draw pipeline's drain checks.test(agc): pin the emitted miss-ring stores against the guest store scan: every heap-lowered dispatch in the image table test checks its own module. It must write through addresses from the heap header,SpirvStoresThroughAddressesmust not count those writes, and with the header moved to another binding the same module must count them. A change to the shape the emitter writes now fails a test instead of making every lazy dispatch a guest store.fix(shader): refuse runtime descriptor addresses on images the heap does not serve: the resource analysis accepted them for nested, packed and BY images, and emission then failed (reported by theGodspeed1999). Analysis and materializer share one predicate. Tested on a nested table; packed and BY have no test of their own.fix(agc): don't replay bindless pipelines without the heap: with the heap off, the pipeline journal counts heap pipelines as rejected instead of failing each one, and keeps their records (reported by theGodspeed1999).test(agc): run a split-state program that reads the bindless heap: one compute program that binds set 3 and set 4.docs(agc): record the heap's set requirement and exact-mode budget.test(agc): accept the heap binding shape in the thread-dimension case:main's5d63dc4bc6added a case that requires a per-draw table binding, which failedagc_driver_image_table_bindlessfrom the merge ofmainon.fix(agc): keep bindless heap dispatches out of overlapped dispatch runs(cherry-picked from @17bryen'sa9a5c3f37a): excludes bindless heap dispatches from overlapped dispatch runs so heap transitions stay barrier-ordered.fix(shader): hash every compared ImageResource field in bindless interface ids: mixes all 53ImageResourcefields (includingoverwrite,gathered,layerRowsCompatible,maxArrayLayers,optionalDescriptor) inmixBindlessInterfacewith field-countstatic_asserts and collision regression tests inTextureService.cpp.fix(agc): refuse bindless entries whose base address is not mapped: alignsDriverBindlessResolver::PrepareandTextureService::checkMappingwithmain's454636b509(#27295) base-address mapping check.fix(shader): keep images paired with nested sampler tables off bindless heap: addsSamplerResource::nestedTable(disk-cache encoded,fieldCount<SamplerResource>() == 9,sizeof == 24; updatesreader.List(info.images, 236, ...)), excludes flat images paired with nested sampler tables in bothResourceTracker::LoweredImageandResourceMaterializer::BindlessImage, and removes unused<cstdio>inSpirvImageEmitter.cpp.fix(agc): harden bindless heap pool budget, probe order, and service state: movesBindlessStatsRequested()stderr printing outsideGpuMutex, rejects=0stats env values, startsDeviceImageKeys::Retain/growscans after an empty bucket to preserve wrapped cluster order, capsDescriptorHeapreservation againstmaxUpdateAfterBindDescriptorsInAllPools, and hardensTextureService(OptionsFromEnvironmentbounds, atomicreplacerollback on slot/table failure, pending-work preservation oncommitPrepared/commitTable/redecode/reverifyfailure,surfaceEpochinvalidation on resident rewrites, lazyperUserefresh, and requeuing initially unmapped exact tables).test(agc): tighten bindless test checks, CMake fragment, and docs: splitsagc_driver_split_table_call_run_bindlessintoagc_driver_split_table_call_run_tests.cmake, hardens Vulkan adapter/queue/ballot/barrier/host-read/ordering checks inBindlessTable.cpp,TextureService.cpp, andImageTable.cpp, and updatesENVIRONMENT.md+docs/dev/debt/changes/perf-agc-bindless-heap.md.fix(shader): skip unused NoSamplerClass bindless table priming for sampled-only images: avoids registering/refusing unusedNoSamplerClasskeys whenimage.sampledOnlyis true.Cherry-picked fixes from @17bryen (#28652):
fix(agc): stop a replaced device's texture service worker(500e8ade6b): stops the replaced device's service worker before teardown and guards worker commits (agc_driver_heap_device_replacement_heap).fix(agc): refresh a heap entry per use when a re-prove makes it per-use(4fdb0869fa): adds re-provedperUsekeys back intoperUseKeys(agc_driver_texture_service_per_use_gain).fix(agc): serve 1D reads of 1D arrays and depth-compare 1D surfaces from the heap(6d2246a8c1): matches the per-draw first-layer / 2D depth-compare view rules (agc_driver_texture_service_one_dimensional_array).fix(shader): give lanes the wave-uniform heap probe skips a miss, not a hit(109a1ff9c6),fix(shader): give a heap quad's fallback lanes the chosen lane's image and sampler slots(cd9ca805b0),fix(shader): treat an invalid sampler table entry as a heap miss(959850ed5a), andfix(shader): record a heap pointer-chain fault only for the image instruction's active lanes(fba486fd95).fix(agc): republish the heap key table after a batch's submit is discarded(e6b5e49980) +perf(agc): register the heap table's discard action once per batch(575116e64d).fix(agc): leave room in the heap's descriptor limits for a stage's own per-draw arrays(3ab766e3af, co-authored adaptation withmaxUpdateAfterBindDescriptorsInAllPoolspool fitting): reserves per-draw arrays inDescriptorHeap::DeviceCapacitiesand ignores the switch viaDescriptorHeap::Unfit/VulkanDevice::BindlessUnsupportedReasonwhen no room remains.test(agc)/build(agc)/docs(agc): owning target for generated heap lookup header (8f7d6e4829),BindlessUnsupportedReasonskip (f79f762f98), test env pinning (a3a4c7a627),BindlessStatsRequested()parity (14c6ec7c6f+fix(agc): reuse BindlessStatsRequested in DriverBindlessResolver), anddocs/dev/debt/changes/perf-agc-bindless-heap-gaps.md(fdd73fad1c,a394283fc5,6d08e46004).Related open pull requests:
#28483, #16472 and #16812 (@mrfelek carrying #9457, #9633, #9749, #9790 and #9969) go first, preserving the merge order agreed below; #7395 and #8939 have merged and this branch is rebased onto them. They conflict in
ControlFlowInfo.hpp,ShaderDiskCache.cpp,ResourceMaterializer.cpp,ResourceTracker.cppandImageTable.cpp, and every conflict resolves by keeping both sides; this branch rebases onto them as they land.#7642 (@EagleBearerYS, draft) serves table images through a device image table on the GPU heap (
APS5_GPU_PATH). The key table here comes from it.#9508 (Raghav314) is a GPU descriptor heap on
VK_EXT_descriptor_heap(APS5_GPU_HEAP), a different mechanism; nothing here is taken from it.#10193, #13928 and #13929 (@Celegans12) are replaced by this port, as agreed in #675.
#24305 (@janzezno) and #20018 have merged; this branch is rebased onto both (
Pipeline.cppkeeps bothAvoidsInterlockEpilog(context, shaders)andBindlessHeapStages(shaders) != 0u).Reading guide: the driver side is
DeviceImageKeys,DescriptorHeap,BindlessTable,TextureServiceandBindlessResolvers; the recompiler side isResourceMaterializer::BindlessImage/BindlessTablesand the lookup inSpirvImageEmitter.cpp(809 added lines). No review so far has read all ofSpirvImageEmitter.cpp; the latest ones read ranges of it.What stays on the per-draw path with the heap on (all in the debt fragment): storage image tables, nested tables, packed and BY table loads, fetch shaders and mesh pipelines. Packed and BY loads read 0 through the heap, which the packed table tests caught, so they are excluded.
Refused keys read as fault records that name their reason: multisampled images, comparison sampling of a color texture, unmapped surfaces, T#s that match no runtime mode, and table S#s with unnormalized coordinates, a
minormaxreduction, a border,ANISO_OVERRIDEor non-seamless cube filtering withoutVK_EXT_non_seamless_cube_map.Behaviour that differs with the heap on: a table key outside the captured snapshot reads the live descriptor instead of faulting, and a dispatch that stores into its own table is not refused.
APS5_BINDLESS_LAZY=1does not prime tables, so a key reads the null descriptor until the frame after its first miss (one-frame texture pop-in). Exact mode primes every key of a table it serves, and the budget only evicts idle entries afterwards, so priming can pin more than the budget.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release, NVIDIA GeForce RTX 4080 SUPER (driver 621.40), Vulkan SDK 1.4.363.0 validation layer.
Head
503eef76a7rebased ontomainae0df0e03e, both 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 -V -j 6:| Run | tests | failed | skipped | layer insert lines |
VUID-||---|---|---|---|---|---|
|
mainae0df0e03e, focused set | 80 | 0 | 0 | 87 | 0 || this PR
503eef76a7, focused set | 93 | 0 | 0 | 102 (8 heap creations) | 0 || this PR
503eef76a7, heap-on set withAPS5_BINDLESS_IMAGES=1| 13 | 0 | 0 | 15 (10 heap creations) | 0 |The 13 extra tests are all this PR's.
tools/check_skips.pypasses on all three JUnit outputs. No log containswas not found but was requested by env var VK_INSTANCE_LAYERS.python tools/check_conventions.pypasses;python tools/rebase_verify.pyconfirms 22 commits before and 22 after with only the expected conflict-resolution deltas.Not run on
503eef76a7: full^(agc_|shader_)sweep, Linux, AMD or Intel GPUs, and titles.Head
db756fce8erebased ontomainfc294cbbb5(with the same flags/environment andctest -V -j 6):VkLayer_khronos_validation.dll)VUID-mainfc294cbbb5, focused setdb756fce8e, focused setdb756fce8e, heap-on set withAPS5_BINDLESS_IMAGES=1python tools/check_conventions.py --base origin/main --head HEADandpython tools/check_skips.pypass on all three JUnit outputs with 0was not found. WinLibs GCC 15.2 struct check passes includingSamplerResource= 24 bytes (fieldCount == 9) andImageResource= 244 bytes (fieldCount == 53).Head
6c76755559onmainfc294cbbb5(after cherry-picking #28652 fixes and addressing CodeRabbit review findings,ctest -V -j 6withVK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1):VUID-/SYNC-HAZARD-6c76755559, default env (bindless|image_table|texture_service|device_image_keys|split_table_call|pipeline_journal|bda_device|shader_memory|heap_device_replacement)agc_driver_heap_device_replacementwhen heap is off)6c76755559,APS5_BINDLESS_IMAGES=1(bindless|image_table|heap_device_replacement)python tools/check_conventions.py --base origin/mainpasses with 0 errors and 0 occurrences ofwas not found.Earlier head
2d7f1418e4against its merge base,main87b7ef3891, both 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 -V -j 6:|
agc_andshader_tests only | tests | failed | skipped | tests inserting the layer |VUID-||---|---|---|---|---|---|
|
main87b7ef3891, all, each of two passes | 2098 | 1 | 23 | 1485 | 0 || this PR, all, each of two passes | 2111 | 1 | 23 | 1497 | 0 |
|
main87b7ef3891, focused set | 68 | 0 | 0 | 48 | 0 || this PR, focused set | 81 | 0 | 0 | 60 | 0 |
| this PR, heap-on set with
APS5_BINDLESS_IMAGES=1| 13 | 0 | 0 | 12 (8 created the heap) | 0 |The 13 extra tests are all this PR's. The 23 skips are the same tests in both rows.
The one failure in all four full passes is
agc_driver_store_over_untracked. Run alone it fails 25 of 25 times onmainand 25 of 25 on this PR, with the same assertion.One unexplained crash:
agc_driver_queued_constant_ram_dumpexited once with 0xc0000374 (heap corruption) in a full run ofad0fa4d6ab, which differs from this head by one test file. It passed the 948 later runs on the two heads and did not crash onmain. I did not find the cause, so I cannot rule out this PR.Focused set:
-R '^(agc_|shader_).*(bindless|texture_service|image_table|device_image_keys|descriptor_phis|disk_cache|bda|split|pipeline_journal)|^agc_shader_memory$'. Heap-on set:-R '^agc_driver_image_table(_bindless|_runtime_address)?$|^agc_driver_texture_service|^agc_driver_bindless_images|^agc_driver_split_table_call_run|^agc_driver_pipeline_journal_bindless_switch$|^agc_shader_bindless$'.No log contains
SYNC-HAZARD-orwas not found but was requested by env var VK_INSTANCE_LAYERS.Not run on this head: Linux, AMD or Intel GPUs, and any title.
tools/pr_overlap.pycould not confirm 137 file-level overlaps. Of those that touchResourceTracker.cpporPipelineJournal.cpp, a symbol search found only #22424 (stacked on this PR) on the new fixes' code; the rest were not read.An earlier description gave a wrong base and inflated test counts for
cae79630e3; see the correction.The tables below are from earlier heads and bases. Their layer columns count insert log lines, which is more than the number of tests or processes; earlier descriptions called them processes.
Every
agc_andshader_test onmain178944e753and on this branch rebased onto it (b442b09921), same machine, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer(ctest -R '^(agc_|shader_)' -V):| | tests | failed | layer inserted |
VUID-||---|---|---|---|---|
|
main178944e753| 1793 | 0 | 1615 lines | 0 || this PR, default environment | 1802 | 1 (see below) | 1622 | 0 |
| this PR on the previous base
4aa2f8b694,APS5_BINDLESS_IMAGES=1forced on every test (not rerun after the rebase) | 1782 | 16 | 1603 | 0 |The one failure in the default row is
agc_driver_dispatch_overlap_off: one access violation at process exit, a jump to a non-code address with the Vulkan loader and the validation layer on the stack and two capture hooks loaded in the process (graphics-hook64.dll,we-graphics-hook64.dll). It then passed 48 of 48 repeats on this branch under the same environment, 40 of them four at a time. I did not find the cause.No log contains
was not found but was requested by env var VK_INSTANCE_LAYERS.agc_driver_upload_cache_read_only_flushis "Not Run" in all three rows and not counted as failed above:tests/execution/UploadCacheReadOnlyFlush.cppdoes not compile on Windows onmain(setenv).The 10 new tests are
agc_device_image_keys,agc_driver_bindless_table,agc_driver_bindless_flag_off,agc_driver_bindless_flag_on,agc_driver_texture_service,agc_driver_texture_service_driver,agc_driver_texture_service_flag_off,agc_driver_texture_service_flag_on,agc_driver_image_table_bindlessandagc_driver_image_table_runtime_address(added after the wide rows).15 of the 16 failures with the heap forced on are tests whose messages assert the per-draw table path the heap replaces:
agc_driver_image_table_reuse(and its four variants),_variants,_array_views,_cache_bounds,agc_driver_bindless_images,agc_driver_descriptor_web_faults,agc_driver_lookup_log_fits_build,agc_driver_many_images,agc_driver_table_index_validation,agc_driver_prepared_shaders_abi_deferred_pixelandagc_driver_prepared_shaders_abi_deferred_registration_failure. ctest never sets the switch for them. I read the failure messages of the last six, not their code paths.The 16th,
agc_driver_dumped_constant_capture, failed once in that run and then passed 24 of 24 repeats under the validation layer, 12 with the heap on and 12 with it off.The fix commit was tested on its own: the three tests that failed on Windows CI pass with it.
Review commits at
b6fbe4b0a6, same machine and environment, the tests around the change (ctest -R 'bindless|texture_service|image_table|device_image_keys|agc_shader_memory$|agc_shader_descriptor_phis' -V):| | tests | failed | layer inserted |
VUID-||---|---|---|---|---|
| default environment | 42 | 0 | 39 lines | 0 |
|
APS5_BINDLESS_IMAGES=1onagc_driver_image_table,_bindless,_runtime_addressandagc_driver_texture_service*| 7 | 0 | 7 | 0 |The wide rows above were not rerun on
b6fbe4b0a6or later heads.Head
3233681320(onmain7ecbdbab07), same machine and environment, the same tests plusshader_disk_cache(ctest -R 'bindless|texture_service|image_table|device_image_keys|agc_shader_memory$|agc_shader_descriptor_phis|shader_disk_cache' -V):| | tests | failed | skipped | layer inserted |
VUID-||---|---|---|---|---|---|
| default environment | 51 | 0 | 0 | 43 lines | 0 |
|
APS5_BINDLESS_IMAGES=1onagc_driver_image_table,_bindless,_runtime_addressandagc_driver_texture_service*| 7 | 0 | 0 | 7 | 0 |That head was first run on Linux by domx4q afterwards: before
42c4144c84the branch did not build there.Ghost of Yōtei
PPSA26344 v02.002.000, DRS 1080p patch, Digital Deluxe "Press X" screen from a fresh save, warm shader cache, same host. One build for both rows:
maincc4e13836fmerged with #20017, #20018 and this branch before the fix commit (mergea13e0362e7, not this branch alone). Both runs hadAPS5_PROFILE_DRAW=1; the heap row addsAPS5_BINDLESS_IMAGES=1 APS5_BINDLESS_LAZY=1. The trace window starts 270 s into each run.| build | frame p50 | GPU busy per present |
|---|---|---|
|
main+ #20017 + #20018, heap off | 9,529 ms (3 presents in 20 s) | 1,153 ms || the same, heap on (lazy) | 476 ms (11 presents in 5 s) | 211 ms |
Without profiling the heap row runs at 2.3 fps (900 s run, frames 1194 to 2644). Earlier rows, on builds made from
main61f33fc26c, one 400 s run each:main+ #20017 + this PR without #20018 crawls after ~f980 (0-1 presents per 10 s). So on this title the heap needs #20018 to show a gain, and #20018 needs the heap. #20017 is in every row becausemainaborted before the scene in 2 of 3 runs without it. I did not run plainmainwith none of the three. Two of six of those earlier runs died during the load (an access violation at 45 s and an exit at 85 s); the load crash happens here on about one boot in four without this PR too. Not measured: the heap in exact (non-lazy) mode, other titles, AMD or Intel GPUs, Linux.Reported by reviewers on this PR, Yōtei v1.008, heap on in lazy mode, with #20018:
Pipodi, RTX 4090, Windows 11, head
6916aea789+ #20018 onmain7ecbdbab07, one binary for every run. Cold cache: heap on reached frame 810 at 2,246 s and then sat in shader compiles (16 compiles, 841 compile-seconds) until the 3,000 s cap; heap off reached frame 643 at the cap. Warm: heap on reached frame 1041 at 1,082 s with no crawl and stopped atmain's missing 10_11_11 unorm blend (#9748); heap off dropped to about 0.05 fps before frame 800 and stopped atmain'sGetImageResource dword 0 is not a valid runtime value. No heap refusals, noVUID-in a 100 s warm run under the validation layer.Shader cache, same binary: heap on 3.02 GB in 5,651 files (cold plus warm runs, to about frame 1040), heap off 2.81 GB in 5,445 files (to about frame 800); the cold runs alone wrote about 1.82 GB (to frame 810) and 1.98 GB (to frame 643). Keying on
bindlessImagesholds both variants when the switch changes, but per frame reached the heap-on cache is not larger.Celegans12, RTX 3080 Laptop, driver 621.14: no fatal and 0 refused keys, but the runs crawled before the title. Every crawling run in this thread, including Pipodi's one heap-on run with #9748, had #9748 merged in.
tools/trace_digest.py: heap offseconds 270:20 from present 970: 3 presents, frame p50 9529.3 / p90 9730.3 / p99 9730.3 / max 9730.3 ms, GPU busy 1152.9 ms per present
NVIDIA GeForce RTX 4080 SUPER, NVIDIA 621.14, Windows 10.0.26300, 3840x2160, commit a13e0362e720, dropped: no
Slowest frames (largest slices inside each, inclusive)
present 972: 9730.3 ms at 18504 ms: Driver.Packet (queue worker 0x0) 9659.0, Graphics.Draw (draw committer) 8719.5, Driver.Packet.dispatch (queue worker 0x0) 8437.1, Resources.Complete (draw committer) 8332.3
present 970: 9529.3 ms at 0 ms: Driver.WorkerWait (queue worker 0x51) 9516.5, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 9516.5, Driver.Packet (queue worker 0x0) 9454.3, Driver.WorkerWait (queue worker 0x48) 9389.5
present 971: 8975.1 ms at 9529 ms: Driver.WorkerWait (queue worker 0x51) 8962.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 8962.9, Driver.Packet (queue worker 0x0) 8923.2, Driver.WorkerWait (queue worker 0x48) 8835.2
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
present 972: 9730.3 ms at 18504 ms, persistence 755.2 ms
present 970: 9529.3 ms at 0 ms, persistence 554.2 ms
Threads (ms per frame)
| thread | busy | wait | untraced | in slices < 20 us | largest |
|---|---|---|---|---|---|
| title | 4.7 (0 %) | 0.2 (0 %) | 9406.6 | 0.6 | Shader.ResolveGraphicsStagesAbi 4.5, Shader.ResolveAbi 0.1 |
| queue worker 0x0 | 8897.8 (95 %) | 480.6 (5 %) | 33.3 | 110.6 | Driver.Packet 9345.5, Driver.Suspend 0.0 |
| queue worker 0x20 | 62.9 (1 %) | 6729.3 (72 %) | 2619.4 | 3.9 | Driver.Packet 1155.2, Driver.EndSubmission 0.0 |
| queue worker 0x52 | 9.2 (0 %) | 6755.9 (72 %) | 2646.5 | 0.4 | Driver.Packet 1077.8, Driver.EndSubmission 0.3 |
| queue worker 0x53 | 0.9 (0 %) | 6760.7 (72 %) | 2650.0 | 0.1 | Driver.Packet 1067.2, Driver.EndSubmission 0.0 |
| title | 3.8 (0 %) | 1.7 (0 %) | 9406.1 | 0.7 | Shader.ResolveGraphicsStagesAbi 3.6, Shader.ResolveAbi 0.2 |
| title | 0.1 (0 %) | 0.0 (0 %) | 9411.5 | 0.2 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 |
| title | 3.9 (0 %) | 0.3 (0 %) | 9407.3 | 0.7 | Shader.ResolveGraphicsStagesAbi 3.7, Shader.ResolveGraphicsAbi 0.1 |
| queue worker 0x30 | 231.5 (2 %) | 6653.0 (71 %) | 2527.0 | 0.7 | Driver.Packet 1425.7, Driver.EndSubmission 0.0 |
| queue worker 0x38 | 244.4 (3 %) | 6594.2 (70 %) | 2573.0 | 1.8 | Driver.Packet 1276.7, Driver.EndSubmission 0.0 |
| queue worker 0x48 | 133.5 (1 %) | 6102.4 (65 %) | 3175.6 | 0.5 | Driver.Packet 150.4, Driver.EndSubmission 1.2 |
| draw committer | 8456.7 (90 %) | 53.1 (1 %) | 901.7 | 13.6 | Graphics.Draw 8431.7, Recorder.Submit 11.0 |
| presenter | 11.2 (0 %) | 2.4 (0 %) | 9398.0 | 0.0 | VideoOut.Flip 13.6 |
| title | 3.8 (0 %) | 2.1 (0 %) | 9405.7 | 0.7 | Shader.ResolveGraphicsStagesAbi 3.5, Shader.ResolveGraphicsAbi 0.2 |
| title | 4.6 (0 %) | 1.3 (0 %) | 9405.7 | 0.8 | Shader.ResolveGraphicsStagesAbi 4.5, Shader.ResolveAbi 0.1 |
| title | 0.1 (0 %) | 0.0 (0 %) | 9411.4 | 0.3 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 |
| title | 3.8 (0 %) | 0.2 (0 %) | 9407.6 | 0.6 | Shader.ResolveGraphicsStagesAbi 3.7, Shader.ResolveAbi 0.1 |
| title | 0.2 (0 %) | 1.4 (0 %) | 9410.0 | 0.3 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsAbi 0.1 |
| title | 5.1 (0 %) | 1.9 (0 %) | 9404.6 | 0.6 | Shader.ResolveGraphicsStagesAbi 4.9, Shader.ResolveAbi 0.1 |
| title | 0.1 (0 %) | 0.0 (0 %) | 9411.5 | 0.2 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 |
| queue worker 0x51 | 3.8 (0 %) | 6765.3 (72 %) | 2642.5 | 0.1 | Driver.Packet 9.4, Driver.EndSubmission 1.5 |
| queue worker 0x50 | 34.9 (0 %) | 9376.4 (100 %) | 0.3 | 0.9 | Driver.Packet 8319.3 |
| gpu | 1686.4 (18 %) | 0.0 (0 %) | 7725.2 | 0.0 | batch 1682.2, draw 4.0 |
Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 42006.2, Driver.WorkerWait.idle_and_completion_poll 42006.2, Driver.Packet 23827.2, Driver.Packet.memory_wait 13228.7, Driver.Packet.dispatch 10098.1, Resources.Complete 8729.0, Graphics.Draw 8431.7, Graphics.Draw.draw_and_resource_release 8119.6, Driver.Dispatch 1801.9, batch 1682.2, GpuMutex.wait.dispatch 735.6, Vulkan.Dispatch 655.5
Longest waits
Driver.WorkerWait (queue worker 0x51) 10106.3 ms at 10193 ms, present 971
Driver.WorkerWait (queue worker 0x48) 9375.4 ms at 179 ms, present 970
Driver.WorkerWait (queue worker 0x51) 9264.8 ms at 916 ms, present 970
Driver.WorkerWait (queue worker 0x48) 8838.8 ms at 9694 ms, present 971
Driver.WorkerWait (queue worker 0x53) 8665.5 ms at 892 ms, present 970
Driver.WorkerWait (queue worker 0x52) 8657.6 ms at 900 ms, present 970
Driver.WorkerWait (queue worker 0x20) 8584.2 ms at 975 ms, present 970
Driver.Packet.memory_wait (queue worker 0x50) 8576.7 ms at 909 ms, present 970
Driver.WorkerWait (queue worker 0x38) 8450.4 ms at 1104 ms, present 970
Driver.WorkerWait (queue worker 0x53) 8374.5 ms at 10163 ms, present 971
Driver.WorkerWait (queue worker 0x52) 8357.8 ms at 10180 ms, present 971
Driver.WorkerWait (queue worker 0x30) 8315.3 ms at 1239 ms, present 970
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
batch 28710: 1492.1 ms at 24463 ms, present 972: GPU no ranges; recorded by Recorder.Submit (draw committer) 0.1
batch 28706: 63.2 ms at 24025 ms, present 972: GPU no ranges; recorded by Recorder.Submit (draw committer) 0.6
batch 28545: 60.6 ms at 17520 ms, present 971: GPU no ranges; recorded by Recorder.Submit (draw committer) 0.4
batch 28711: 59.4 ms at 26104 ms, present 972: GPU no ranges; recorded by Recorder.Submit (draw committer) 0.4
batch 28418: 58.9 ms at 8445 ms, present 970: GPU no ranges; recorded by Recorder.Submit (draw committer) 0.3
tools/trace_digest.py: heap onseconds 270:5 from present 1178: 11 presents, frame p50 476.5 / p90 489.4 / p99 506.8 / max 506.8 ms, GPU busy 210.9 ms per present
NVIDIA GeForce RTX 4080 SUPER, NVIDIA 621.14, Windows 10.0.26300, 3840x2160, commit a13e0362e720, dropped: no
Slowest frames (largest slices inside each, inclusive)
present 1185: 506.8 ms at 3300 ms: Driver.WorkerWait (queue worker 0x51) 493.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 493.1, Driver.WorkerWait (queue worker 0x48) 492.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 492.4
present 1179: 489.4 ms at 449 ms: Driver.WorkerWait (queue worker 0x48) 476.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 476.9, Driver.WorkerWait (queue worker 0x51) 473.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 473.9
present 1182: 483.0 ms at 1860 ms: Driver.WorkerWait (queue worker 0x48) 471.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 471.4, Driver.WorkerWait (queue worker 0x51) 467.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 467.2
present 1183: 478.6 ms at 2343 ms: Driver.WorkerWait (queue worker 0x48) 465.6, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 465.6, Driver.Packet (queue worker 0x0) 460.7, Driver.WorkerWait (queue worker 0x51) 459.5
present 1184: 478.0 ms at 2822 ms: Driver.WorkerWait (queue worker 0x48) 465.3, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x48) 465.3, Driver.WorkerWait (queue worker 0x51) 465.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x51) 465.2
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
present 1185: 506.8 ms at 3300 ms, persistence 61.2 ms
present 1179: 489.4 ms at 449 ms, persistence 43.7 ms
present 1187: 474.3 ms at 4268 ms, persistence 13.5 ms
present 1182: 483.0 ms at 1860 ms, persistence 5.0 ms
Threads (ms per frame)
| thread | busy | wait | untraced | in slices < 20 us | largest |
|---|---|---|---|---|---|
| title | 0.1 (0 %) | 4.5 (1 %) | 468.2 | 0.4 | Recorder.Submit 0.0, Shader.ResolveAbi 0.0 |
| queue worker 0x0 | 228.4 (48 %) | 234.7 (50 %) | 9.7 | 53.2 | Driver.Packet 448.1, Driver.Completion 0.0 |
| queue worker 0x52 | 7.6 (2 %) | 433.8 (92 %) | 31.4 | 0.7 | Driver.Packet 90.7, Driver.EndSubmission 0.4 |
| queue worker 0x53 | 0.7 (0 %) | 440.3 (93 %) | 31.8 | 0.2 | Driver.Packet 83.9, Driver.EndSubmission 0.2 |
| queue worker 0x20 | 118.0 (25 %) | 334.6 (71 %) | 20.2 | 7.8 | Driver.Packet 215.5, Driver.EndSubmission 0.1 |
| title | 0.1 (0 %) | 1.0 (0 %) | 471.6 | 0.2 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 |
| title | 0.1 (0 %) | 0.9 (0 %) | 471.8 | 0.2 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveAbi 0.0 |
| title | 0.1 (0 %) | 0.9 (0 %) | 471.8 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 |
| queue worker 0x30 | 192.1 (41 %) | 275.7 (58 %) | 5.0 | 1.8 | Driver.Packet 400.7, Driver.EndSubmission 0.0 |
| queue worker 0x38 | 90.1 (19 %) | 367.8 (78 %) | 14.9 | 4.0 | Driver.Packet 272.4, Driver.EndSubmission 0.1 |
| queue worker 0x48 | 8.1 (2 %) | 425.0 (90 %) | 39.6 | 1.6 | Driver.Packet 12.6, Driver.EndSubmission 0.1 |
| draw committer | 76.9 (16 %) | 10.8 (2 %) | 385.1 | 5.2 | Graphics.Draw 74.6, Vulkan.DrawFromRecipe 2.0 |
| presenter | 0.8 (0 %) | 9.1 (2 %) | 462.9 | 0.1 | VideoOut.Flip 9.9 |
| title | 0.1 (0 %) | 0.9 (0 %) | 471.8 | 0.2 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 |
| title | 0.1 (0 %) | 1.0 (0 %) | 471.7 | 0.2 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveAbi 0.0 |
| title | 0.8 (0 %) | 1.0 (0 %) | 470.9 | 0.2 | Shader.ResolveAbi 0.8, Shader.ResolveGraphicsStagesAbi 0.0 |
| title | 0.0 (0 %) | 1.1 (0 %) | 471.6 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 |
| title | 0.2 (0 %) | 0.9 (0 %) | 471.7 | 0.2 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsAbi 0.0 |
| title | 0.1 (0 %) | 1.2 (0 %) | 471.5 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 |
| title | 0.1 (0 %) | 1.0 (0 %) | 471.7 | 0.1 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 |
| queue worker 0x51 | 9.2 (2 %) | 434.3 (92 %) | 29.2 | 0.3 | Driver.Packet 14.0, Driver.EndSubmission 0.2 |
| queue worker 0x50 | 20.6 (4 %) | 452.0 (96 %) | 0.2 | 1.4 | Driver.Packet 367.7 |
| gpu | 192.9 (41 %) | 0.0 (0 %) | 279.8 | 0.0 | batch 192.9, label-run 0.0 |
Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 2166.2, Driver.WorkerWait.idle_and_completion_poll 2166.1, Driver.Packet 1905.7, Driver.Packet.memory_wait 1105.6, Driver.Packet.dispatch 726.9, Driver.Dispatch 546.0, batch 192.9, Vulkan.Dispatch 174.3, Driver.Dispatch.capture_resources 133.4, Vulkan.Dispatch.shader_resources 123.6, Resources.Complete 116.7, GpuMutex.wait.hook 90.3
Longest waits
Driver.WorkerWait (queue worker 0x48) 496.0 ms at 3322 ms, present 1185
Driver.WorkerWait (queue worker 0x51) 495.1 ms at 3428 ms, present 1185
Driver.WorkerWait (queue worker 0x51) 492.5 ms at 2465 ms, present 1183
Driver.WorkerWait (queue worker 0x51) 491.7 ms at 4375 ms, present 1187
Driver.WorkerWait (queue worker 0x48) 482.3 ms at 2364 ms, present 1183
Driver.WorkerWait (queue worker 0x48) 470.1 ms at 1416 ms, present 1181
Driver.WorkerWait (queue worker 0x51) 468.5 ms at 571 ms, present 1179
Driver.WorkerWait (queue worker 0x48) 465.9 ms at 483 ms, present 1179
Driver.WorkerWait (queue worker 0x51) 464.3 ms at 1517 ms, present 1181
Driver.WorkerWait (queue worker 0x48) 463.5 ms at 4289 ms, present 1187
Driver.WorkerWait (queue worker 0x48) 452.9 ms at 1898 ms, present 1182
Driver.WorkerWait (queue worker 0x48) 448.8 ms at 2859 ms, present 1184
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
batch 70052: 18.0 ms at 3103 ms, present 1184: GPU staging-out 2.2, staging-in 2.2, dispatch-trail 1.8; recorded by Driver.Dispatch (queue worker 0x30) 20.4, Driver.Packet (queue worker 0x30) 12.1, Driver.Packet.memory_wait (queue worker 0x30) 11.8, Driver.Dispatch.materialize (queue worker 0x30) 11.6
batch 69471: 16.8 ms at 1194 ms, present 1180: GPU staging-in 2.4, staging-out 2.0, dispatch-trail 1.7; recorded by Driver.Dispatch (queue worker 0x30) 18.9, Driver.Dispatch.materialize (queue worker 0x30) 11.0, Driver.Dispatch.capture_resources (queue worker 0x30) 7.7, Driver.Packet (queue worker 0x30) 7.4
batch 70630: 16.6 ms at 5018 ms, present 1188: GPU staging-in 2.5, staging-out 2.2, dispatch-trail 1.5; recorded by Driver.Packet (queue worker 0x0) 2.6, Driver.Packet.dispatch (queue worker 0x0) 2.4, Driver.Dispatch (queue worker 0x0) 1.8, Vulkan.Dispatch (queue worker 0x0) 0.2
batch 69178: 15.7 ms at 266 ms, present 1178: GPU staging-in 2.2, staging-out 2.0, dispatch-trail 1.2; recorded by Driver.Dispatch (queue worker 0x30) 18.3, Driver.Dispatch.materialize (queue worker 0x30) 10.7, Driver.Dispatch.capture_resources (queue worker 0x30) 7.4, Driver.Packet (queue worker 0x30) 6.5
batch 70344: 15.1 ms at 4078 ms, present 1186: GPU staging-in 2.4, staging-out 2.1, draw 0.8; recorded by Driver.Packet (queue worker 0x0) 139.7, Driver.Packet.memory_wait (queue worker 0x0) 134.5, Driver.Packet.dispatch (queue worker 0x0) 4.4, Driver.Dispatch (queue worker 0x0) 4.3
Ghost of Yōtei, miss-ring store fix (
2868dd086a)Same host, NVIDIA 621.24, v02.002.000, warm caches, heap on in lazy mode. Both arms are one throwaway stack,
maincb28e72762+ #20018 + this PR at6916aea789+ #21501 + #22424 + #21303, with my local measurement code inactive (no switch set); the only difference between the arms is this commit. 340 s runs, one process at a time, arms alternated over 4 rounds; three runs died in the load crash described above. Frame rate from the per-2 s summary lines:| window | without the fix | with the fix |
|---|---|---|
| PS Studio intro animation, 2-18 s after the first present | 28.12 (28.43, 28.53, 27.25, 28.27) | 29.49 (29.36, 29.71, 29.55, 29.34) |
| second intro segment, 21-28 s | 22.24 (22.35, 22.49, 21.76, 22.35) | 22.93 (22.74, 23.09, 22.91, 22.96) |
| DLC screen, 220-330 s | 3.38 (3.39, 3.30, 3.44) | 5.14 (5.15, 5.11, 5.15) |
Every run with the fix is above every run without it in all three windows. A
[reach-attr]count of the hook syncs that only a whole-heap reach note caused fell from about 5.9 s to about 0.5 s per 10 s in the intro; the rest comes from dispatches that store through runtime-indexed V# tables, a separate change.trace_digest.py,APS5_TRACE_SECONDS=270:5, one run per arm (the digest's commit field is the stack's, the same for both):Queue 0 busy 195.0 -> 129.0 ms per frame, queue 0x20 98.5 -> 52.4 ms. The two traces are attached.
aps5-trace-c6410e05e8b2-20016.json.gz
aps5-trace-c6410e05e8b2-27644.json.gz
Validation of this commit, same flags as above: the BDA, bindless, image-table and address tests (
ctest -R '(bda|bindless|image_table|address|store_scan)') 108 of 108 with the default environment, 70 layer inserts, 0VUID-; withAPS5_BINDLESS_IMAGES=1on(bindless|image_table|bda)39 of 52, the 13 failures being the per-draw-binding image-table tests listed above, 49 inserts, 0VUID-.Head
e72eb89fb3(the three commits after2868dd086a), same machine and environment, against2868dd086abuilt in the same tree. Focused set:ctest -R 'bindless|texture_service|image_table|device_image_keys|agc_shader_memory$|agc_shader_descriptor_phis|shader_disk_cache|bda' -V. Heap-on set:APS5_BINDLESS_IMAGES=1on^agc_driver_image_table(_bindless|_runtime_address)?$,^agc_driver_texture_serviceand^agc_driver_bindless_images:| |
2868dd086a| this head ||---|---|---|
| focused set, default environment | 64 of 64, 53 layer inserts | 65 of 65 (adds
agc_driver_bindless_images_heap), 54 inserts || heap-on set | 7 of 8 (
agc_driver_bindless_imagesfails on the per-draw map assertion) | 9 of 9, 9 inserts ||
agc_driver_dispatch_overlap_off, 10 serial runs | 10 of 10 | 10 of 10 |No log has a
VUID-line orwas not found but was requested by env var VK_INSTANCE_LAYERS.tools/check_skips.pypasses on the JUnit output of all four runs, andagc_driver_bindless_images_heapran the heap rather than skipping. The access violation inagc_driver_dispatch_overlap_offreported above did not recur in these 20 runs or in the earlier 48.Checklist
Based on current
main; no other open PR implements the same functionsOne topic per PR; follow-ups go in a new PR
No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
Unimplemented paths throw (
NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt fileNo notes, investigation
.mdfiles or images added to the repository (attach them to this PR)New third-party code is a submodule built from source
Generic behaviour, not specific to one title
Depends on: #28483, #16472, #16812 (carrying #9457, #9633, #9749, #9790, #9969 merge order; conflicts only; #7395, #8939, #24305 and #20018 merged)
Fixes: none
Unblocks: PPSA26344 #675
GPUs tested: NVIDIA GeForce RTX 4080 SUPER, drivers 621.14, 621.24 and 621.40, Windows 11. Reported by reviewers on this PR (Yōtei, HZD Remastered, AC Black Flag and focused tests): RTX 4090 (Pipodi), RTX 3080 Laptop, driver 621.14 (Celegans12), RTX 2060 6 GB, driver 610.91, Windows 11 (DerKarussellbremser). Focused tests under the validation layer: NVIDIA GeForce RTX 4090, drivers 620.70.06 and 620.73.04, Arch Linux (domx4q, up to
2d7f1418e4); AMD Radeon RX 7900 XT and 7800X3D iGPU, RADV (Colewiz7,e72eb89fb3); NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 (Scramblrrrr)AI-assisted: yes
🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T17:49:41Z.
Review: COMMENTED
Reviewed — comments
The review covers the core bindless runtime and shader lookup path at head
a09c7b80ac96f5a83442678e469f42a0ee4b5e63; material changed code remains unread, so a formal approval is not justified.What I ran
Read the prepared description, commits, diff, manifest, review README, and targeted source ranges with the repository reader. No build or tests were run; test results in the description are author-reported.
Files read:
core/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cpp,BindlessResolvers.cpp,DescriptorHeap.cpp,BindlessTable.cpp,Execution/src/VulkanDevice.cpp(targeted ranges),Graphics/src/ShaderResources.cpp(first 20 lines),core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp(targeted ranges), and the prepared review artifacts.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The prepared folder lists 75 changed files. Multiple changed files or added-line ranges were not read, including large portions of
VulkanDevice.cpp,ShaderResources.cpp, andSpirvImageEmitter.cpp, as well asSpirvEmitterHelpers.cpp,SpirvModuleEmitter.cpp,docs/dev/ENVIRONMENT.md, anddocs/dev/debt/libSceAgcDriver.md. No build, tests, validation-layer run, or console behavior was independently verified. The author-reported Windows test and performance results indescription.mdwere not rerun.To get this to a good state
Nothing is required. Optional: complete review of the unread changed lines before treating this as a full review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T19:14:25Z.
Review: COMMENTED
Reviewed — comments
The reviewed paths support the opt-in bindless heap design, but the review is incomplete because several changed files were not inspected.
What I ran
Inspected the prepared diff and targeted source ranges at head
b6fbe4b0a683f53a579383b94a789d1f4d3b4c4fusingrepo_read.pytools. No commands or tests were run by me; the test results below are author-reported.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The prepared manifest lists these changed files as excluded, and I did not read them:
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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, plus files whose paths are identified as excluded infiles.json, which was not available through the reader. Other changed files inmanifest.jsonwere not all read either. The description reports broader test results, including a flaky access violation; those were not rerun or independently verified.To get this to a good state
Nothing is required. Optional: complete review of the uninspected changed files before relying on this review as a merge recommendation.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T19:23:50Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the source inspected; the author reports targeted and broad Windows test runs, but I did not run checks in this review.
What I ran
No tests or builds were run. I inspected the prepared diff and targeted code at head
6916aea7898d53a1e4da828c516114116870a6b7using the pinnedrepo_read.pyreader.Results
Findings
Blocking
None identified in the source inspected.
Non-blocking
None.
Not verified
This review was not complete across all changed lines. The full text of these changed files was excluded from the review bundle and I did not read their changed ranges through the reader:
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp,core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp,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, anddocs/dev/ENVIRONMENT.md. I read targeted ranges fromVulkanDevice.cpp,ShaderResources.cpp, andSpirvImageEmitter.cpp, but not every added line. I did not verify the reported test output, performance captures, other operating systems, or GPUs.The other changed files were present in the bundle; I inspected relevant diff sections and targeted source ranges, but did not read every added line. The review bundle’s
files.jsonwas not available through the reader; the changed-file and exclusion lists came fromreview/README.mdand the review-folder listing.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T15:58:32Z.
Review: COMMENTED
Partial review — no blocking findings in files read
Nothing blocks this; the points below are optional.
What I ran
323368132014e0e62a4a48927d3362a3e088d589. Basemain; no merged-preview check was run.repo_read.py. No build and no tests.Results
Findings
Blocking
Non-blocking
Sources
descriptorIndexingis the AND of the two non-uniform indexing bits: VulkanDevice.cpp, line 2269Not verified
Execution/src/Driver/Presentation.cpp,Execution/src/Driver/Draw/Draw.cpp,Graphics/src/TextureService.cppandGraphics/include/BindlessTable.hpp.Execution/src/VulkanDevice.cppand the guards incore/shader/recompiler/ShaderDiskCache.cppwere only searched, not read.files.jsonwas not read, so thereviewedlist was not checked.Execution/src/VulkanDevice.cpp(full text),Graphics/src/ShaderResources.cpp,tests/ShaderMemory.cpp,SpirvBackend/src/SpirvEmitter.cpp,SpirvBackend/src/SpirvFlowEmitter.cpp,SpirvBackend/src/SpirvImageEmitter.cpp,SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp,SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp,SpirvBackend/src/SpirvModuleEmitter.cppanddocs/dev/ENVIRONMENT.md.BindlessPresentWaittakesGuestMemory::GpuMutex()without theHeldByThisThread()check thatrecordDispatchuses. I did not check whether callers ofDriver::Presentalready hold the mutex.bufferDeviceAddressas a hard-codedtrue(VulkanDevice.cpp, line 2555). I did not check it against the path that enables buffer device address.agc_driver_dispatch_overlap_offis unexplained by the author.To get this to a good state
Nothing is required.
Optional:
linuxjob on the head.Presentruns, or makeBindlessPresentWaitcheck it the wayrecordDispatchdoes.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T19:46:05Z.
Review: COMMENTED
Partial review — no blocking findings
Nothing blocks this; the points below are optional. This pass read only parts of the diff, so it is not a basis for approval.
What I ran
e72eb89fb33dea2c756a9de4f1329ff95eff16d6, basemain.files.json.Execution/src/VulkanDevice.cpp(BindlessPresentWait),Graphics/src/ShaderAddressResources.cpp,Graphics/src/TextureService.cpp(refusal recording),Graphics/src/ShaderDiskCache.cpp(guards and encoders) andCacheKey.hpp.Results
Findings
Blocking
None found in the code I read.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderAddressResources.cpp:213exempts the miss-ring store only whenheapHeaderPointersmatches the exact SPIR-V shape it expects. If the emitter changes that shape, the exemption stops applying and the store counts again. That is the safe direction (slower, not wrong), but a test that pins the emitted shape would catch the change early.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:4727callsPrepareRevalidation()on the texture service before the GPU lock is taken again. I did not check what that call touches, so I cannot say whether the unlocked call is safe.Not verified
Graphics/src/ResourceMaterializer.cpp,SpirvImageEmitter.cpp(about 800 added lines),BindlessTable.cpp,DescriptorHeap.cpp,DeviceImageKeys.cpp,Draw.cpp,Recorder.cpp,Pipeline.cpp,ShaderValidation.cpp, the rest ofTextureService.cpp, the test files, and the CMake files.Execution/src/VulkanDevice.cpp(except the hunk above),Graphics/src/ShaderResources.cpp.PrepareRevalidation()and the thread safety of the texture service.linuxjob was skipped and Linux was not run on the current head.To get this to a good state
Nothing is required.
A formal approval needs a read of the files listed under Not verified, through the reader, before the next review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T22:20:55Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the code inspected; approval is not justified because many changed files remain unread and the compiler’s central bindless emitter was only partially inspected.
What I ran
Reviewed head
4056cd6e86a52bd3b3138c728f2c479458c2b4a4againstmain. No build or tests were run; reported test results below are from the PR description. I used the pinnedrepo_read.pyreader to inspect the review bundle and selected implementation ranges.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The review bundle’s
README.mdandmanifest.jsonlist 70 changed files. I inspected selected ranges inTextureService.cpp,DescriptorHeap.cpp,BindlessTable.cpp,BindlessResolvers.cpp,ShaderAddressResources.cpp,ResourceMaterializer.cpp,SpirvImageEmitter.cpp,Presentation.cpp, andRecorder.cpp, plus parts of the diff and change description. I did not read every changed line. In particular,SpirvImageEmitter.cppadds 809 lines; only a small range and search results were inspected. Other excluded or unread changed files includeVulkanDevice.cpp,ShaderResources.cpp,ShaderDiskCache.cpp,ShaderMemory.cpp, other large SPIR-V emitter files, and the test additions. No independent build, tests, or physical-console behavior were verified.To get this to a good state
Nothing is required. A complete review would need inspection of the remaining changed lines and validation of the bindless SPIR-V emission and related tests before approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T09:18:05Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review; the points below are optional.
What I ran
Reviewed head
97d39816d23e899f592f2acb7b5a3eea28541b4aagainst the prepared patch. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
Not verified
Read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch; targeted ranges incore/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cpp,DeviceImageKeys.cpp,BindlessTable.cpp,DescriptorHeap.cpp,BindlessResolvers.cpp,BdaResources.cpp;core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp;core/shader/recompiler/ShaderDiskCache.cpp;core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp;core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp; and related headers.The manifest lists additional changed files whose full text is included in the review folder, but they were not all read. The full text of some changed files was excluded as too large, including
VulkanDevice.cpp,SpirvImageEmitter.cpp,SpirvEmitterHelpers.cpp, andSpirvModuleEmitter.cpp; only targeted ranges were read for some of these. Tests, builds, Linux behavior, and console behavior were not verified. The review did not check every file marked for review in the manifest.To get this to a good state
Nothing is required. Optional: complete a focused review of the shader-emitter lookup path and run the relevant bindless tests.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:14:10Z.
Review: COMMENTED
Reviewed — comments
This review covers selected bindless lookup, texture service, table registration, and cache regions at head
cae79630e37433f6b0dd2ac1a5370b02b33e9a87; substantial changed code remains unread, so a formal merge decision is not justified.What I ran
Read the prepared PR description, commit list, manifest, and diff excerpts, then used the pinned
repo_read.pyreader to inspect selected changed regions and callers. No build or tests were run.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch; selected ranges inVulkanDevice.cpp,TextureService.cpp,ShaderResources.cpp,BindlessTable.cpp,ResourceMaterializer.cpp,SpirvImageEmitter.cpp,Recompiler.cpp,ShaderDiskCache.cpp,CacheKey.hpp,ShaderDiskCache.hpp,BindlessImageAbi.hpp, andDeviceImageTableAbi.hpp.Results
Findings
Blocking
None verified in the source regions read.
Non-blocking
No specific non-blocking code defect verified.
Not verified
The review is incomplete. Changed regions were not read in full, including the 809-line addition in
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp, changed code inVulkanDevice.cpp,ShaderResources.cpp,ShaderDiskCache.cpp,ResourceTracker.cpp, and other files listed as excluded in the prepared review folder. The repository reader was used for targeted ranges in some excluded files, but their changed lines were not all inspected. No build, tests, or hardware behavior were independently checked; reported test results in the PR description are author-provided.To get this to a good state
Nothing is required. Optional: complete review of the unread changed lines and run the relevant build and tests before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:45:04Z.
Review: COMMENTED
Reviewed — comments
The bindless heap review is incomplete because Vulkan feature enabling appears inconsistent with the feature probe, and several changed files were not read.
What I ran
Reviewed head
883fcdccdce3872b3e1d534abe216bd829bcf855; no commands or tests were run. I readdescription.md,commits.md,manifest.json,diff.patch, andREADME.md, plus changed code through the pinnedrepo_read.pyreader. The review-folderfiles.jsonwas unavailable; the file inventory and exclusions were obtained fromREADME.mdandmanifest.json.Results
Findings
Blocking
None verified.
Non-blocking
descriptorIndexing, which represents the two non-uniform indexing features, and then sets several descriptor-indexing features toVK_TRUE. But the later feature-chain setup resets the feature struct and only enables sampled-image update-after-bind, partially-bound, variable-count, and runtime-array fields. It does not enable the sampled/storage non-uniform indexing, storage-image update-after-bind, or update-unused-while-pending fields required by the heap. As a result,state->bindlessImagescan be true while required Vulkan features are not enabled, likely causing device creation failure or invalid heap use on supported devices. Please preserve and enable every feature accepted by the probe beforevkCreateDevice. Evidence:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:2607and:2608in the changed diff; the setup/reset context is at lines 2326–2340.Not verified
I did not read every changed line or run tests, so this is not a complete review and does not support approval. The following changed files were excluded from
files/and were not inspected through the reader:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppin full,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp,core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp,core/shader/recompiler/Recompiler.hpp,core/shader/recompiler/ShaderDiskCache.cpp,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/SpirvMemory/SpirvDescriptors.cpp,core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp,core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp,docs/dev/ENVIRONMENT.md, anddocs/dev/debt/changes/perf-agc-bindless-heap.md. I read only targeted ranges ofcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp; its remaining changes and other unlisted changed files were not fully reviewed.To get this to a good state
Nothing is required for this comment. The feature-enablement concern and incomplete review should be addressed before relying on the bindless path.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T12:10:51Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the prepared description reports passing focused and heap-on checks, with one unexplained crash on an earlier head and no Linux run on this head.
What I ran
Reviewed head
2d7f1418e41c47b386021cbdf283691e48c35386usingrepo_read.pyto inspect the prepared description, commits, diff, manifest, selected changed code, and repository context. I did not run commands or tests.Results
Findings
Blocking
None in the portions read.
Non-blocking
None.
Not verified
This review is incomplete: I did not read every changed line.
VulkanDevice.cpp,ShaderResources.cpp,ShaderMemory.cpp,ResourceTracker.cpp,Recompiler.cpp,ShaderDiskCache.cpp,SpirvFlowEmitter.cpp,SpirvImageEmitter.cpp,SpirvEmitterHelpers.cpp,SpirvModuleEmitter.cpp, anddocs/dev/ENVIRONMENT.mdwere excluded from the prepared full-text bundle; I only read selected ranges in some of these viarepo_read.py. I also did not read all included changed files or run tests. The description reports Windows 11 focused and heap-on tests passing on this head, an unexplained earlier crash that it says cannot be ruled out, and no Linux run on this head; these are author-reported, not checks I performed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:44:01Z.
Review: COMMENTED
Reviewed — comments
The reviewed code has no verified blocking findings, but material parts of this large change were not read and merging is not justified by the evidence inspected.
What I ran
Head:
6f4dfb725e9e1d7dcc5e3a2ac769ef6c4cfcbae3. I inspected the prepared diff and targeted code at that head usingrepo_read.py; no tests or build commands were run.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
No specific non-blocking code issue verified.
Sources
Reviewed the prepared diff and repository source pinned to the stated head. Read changed code in
VulkanDevice.cpp,TextureService.cpp,BindlessTable.cpp,DeviceImageKeys.cpp,ShaderResources.cpp,ResourceTracker.cpp,ResourceMaterializer.cpp(diff), andSpirvImageEmitter.cpp.Not verified
The full text of these changed files was excluded for size and was not read:
VulkanDevice.cpp,ShaderResources.cpp,SpirvImageEmitter.cpp,SpirvFlowEmitter.cpp,SpirvEmitter.cpp,SpirvDescriptors.cpp,SpirvEmitterHelpers.cpp,SpirvModuleEmitter.cpp,ResourceTracker.cpp,Recompiler.cpp,ShaderDiskCache.cpp,TextureService.cpptests, anddocs/dev/ENVIRONMENT.md. In addition, the added 809-line SPIR-V emitter change was only inspected in targeted ranges. Other changed files and behavior outside the cited reads were not fully audited. No tests or builds were run by this review; the test results in the PR description are author-reported.To get this to a good state
Nothing is required. The review remains a comment because substantial changed code was not verified; the author-reported checks should be rerun on the exact head if a formal approval is needed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T19:03:10Z.
Review: COMMENTED
Reviewed — comments
This review covers selected bindless driver and shader paths at
b43f8e7844eedc05f3f0cc9fda9e2ea43d3ce3e1; the broader change remains unverified, so a formal approval or changes request is not justified.What I ran
Read the prepared description, commits, manifest and diff, plus selected repository source ranges using
repo_read.py. No tests or builds were run; the test results in the description are author reported.Results
Findings
Blocking
None identified in the source ranges read.
Non-blocking
SpirvImageEmitter.cppchange and the omitted recompiler and cache files need targeted review before a formal decision.Not verified
No tests, build, Linux build, validation-layer run, or console/title behavior were independently verified. The description and commits were read, along with the manifest and prepared diff. Source ranges read included
VulkanDevice.cpp,TextureService.cpp,TextureService.hpp,BindlessResolvers.cpp,BindlessTable.cpp, and the beginning ofSpirvImageEmitter.cpp;ResourceMaterializer.cppwas searched and one relevant range was not read. Other changed files, including files listed as too large in the manifest, were not fully reviewed. No repository files were excluded by this review; some changed files were not read.To get this to a good state
Nothing is required. Optional: complete the targeted review of the omitted shader emitter, resource materialization, cache and device initialization paths before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-28T18:04:46Z.
Review: COMMENTED
Actionable comments posted: 11
874c48c3-0453-4880-8270-197c612a3c4cReviewing files that changed from the base of the PR and between
ae0df0e03eand503eef76a7.core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Presentation.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BdaResources.hppcore/libs/prx/libSceAgcDriver/Graphics/include/BindlessResolvers.hppcore/libs/prx/libSceAgcDriver/Graphics/include/BindlessTable.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/DescriptorHeap.hppcore/libs/prx/libSceAgcDriver/Graphics/include/DeviceImageKeys.hppcore/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hppcore/libs/prx/libSceAgcDriver/Graphics/include/TextureService.hppcore/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cppcore/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/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderAddressResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureService.cppcore/libs/prx/libSceAgcDriver/tests/BdaContracts.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_device_image_keys_tests.cmakecore/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_image_table_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipeline_journal_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_texture_service_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_split_table_call_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/BindlessImages.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppcore/libs/prx/libSceAgcDriver/tests/execution/PipelineJournal.cppcore/libs/prx/libSceAgcDriver/tests/execution/SplitTableCallRun.cppcore/libs/prx/libSceAgcDriver/tests/shaders/BindlessLookup.compcore/shader/recompiler/BdaAbi.hppcore/shader/recompiler/BindlessImageAbi.hppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/DeviceImageTableAbi.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hppcore/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppcore/shader/recompiler/Optimization/include/Optimization/ResourceTracker.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvImageEmitter.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/ENVIRONMENT.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; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T18:06:05Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
503eef76a773e09c5f82c6e4ce67d92a3d88f5fbusing the prepared patch andrepo_read.pyexcerpts. No build or tests were run; the Windows test results below are author-reported.Results
Findings
Blocking
None.
Non-blocking
Not verified
description.mdis author-reported, not independently run.To get this to a good state
Nothing is required. Optional: add a diagnostic for exact-mode priming that exceeds the configured texture budget.
Imported from boykopovar/AnyPS5. Originally posted by lgqdaxia on 2026-11-28T18:07:42Z.
Review: COMMENTED
I reviewed
503eef76a773against five issues we encountered during PPSA38500 loading. The new head already contains the 53-field image-cache correction. We rebased our five follow-ups onto yourperf/agc-bindless-heapbranch. The earlier Windows comparisons are recorded in each PR.layerRowsCompatiblereceived the same registry ID and stopped compute compilation. Including the missing fields distinguished them. slopezjur/AnyPS5#4Imported from boykopovar/AnyPS5. Originally posted by 17bryen on 2026-11-30T04:58:11Z.
Review: COMMENTED
Reviewed: two blocking findings, otherwise comments
Head
503eef76a773e09c5f82c6e4ce67d92a3d88f5fb, against its basemainae0df0e03e.SpirvImageEmitter.cpp.main.Two findings block the heap path:
main, the heap keeps an unmapped-surface check thatmainhas just replaced. Two of the PR's heap tests fail on the merge.The rest are non-blocking findings and one observation.
What I ran
-O3 -DNDEBUG), Ninja, only the test targets the patterns select. The submodules match the pins of the base;mainhas not changed them.Vulkan-Headerspin (335).ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer.ctest -j 1 -V.^(agc_|shader_).*(bindless|texture_service|image_table|device_image_keys|descriptor_phis|disk_cache|bda|split|pipeline_journal)|^agc_shader_memory$, and its heap-on set again withAPS5_BINDLESS_IMAGES=1.main5ed18b5d5a.tools/check_conventions.py --base ae0df0e03e --head 503eef76a7, which passes.Results
VUID-linesae0df0e03e, focused set503eef76a7, focused set503eef76a7, heap-on set,APS5_BINDLESS_IMAGES=1main5ed18b5d5a, focused setmain5ed18b5d5a, heap-on setwas not found but was requested by env var VK_INSTANCE_LAYERS, andtools/check_skips.pypasses on all five JUnit files.[bindless] heap:lines, so the heap tests ran on the heap rather than skipping. The base has no heap, so I did not run the heap-on set there.agc_test_split, a Python test that CMake registers only when it finds Python 3.agc_driver_image_table_reuse_entry_limit, added bymain.Merge with
main5ed18b5d5a(393 commits past the base): two textual conflicts, both mechanical.Graphics/src/Pipeline.cpp(libraryKeys),mainaddedstate.rasterizerDiscardto the same condition this PR extends withBindlessHeapStages(shaders) != 0u; keep both.tests/execution/SplitTableCallRun.cpp,mainaddedRequireChainBeforeCalleewhere this PR addsRunBindless; keep both.mainis still at 98 and this PR uses 99.Findings
Blocking
mixBindlessInterface(core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp:2403-2425) mixes a subset ofImageResource.RegisterBindlessInterfacecompares the stored interface with the defaultedoperator==over all fields (:2469-2475) and throwstwo image interfaces share the idon a mismatch (:2479).gathered,layerRowsCompatible,maxArrayLayersandoptionalDescriptor(Resources.hpp:116-120), and alsovolumeArraySampleCompatible,adjustedSample,dimensionQueryOnly,sampledOnly,convertedSamples,remappedDepth1D,layerRows,volumeGather,targetMergeandoverwrite.RuntimeImageModesasShaderInfoCollector.cpp:578does. All four pairs get the same id, and the second registration throws.layerRowsCompatible(slopezjur/AnyPS5#4, closed, has a fix of this shape).operator==compares, after the same normalisation asbindlessInterfaceImage, for the image and for each mode. Add astatic_assert(fieldCount<ImageResource>() == 53)next to the hash, asShaderDiskCache.cpp:148does, so that a new field fails the build.r128Tests(tests/TextureService.cpp:1245) only variesr128, which is hashed.main, the heap still builds table entries whose base address is not mapped.mainmerged454636b509(#27295) after this PR's base. It changes the per-draw check inShaderResources.cppfrom "no committed page in the surface" to "base address not mapped", because records whose base lies in a reserved hole were being built as views of hundreds of GiB on PPSA08329. It also adds a case for it totests/execution/ImageTable.cpp:1143.Graphics/src/BindlessResolvers.cpp:135:!Accessible(address, bytes) && CommittedRanges(address, bytes, false).empty()). After a merge or rebase, the heap therefore accepts entries thatmainrefuses.agc_driver_image_table_bindless(focused set), and inagc_driver_image_tableandagc_driver_image_table_bindless(heap-on set). The message is "an entry whose base address is not mapped, with a mapped page later in its surface, was bound instead of faulting when selected".main's test,!GuestMemory::Accessible(reinterpret_cast<const void*>(address), 1u), and its wording "… is not mapped at its base address" atBindlessResolvers.cpp:135. With that change in my merge tree, both tests pass with the heap on and off, with noVUID-. The refusal classifier still sees "is not mapped".Non-blocking
BindlessPresentWaitholdsGuestMemory::GpuMutex()fromVulkanDevice.cpp:4969through thefprintfat:4975.APS5_PROFILE_DRAW=1also turns that line on (TextureService.cpp:127).redecode(TextureService.cpp:661-669) resetsperUseEpochbut nottracked.surfaceEpoch. When every new key is already resident, nothing is installed and the globalsurfaceEpochdoes not move.revalidateServed(:693-713) then keeps checking the old key list.Revalidate(:970-976), not at the next serve.if (!rewritten.empty()) tracked.surfaceEpoch = ~std::uint64_t{0};next to theperUseEpochreset. The rewrites inserviceTestsall name new keys.Registermarks a lazy tableDonewithout reading it (:171-174), sotracked.wordsstays empty andrecordKeysreturns nothing (:203).revalidateServedandrefreshPerUse(:763-776) therefore find no keys.BindlessResolvers.cpp:180), which are meant to be refreshed at every use.perUseTestsrefreshes 1.replace,take(:557) removes the old entry beforeplace(:562) acquires slots and inserts the key. The old resolution is released only afterplacesucceeds (:564).placethrows. Afterwards the service has no entry for the key, but the old image slot is still held and the key is still published with the old slot. That was unchanged three presents later. The key never misses, so neither misses nor revalidation repair it, and shaders keep reading the old view.owneris also dropped withoutrecorder.Keep, so after this the service no longer holds the old texture (by reading).commitTable(:594-598) moves a chunk out ofpendingbefore committing it, so a throw mid-chunk loses the rest. A table whose span was unmapped at priming staysunmappedand is never re-read (:623).:564,:598and:848.DeviceImageKeys::Retaincan throw on a table that fits.Retainre-inserts keys in bucket order (DeviceImageKeys.cpp:49-61). If a probe cluster wraps past the last bucket, a key whose home is bucket 0 can take a slot that a wrapped key needs, pushing that key out of its 16-step window.Retainthen throwsa retained key found no bucket(:60).Retainkeeping all of them throws.Retainis called fromretireNowunder the GPU lock, so on the present path the throw ends the run. It is rare, but cheap to fix: start the circular scan just after an empty bucket.grow(:76) has the same order but only falls through to a larger size.AfterPresentWaitends withPublish(TextureService.cpp:1014), which isServe({})(TextureService.hpp:176). It assigns a new miss ring whenever the open batch has changed (BindlessTable.cpp:116,:169). So at the next presentPresentSerial(TextureService.cpp:898-905) always sees a new ring, submits and returns a serial, andBindlessPresentWaitwaits for it (VulkanDevice.cpp:4959-4965).Vulkan.BindlessPresentWait.wait_serialat 53.5 ms over 11 presents, about 5 ms per present, in a profiled run.#include <cstdio>is added toSpirvImageEmitter.cpp:23but not used.APS5_BINDLESS_STATSis read as "present" inTextureService.cpp:127but as "set and not 0" inBindlessResolvers.cpp:120.docs/dev/ENVIRONMENT.mddoes not say thatAPS5_PROFILE_DRAWturns the stats line on.SpirvImageEmitter.cpp:2974-2981), non-elected lanes default to a zero vector, which decodes asBindlessOkwith slot 0. The broadcast after the merge relies on reconvergence, asEmitElectedBdaRangealready does onmain. A miss status as the default would turn a missed broadcast into a miss instead of a silent null read.BindlessProbeFor,SpirvImageEmitter.cpp:2988-3002) and from a loop preheader (PlanBindlessHoists,:3471). Neither checks for a store between the probe and the use. A shader that writes a T# and then samples through it in the same block or loop gets the earlier descriptor. This is close to the fragment's "a dispatch storing into its own table is not refused" and may only need a word there.TextureService.cpp:319-344). Its uploads go throughRecorder::Commands(), which ends an open render pass first (Recorder.cpp:2095), so this is correct. A worker commit between two draws of one pass will end that pass, though.Resolved at this head
883fcdccdc).VulkanDevice.cpp:2380-2394). The bindless block then adds the sampled and storage update-after-bind and update-unused-while-pending features (:2662-2672). Every feature thatBindlessUnsupportedrequires is therefore enabled when the probe passes.descriptorBindingSampledImageUpdateAfterBind, which is enabled.bufferDeviceAddress = trueis right, because device creation already requires buffer device addresses (BdaFeatures.cpp:23,ShaderDeviceProfile.cpp:38).BindlessPresentWaitunder the GPU lock: it now throws if the caller holds the lock (VulkanDevice.cpp:4954). No test reaches that throw.PrepareRevalidationoutside the GPU lock: it touches the service's own state only under its mutex, and calls onlyPrepare, as the worker already does inreadTable. I did not audit theGuestMemorycalls underPreparefor thread safety.fieldCount<ImageResource>() == 53build break: fixed (ShaderDiskCache.cpp:148).VkPipeline(PipelineJournal.cpp:1549,VulkanDevice.cpp:3047).RecompileResultfrom the recompiler, which registers interfaces on every compile (Recompiler.cpp:956) and disk load (:1918).Not resolved: the interface id collision (finding 1) and the
fprintfunder the GPU mutex (finding 3).Of the automated reviewer's eleven major items:
DeviceImageKeys.cpp:49(finding 7),TextureService.cpp:564,:598and:848(finding 6),:661(finding 4),:777(finding 5) andResourceMaterializer.cpp:2424(finding 1).ShaderDiskCache.cpp:799not to be a problem (journal replay, above).DescriptorHeap.cpp:43(pool size againstmaxUpdateAfterBindDescriptorsInAllPools, which needs other vendors' limits),TextureService.cpp:657(revalidation baselines saved before installs, another error path) orResourceMaterializer.cpp:2445(nested sampler tables).Vulkan and ABI details I checked and found consistent:
nullDescriptoris required,DescriptorHeap.cpp:34).:217-233), so no slot that a pending submission can use is rewritten.BindlessTable.cpp:76,DescriptorHeap.cpp:149).DeviceImageTableAbi.hpp,BindlessImageAbi.hpp,DeviceImageKeys.cppandBindlessTable.cpp(for exampleSpirvImageEmitter.cpp:3066-3083,:3215and:3266-3268).NonUniformis on the index, the access chain and the loaded image and sampler.MIN_LOD_WARNandMIP_STATS_CNT_EN(dword 5) andMIP_STATS_CNT_ID(low byte of dword 6). These do not change the decoded view.With the switch off, the changed paths are gated by
bindlessHeap/BindlessLowering. The only unconditional changes I found are the newnestedTablefield, which is encoded and compared, and the disk cache format bump to 99.Coverage
Read in full at this head (every changed line, with the code around it):
SpirvImageEmitter.cpp(all 809 added lines, read twice),SpirvEmitter.cpp,SpirvFlowEmitter.cpp,SpirvModuleEmitter.cpp,SpirvMemory/SpirvDescriptors.cpp,SpirvMemory/SpirvEmitterHelpers.cpp, the three SpirvBackend headers,ResourceMaterializer.cpp/.hpp,ResourceTracker.cpp/.hpp,Recompiler.cpp/.hpp,ShaderDiskCache.cpp/.hpp,CacheKey.hpp,BdaAbi.hpp,BindlessImageAbi.hpp,DeviceImageTableAbi.hpp, the four IR metadata headers, andCMakeLists.txt.TextureService.cpp/.hpp,DescriptorHeap.cpp/.hpp,BindlessTable.cpp/.hpp,BindlessResolvers.cpp/.hppandDeviceImageKeys.cpp/.hpp. A second read ofTextureService.cpp,DescriptorHeap.cpp,BindlessTable.cppandDeviceImageKeys.cppend to end.VulkanDevice.cpp/.hpp,Graphics/src/Draw.cpp,Pipeline.cpp/.hpp,ShaderAddressResources.cpp,BdaResources.cpp/.hpp,ShaderResources.cpp/.hpp,ShaderValidation.cpp,PipelineJournal.cpp,GuestTextureResource.cpp/.hpp,Recorder.cpp/.hpp,Context.hpp,Shaders.hpp,Execution/src/Driver/Presentation.cpp,Execution/src/Driver/Draw/Draw.cpp, andCMakeLists.txt.docs/dev/ENVIRONMENT.mdanddocs/dev/debt/changes/perf-agc-bindless-heap.md.Recompiler.cpp, andShaderInfoCollector.cpp;PipelineJournal.cpp,VulkanDevice::ReplayComputePipeline);Recorder::Commands, and the texture upload paths inTexture.cppandShaderResources.cpp;SpirvBdaRead.cppandSpirvBufferAccess.cpp;BdaFeatures.cpp,ShaderDeviceProfile.cpp, and the T# decode inGuestTextureResource.cpp;main's454636b509.Read in part: the 17 test files (3,674 added lines). I mapped them against the behaviours above to find what they cover; I did not review them line by line for their own correctness. Coverage gaps I found:
BindlessLookup.comp);The repro tests I used are local; I can share them if they help.
Not done:
APS5_BINDLESS_LAZY=1outside the unit tests;AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T17:13:34Z.
Review: COMMENTED
Reviewed — no blocking findings
The review is incomplete: I read three changed source files in full and part of a fourth, so the remaining changes still need review before a formal decision is justified.
What I ran
Reviewed head
db756fce8e22b676d83ec8cff8f949e96b5b0475. I read the prepared description, commits, manifest and diff, and inspected source throughrepo_read.py; subsequent reader calls could not log in the read-only run folder. No tests or build commands were run.Results
Findings
Blocking
None identified in the source files read.
Non-blocking
No code feedback from the inspected subset.
Sources
Not verified
The manifest lists 76 changed files. Three were read in full (
DeviceImageKeys.cpp,BindlessTable.cpp,DescriptorHeap.cpp);TextureService.cppwas read partially. I did not inspect the other changed source files or independently verify the author-reported test and build results.files.jsonlists no files excluded by rule; the manifest marks 13 changed files as too large for full text in the review folder.To get this to a good state
Nothing is required. Optional: complete source inspection of the remaining changed files and independently verify relevant checks before making a formal review decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T17:58:06Z.
Review: COMMENTED
Reviewed — no blocking findings
This review is incomplete: I inspected the prepared change and targeted pinned source ranges, but did not read all 79 changed files, so the remaining behavior is not verified.
What I ran
Reviewed head
2741df87d8174faf170755ff4c81db9c0a94ce3e. Read the prepareddescription.md,commits.md,manifest.json,files.json, and portions ofdiff.patch. Usedrepo_read.pyto inspect targeted ranges inTextureService.cppandDescriptorHeap.cpp, and searchBindlessResolvers.cppandResourceMaterializer.cpp. No tests or builds were run. The test results in the PR description are author-reported, not results from this review.Results
Findings
Blocking
None identified in the inspected ranges.
Non-blocking
None.
Sources
The inspected source ranges are pinned to the reviewed head: TextureService.cpp, DescriptorHeap.cpp, BindlessResolvers.cpp, and ResourceMaterializer.cpp.
Not verified
files.jsonlists 79 changed files and no files excluded by the preparation rules. I read targeted source inTextureService.cppandDescriptorHeap.cpp, searchedBindlessResolvers.cppandResourceMaterializer.cpp, and inspected portions of the prepared diff. The other changed files and the uninspected portions of those files were not reviewed. Tests, build behavior, and console behavior were not independently verified.To get this to a good state
Nothing is required. The review remains incomplete; a full review would need inspection of the remaining changed files.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-02T18:03:12Z.
Review: COMMENTED
Actionable comments
embed_spirv.cmakechanges.f1e6bbec-0ca0-451a-ab4e-385928754226Reviewing files that changed from the base of the PR and between
503eef76a7and2741df87d8.core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BindlessTable.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/DescriptorHeap.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.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/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/ImageTable.cppcore/libs/prx/libSceAgcDriver/tests/execution/SplitTableCallRun.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hppcore/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.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; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T18:18:45Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because the change spans many files and several central shader and cache paths were not verified.
What I ran
Reviewed head
6c7675555978fc76d996d6943f5c16bc3ebb8de1using the prepared description, commit list, manifest, diff, and selected source excerpts. I did not run tests or builds. The author-reported test results were not reproduced.Commands used for inspection:
The reader returned that excerpt; a subsequent call failed because its read log could not be written in the read-only workspace.
Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the excerpts inspected. This does not establish that unread portions are free of blocking defects.
Non-blocking
No source-level comments raised from the inspected excerpts.
Sources
No behavior finding requiring a source citation was made.
Not verified
files.jsonlists 80 changed files underreviewed; I did not read every listed file. In particular, I did not inspect the full shader emitter, the disk-cache and recompiler changes, all driver integration paths, or the full test suite. I also did not run checks on the pinned head. The prepareddescription.mdandcommits.mdreport author-run tests, but those results remain unverified here.To get this to a good state
Complete review of the uninspected changed files and relevant callers before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-02T19:00:44Z.
Review: COMMENTED
Actionable comments
40be498d-2b47-4251-b63e-7868220aa092Reviewing files that changed from the base of the PR and between
2741df87d8and6c76755559.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BindlessTable.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/TextureService.cppcore/libs/prx/libSceAgcDriver/tests/BindlessTable.cppcore/libs/prx/libSceAgcDriver/tests/TextureService.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bindless_table_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_split_table_call_run_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/changes/perf-agc-bindless-heap-gaps.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-02T20:12:48Z.
Review: COMMENTED
Actionable comments
d0a7bdc1-592a-40d9-bde8-c8567412a0c4Reviewing files that changed from the base of the PR and between
6c76755559and27e873a41a.core/libs/prx/libSceAgcDriver/tests/BindlessTable.cppcore/libs/prx/libSceAgcDriver/tests/TextureService.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T20:54:10Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected portions show the opt-in heap path checking device support and handling lookup misses, but this review is incomplete: I inspected targeted ranges in 7 of 79 changed files.
What I ran
Head:
27e873a41a623c2f0193c805999ac5283ba4a3a6. I read the prepared description, commits, manifest and portions of the diff, then inspected source ranges withrepo_read.py. No tests, builds or other checks were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None identified in the inspected ranges.
Sources
Not verified
Targeted source ranges were inspected in
ResourceMaterializer.cpp,SpirvImageEmitter.cpp,VulkanDevice.cpp,TextureService.cpp,DescriptorHeap.cpp,BindlessResolvers.cppandBindlessTable.cpp. The other 72 changed files were not inspected. The manifest includes full text for 61 files and omits 18 for size; no files were excluded by the configured suffix or directory rules. Tests, builds, Linux behavior, other GPUs and console behavior were not verified. The test results in the PR description are author-reported, not runs performed for this review.To get this to a good state
Nothing is required. Optional: complete source review of the remaining changed files before treating this as a formal approval.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:21:33Z.
Review: COMMENTED
The trial merge onto
a1b75b0947conflicts inResourceTracker.cpp. Please reconcile table provenance against the current tracker before advancing the descriptor-heap ABI. Keep ordinary image-table fallback, table growth and reused descriptor slots in the focused comparison. The opt-in mode spans shader binding plus device allocation, so a resolved compiler merge alone cannot verify lifetime across draws.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.