feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508

Open
Raghav314 wants to merge 333 commits from upstream-pr/9508 into main
Raghav314 commented 2026-10-21 23:49:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-21T23:49:40Z.


What

An opt-in GPU descriptor heap, APS5_GPU_HEAP=1, built on VK_EXT_descriptor_heap. Draws and dispatches stop rebuilding and binding descriptor sets on the CPU. It builds on the draw pipeline (#6946, merged) and replaces #6947, which is closed.

  • One binding model. With the heap on, every stage of every draw and dispatch takes the heap; the per-draw path exists only with the heap off. Each draw and dispatch is decided once, before any stage is built, from its stages' resource plans. There is no mixed-draw retry, refused pair or per-shader verdict, and any draw or dispatch that would need a per-draw fallback is treated as a heap bug, to be fixed in the heap. A stage the heap can't take fails with an error that names the slot count or the unmapped binding. APS5_GPU_HEAP_EXCLUDE is the only way to send a stage per-draw with the heap on, as a debug aid.
  • Heaps. One resource heap and one sampler heap (2048 slots, D3D12's limit), in device-local host-visible memory when the device has it. The shared image slot pool holds 233415 slots after the 57 each binding kind reserves for its absent descriptor, and grows into the rest of the resource heap, up to 524231 (APS5_HEAP_SLOT_CAP). Its length reaches shaders as a specialization constant, the way vkd3d-proton sizes its heap arrays at pipeline creation.
  • Slot lifetime. Slots are a cache of descriptors whose owners are still alive. Image and sampler slots no draw has used for two submissions are evicted, and a nearly full heap submits the open batch at the next draw or dispatch and evicts the least recently used slots. An evicted slot is handed out again only after the submission that covers it completes, so the heap needs timeline semaphores (APS5_NO_TIMELINE with APS5_GPU_HEAP fails at device creation).
  • Stage tables. Like vkd3d-proton's descriptor tables, a heap stage's resolved state outlives the draw: its image slots are taken once per stage result, and its finished shader data (walked words, data patches, slot indices), flattened SRT and image table map live in persistent tables owned by the stage result, retired after the last batch that read them. The image table map is checked against slot generations instead of being rebuilt. The bindings each stage owns and its addressed buffer elements are listed once, when the resources are built, as vkd3d-proton records its root descriptor and table masks at root signature creation.
  • Root, user and shader data. Like a vkd3d-proton root signature, a graphics pipeline gets one push layout for all its stages: the driver packs the root items its stages read (pagetable, fault and GDS addresses, stencil reference, each stage's data and user-data addresses) and each stage's hottest words into the 64 push dwords, and passes the positions as specialization constants. A stage's user-data words live in their own per-draw block with its own root address, the way the PS5 delivers user SGPRs and vkd3d-proton gives per-draw constants a root CBV: fully pushed user words write no block, and a draw that changes only user words keeps the data block. The rest goes into an upload pool of 2 MiB blocks, like vkd3d-proton's uniform upload pool, read through addresses pushed per draw. A batch takes new blocks instead of waiting, and idle blocks over 32 MiB are freed.
  • Buffers. Like vkd3d-proton's root descriptors, a heap stage passes its guest buffers as addresses in the pipeline's push layout, on every vendor: up to four records of 64-bit address and byte size per stage, mapped as storage buffers with VK_DESCRIPTOR_MAPPING_SOURCE_PUSH_ADDRESS_EXT. The size keeps the PS5's bounds rule (out-of-range loads read zero), which D3D12 root descriptors don't have. Buffers past four, or past the room left in the push data, go to a per-draw overflow block read by address. A buffer the stage only reads with scalar loads at constant offsets, within 64 KiB, is mapped as a uniform buffer, as vkd3d-proton maps root CBVs, when the device has uniformBufferStandardLayout and a uniform offset alignment of at most 256. Buffer addresses come from where the buffers are made, as vkd3d-proton keeps a resource's VA, so no draw asks the driver for one. The driver writes no buffer descriptors per draw, and the resource heap holds only image slots. Heap stages of address-based draws read guest memory in place, as the BDA table and the hardware do.
  • Samplers. A sampler whose words are constants in the shader code is embedded in the pipeline's descriptor mapping (pEmbeddedSampler), as vkd3d-proton maps static samplers, deduplicated across pipelines. Past the device's maxDescriptorHeapEmbeddedSamplers it reads a sampler heap slot at a fixed offset.
  • Images. A stage whose images all come from descriptors is recompiled in GPU mode (gpuResolvedImages): its image metadata names the binding element, and the driver writes the resolved heap slots into its shader data. Covered: sampled and storage images and samplers; image, storage image and sampler tables, image atomics through tables included; color target merges; dynamic-resolution image table variants.
  • Compute and internal passes. Compute dispatches, including indirect dispatches with thread dimensions, take the heap. The driver's own passes (color transfer, multisample readback and upload, staged merge, depth to storage, first-sample copy, sample order, the detiler's buffer detile and repack, the presentation pass, the FSR upscaler, indirect argument checks) have heap twin pipelines with a null layout and take parameters through vkCmdPushDataEXT, like vkd3d-proton's meta shaders, so they don't put the command buffer back in classic descriptor mode.
  • Reuse.
    • A heap stage keeps one compiled template per binding plan shape, and each draw carries its own descriptor words (HeapStageWords), filled straight from the draw's words. Templates are kept within APS5_HEAP_TEMPLATE_MIB and found through a per-thread front table.
    • A heap image slot is copied from the view's already encoded descriptor instead of calling vkWriteResourceDescriptorsEXT again (keyed by view, layout and kind, with a generation check), as vkd3d-proton copies CPU descriptors.
    • Cached heap draws get draw recipes, including draws whose read-only buffers or user-data V#s moved; the recipe redoes the moved-buffer check at each hit and pushes the moved buffers' addresses. A relocated heap draw patches its per-draw ring words instead of copying its program.
    • An address-based draw whose BDA accesses only read reuses its address space within the collect epoch.
    • Caches that cost as much as they saved, each benched off on its own, were removed: the heap walk memo, the stage skip, the BDA root-role memo and the pushed-range cache. APS5_HEAP_NO_CACHE=all|heap|<name>,... bypasses the remaining heap and shared draw caches by name.
  • Pipeline journal and replay. The journal knows the heap layouts, so GPU-mode pipelines are replayed on the next run. agc_shader_replay keeps a captured request's heap profile, and --gpu-heap / --no-gpu-heap override it.
  • Without the extension, or on a device whose heaps can't hold the slots, every stage takes the existing per-draw path, so lavapipe CI and other drivers are unaffected. The heap also stays off, with one log line, when the driver's VK_EXT_descriptor_heap is an older revision than the released one (specVersion below VK_EXT_DESCRIPTOR_HEAP_SPEC_VERSION; a pre-release revision crashed every heap test on an earlier 595.99.02 build, and 595.99.02 now runs the heap), or when VK_LAYER_KHRONOS_validation older than 1.4.363 is enabled (older layers check heap push data against the pre-heap rules).
  • Vulkan-Headers goes to 1.4.340, the first release with VK_EXT_descriptor_heap.
  • Changes with the heap off. Four changes also apply with APS5_GPU_HEAP unset:
    • A storage image whose DCC keys moved is refreshed in place instead of leaving the fast proof path; APS5_NO_OWN_IMAGE_REFRESH turns this off.
    • A draw recipe hit touches the resource cache's LRU order, and takes its lock, only when its entry was not touched within the last eighth of the cache's capacity.
    • The request serializer writes version 60 for every request; it carries this PR's fields after main's. Version 57 reads as main's layout, and 58 and 59 as this branch's.
    • Pipeline layouts set VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT only when the graphics pipeline library is in use. The flag is invalid without that feature (VUID-VkPipelineLayoutCreateInfo-graphicsPipelineLibrary-06753), and only pipelines linked from libraries read it.

APS5_VERIFY_GPU_HEAP=1 checks heap slots against the bound textures, images and views and the GPU-read constants, rebuilds 1 in N GPU-mode stages on the per-draw path and compares them, compares pushed ranges and relocated ring hits, and throws at the draw when anything differs. APS5_GPU_HEAP_EXCLUDE sends stage classes (compute, pixel, ..., tables, storage, sampled) to the per-draw path while the heap stays on, for bisecting. APS5_PIPELINE_STATS=2 adds a [gpu-heap] line every 10 s with heap and plain draws and dispatches, data pool MiB written, and slots held, evicted and waited for.

PPSA36082 (Hades II)

Title and scene: PPSA36082 (Hades II) 01.006.000, the hub (Crossroads), player standing still, 1920x1080, APS5_TRACE_SECONDS=60:10. Captured as the Performance report form describes: same machine, scene and settings, in one session on 2026-10-31, main first; caches warm (each build ran once into the hub and the title was restarted before its captures; no shader cache file was written during any capture); no other APS5_TRACE_* or APS5_PROFILE_* switch; log not redirected (each capture ran in its own terminal window). All with APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1. Every build had its submodules at their pins ("dirty":false).

Current main still stops Hades II while the hub loads (native multisample depth metadata fill transition is not implemented, then external GPU writes over native multisample depth are not implemented with #6300 alone). #9533 (EagleBearerYS) fixes both, so both builds have #9533 (dcf420ec7f) merged locally, without conflicts:

presents / 10 s frame p50 p90 p99 GPU busy per present queue worker busy
main 0835ec8bdc + #9533, APS5_DRAW_PIPELINE=1 952 10.41 ms 11.20 ms 12.26 ms 2.34 ms 97%
this PR 95e1f33742 + #9533, APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 1032 9.55 ms 10.73 ms 11.94 ms 2.29 ms 96%
main 0835ec8bdc + #9533 (no draw pipeline) 902 11.02 ms 11.79 ms 12.95 ms 2.44 ms 97%

The first two rows are the comparison (same draw pipeline, captured back to back): with the heap the frame p50 is 8% lower and presents 8% higher. The GPU is busy about 2.3 ms of a 10 ms frame in all of them: Hades II is bound by the queue worker recording draws, which is what the heap shortens. The third row is main with its default settings, for reference.

Changes since the Hades II capture

The captures ran on 95e1f33742. The head adds, besides merges of main:

  • heap stages keep their tables across draws: image slots are taken once per stage result, and its shader data, flattened SRT and image table map live in persistent tables; the walk memo, the stage skip, the BDA root-role memo and the pushed-range cache are deleted (7035a25dfb);
  • heap stages read their user data from a per-draw user block (4c2a741970, runtime ABI 17);
  • lighter per-draw heap work on the committer: bindings laid out when resources are built (b385f6bd79), buffer addresses carried from where buffers are made (0c27c510e5), push data copied in runs with binary-searched address overrides (1bedba2713, 0433c01751), a stage's user block reused when its inputs did not change (b92b489ce0), a per-thread template front table (af655a4ccb), relocated heap draws patching their ring words (f208a0245e);
  • pending storage images found through a sorted range index, with a lock-free check when nothing pending is near (c9a4ea4d87 to bf28d721f0, 7a3eecfaa7);
  • pipelined dispatches and sample-count dumps queue behind the draw finisher instead of draining it (5204b8a4d4);
  • the FSR upscaler draws through the heap (bcd73c1fb7), and shader request dumps are written for heap draw stages (fd6cf2c100).

Hades II has not been recaptured on the head.

Summary lines

main 0835ec8bdc + #9533, APS5_DRAW_PIPELINE=1

{"commit":"9837bacfcdac","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5794,"ms":10004.558},"presents":952,"frame_ms":{"p50":10.414,"p90":11.198,"p99":12.259,"max":13.377},"gpu_busy_ms_per_present":2.344,"worker_busy_pct":{"queue worker 0x0":96.595},"top_phases_ms_per_frame":{"Driver.Packet":10.142,"Driver.Packet.draw":7.277,"Graphics.Draw":7.264,"Driver.Draw":7.206,"Driver.DrawFinish":6.438,"Graphics.Draw.draw_and_resource_release":6.036,"Driver.Draw.prepare":4.157,"Driver.DrawFinish.shader_compile_and_link":3.928},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-823993.json.gz"}

this PR 95e1f33742 + #9533, APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1

{"commit":"37724aa7680e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":6131,"ms":10008.044},"presents":1032,"frame_ms":{"p50":9.552,"p90":10.734,"p99":11.937,"max":13.199},"gpu_busy_ms_per_present":2.285,"worker_busy_pct":{"queue worker 0x0":96.278},"top_phases_ms_per_frame":{"Driver.Packet":9.327,"Driver.Packet.draw":6.576,"Driver.Draw":6.507,"Driver.DrawFinish":6.079,"Graphics.Draw":6.022,"Graphics.Draw.draw_and_resource_release":4.888,"Driver.DrawFinish.shader_compile_and_link":4.021,"Driver.Draw.prepare":3.902},"trace_dropped":false,"trace":"aps5-trace-37724aa7680e-824541.json.gz"}

main 0835ec8bdc + #9533 (no draw pipeline)

{"commit":"9837bacfcdac","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5563,"ms":10006.024},"presents":902,"frame_ms":{"p50":11.019,"p90":11.793,"p99":12.945,"max":15.162},"gpu_busy_ms_per_present":2.436,"worker_busy_pct":{"queue worker 0x0":97.470},"top_phases_ms_per_frame":{"Driver.Packet":10.801,"Driver.Packet.draw":9.072,"Driver.Draw":8.983,"Graphics.Draw":7.347,"Graphics.Draw.draw_and_resource_release":6.089,"Driver.Draw.shader_compile_and_link":5.295,"Shader.DrawStage":3.481,"Shader.DrawStage.capture_resources":1.745},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-821781.json.gz"}

Traces:

Digests (python3 tools/trace_digest.py <trace>)

`main` 0835ec8bdc + #9533, `APS5_DRAW_PIPELINE=1`

seconds 60:10 from present 5794: 952 presents, frame p50 10.4 / p90 11.2 / p99 12.3 / max 13.4 ms, GPU busy 2.3 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.3.0-3-cachyos, 1920x1080, commit 9837bacfcdac, dropped: no

{"commit":"9837bacfcdac","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5794,"ms":10004.558},"presents":952,"frame_ms":{"p50":10.414,"p90":11.198,"p99":12.259,"max":13.377},"gpu_busy_ms_per_present":2.344,"worker_busy_pct":{"queue worker 0x0":96.595},"top_phases_ms_per_frame":{"Driver.Packet":10.142,"Driver.Packet.draw":7.277,"Graphics.Draw":7.264,"Driver.Draw":7.206,"Driver.DrawFinish":6.438,"Graphics.Draw.draw_and_resource_release":6.036,"Driver.Draw.prepare":4.157,"Driver.DrawFinish.shader_compile_and_link":3.928},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-823993.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 6381: 13.4 ms at 6177 ms: Driver.Packet (queue worker 0x0) 5.6, Graphics.Draw (draw committer) 4.7, batch (gpu) 4.3, Driver.Packet.draw (queue worker 0x0) 4.2
  • present 6073: 13.1 ms at 2921 ms: Driver.Packet (queue worker 0x0) 4.0, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.6, Driver.Draw.prepare (queue worker 0x0) 3.2
  • present 6374: 12.8 ms at 6097 ms: Graphics.Draw (draw committer) 5.0, batch (gpu) 4.6, Graphics.Draw.draw_and_resource_release (draw committer) 4.4, Driver.Packet (queue worker 0x0) 4.1
  • present 6609: 12.8 ms at 8568 ms: Driver.Packet (queue worker 0x0) 4.3, Graphics.Draw (draw committer) 3.3, Driver.Packet.draw (queue worker 0x0) 2.5, Driver.Draw (queue worker 0x0) 2.5
  • present 6129: 12.6 ms at 3514 ms: Driver.Packet (queue worker 0x0) 3.7, batch (gpu) 2.7, Graphics.Draw (draw committer) 2.6, Driver.Packet.draw (queue worker 0x0) 2.4

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 2.2 (21 %) 0.0 (0 %) 8.3 27.5 Driver.Packet 2.2, Driver.Completion 0.0
draw committer 2.9 (27 %) 0.1 (1 %) 7.6 10.3 Graphics.Draw 2.9, Recorder.Submit 0.0
title 0.0 (0 %) 0.0 (0 %) 10.5 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
draw finisher 1.5 (14 %) 0.0 (0 %) 9.0 16.6 Driver.DrawFinish 1.5
presenter 0.5 (4 %) 0.0 (0 %) 10.0 0.1 VideoOut.Flip 0.5, Driver.Present 0.0
gpu 2.3 (22 %) 0.0 (0 %) 8.2 0.0 batch 2.3

Largest slices (ms per frame, inclusive, all threads): Graphics.Draw 2.9, batch 2.3, Driver.Packet 2.2, Graphics.Draw.draw_and_resource_release 2.1, Driver.Packet.draw 1.5, Driver.Draw 1.5, Driver.DrawFinish 1.5, Driver.DrawFinish.draw_enqueued 1.0, Driver.Draw.prepare 0.6, Driver.Draw.draw_handed_off 0.6

Longest waits

  • Driver.Present.render_fence_wait (presenter) 1.3 ms at 6063 ms, present 6371
  • GpuMutex.wait.hook (presenter) 0.8 ms at 7538 ms, present 6510
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 2805 ms, present 6062
  • Driver.Present.gpu_mutex_wait (presenter) 0.4 ms at 2730 ms, present 6055
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 4671 ms, present 6239
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 3832 ms, present 6159
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 2480 ms, present 6031
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 2989 ms, present 6079
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 5209 ms, present 6290
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 5284 ms, present 6297

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 8213: 1.9 ms at 6066 ms, present 6371: GPU no ranges; recorded by Recorder.Sync (draw committer) 2.2, Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 8240: 1.8 ms at 6089 ms, present 6373: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 8226: 1.7 ms at 6077 ms, present 6372: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 8255: 1.4 ms at 6101 ms, present 6374: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 8432: 1.2 ms at 6239 ms, present 6386: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
this PR 95e1f33742 + #9533, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`

seconds 60:10 from present 6131: 1032 presents, frame p50 9.6 / p90 10.7 / p99 11.9 / max 13.2 ms, GPU busy 2.3 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.3.0-3-cachyos, 1920x1080, commit 37724aa7680e, dropped: no

{"commit":"37724aa7680e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":6131,"ms":10008.044},"presents":1032,"frame_ms":{"p50":9.552,"p90":10.734,"p99":11.937,"max":13.199},"gpu_busy_ms_per_present":2.285,"worker_busy_pct":{"queue worker 0x0":96.278},"top_phases_ms_per_frame":{"Driver.Packet":9.327,"Driver.Packet.draw":6.576,"Driver.Draw":6.507,"Driver.DrawFinish":6.079,"Graphics.Draw":6.022,"Graphics.Draw.draw_and_resource_release":4.888,"Driver.DrawFinish.shader_compile_and_link":4.021,"Driver.Draw.prepare":3.902},"trace_dropped":false,"trace":"aps5-trace-37724aa7680e-824541.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 6212: 13.2 ms at 816 ms: batch (gpu) 5.6, Driver.Packet (queue worker 0x0) 5.1, Driver.Packet.draw (queue worker 0x0) 4.6, Driver.Draw (queue worker 0x0) 4.6
  • present 6206: 12.8 ms at 748 ms: Driver.Packet (queue worker 0x0) 4.4, batch (gpu) 4.4, Driver.Packet.draw (queue worker 0x0) 3.3, Driver.Draw (queue worker 0x0) 3.3
  • present 7064: 12.6 ms at 9063 ms: Driver.Packet (queue worker 0x0) 3.3, Driver.Packet.draw (queue worker 0x0) 3.0, Driver.Draw (queue worker 0x0) 3.0, Driver.Draw.prepare (queue worker 0x0) 2.5
  • present 6221: 12.5 ms at 906 ms: Driver.Packet (queue worker 0x0) 3.7, Driver.Packet.draw (queue worker 0x0) 3.5, Driver.Draw (queue worker 0x0) 3.5, Driver.DrawFinish (draw finisher) 3.3
  • present 6200: 12.5 ms at 680 ms: batch (gpu) 4.7, Driver.Packet (queue worker 0x0) 4.4, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.6

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 1.8 (18 %) 0.0 (0 %) 7.9 25.7 Driver.Packet 1.8, Driver.Completion 0.0
draw committer 1.1 (12 %) 0.1 (1 %) 8.5 10.1 Graphics.Draw 1.1, Recorder.Reap 0.0
title 0.0 (0 %) 0.0 (0 %) 9.7 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
draw finisher 1.1 (11 %) 0.0 (0 %) 8.6 16.0 Driver.DrawFinish 1.1
presenter 0.4 (4 %) 0.0 (0 %) 9.3 0.1 VideoOut.Flip 0.4, Driver.Present 0.0
gpu 2.3 (24 %) 0.0 (0 %) 7.4 0.0 batch 2.3

Largest slices (ms per frame, inclusive, all threads): batch 2.3, Driver.Packet 1.8, Driver.Packet.draw 1.3, Driver.Draw 1.2, Graphics.Draw 1.1, Driver.DrawFinish 1.1, Graphics.Draw.draw_and_resource_release 0.9, Driver.Draw.prepare 0.7, Driver.DrawFinish.draw_enqueued 0.6, Recorder.Sync 0.5

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 0.6 ms at 3023 ms, present 6443
  • Driver.Present.render_fence_wait (presenter) 0.5 ms at 704 ms, present 6202
  • Driver.Present.render_fence_wait (presenter) 0.5 ms at 9037 ms, present 7061
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 8920 ms, present 7049
  • Driver.Present.gpu_mutex_wait (presenter) 0.4 ms at 2010 ms, present 6337
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 9371 ms, present 7096
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 5799 ms, present 6728
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 9104 ms, present 7068
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 5557 ms, present 6703
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 5666 ms, present 6714

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 1156: 1.9 ms at 797 ms, present 6210: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 1187: 1.9 ms at 821 ms, present 6212: GPU no ranges; recorded by Recorder.Sync (draw committer) 3.2, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.0
  • batch 1068: 1.4 ms at 728 ms, present 6204: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 1024: 1.4 ms at 696 ms, present 6201: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 1112: 1.4 ms at 764 ms, present 6207: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
`main` 0835ec8bdc + #9533 (no draw pipeline)

seconds 60:10 from present 5563: 902 presents, frame p50 11.0 / p90 11.8 / p99 12.9 / max 15.2 ms, GPU busy 2.4 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.3.0-3-cachyos, 1920x1080, commit 9837bacfcdac, dropped: no

{"commit":"9837bacfcdac","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5563,"ms":10006.024},"presents":902,"frame_ms":{"p50":11.019,"p90":11.793,"p99":12.945,"max":15.162},"gpu_busy_ms_per_present":2.436,"worker_busy_pct":{"queue worker 0x0":97.47},"top_phases_ms_per_frame":{"Driver.Packet":10.801,"Driver.Packet.draw":9.072,"Driver.Draw":8.983,"Graphics.Draw":7.347,"Graphics.Draw.draw_and_resource_release":6.089,"Driver.Draw.shader_compile_and_link":5.295,"Shader.DrawStage":3.481,"Shader.DrawStage.capture_resources":1.745},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-821781.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 6117: 15.2 ms at 6127 ms: Driver.Packet (queue worker 0x0) 5.0, Driver.Packet.draw (queue worker 0x0) 4.8, Driver.Draw (queue worker 0x0) 4.7, Graphics.Draw (draw committer) 3.9
  • present 6236: 14.4 ms at 7464 ms: Driver.Packet (queue worker 0x0) 6.1, Driver.Packet.draw (queue worker 0x0) 5.9, Driver.Draw (queue worker 0x0) 5.9, Graphics.Draw (draw committer) 4.2
  • present 6116: 14.3 ms at 6113 ms: Driver.Packet (queue worker 0x0) 5.5, Driver.Packet.draw (queue worker 0x0) 4.8, Driver.Draw (queue worker 0x0) 4.8, Graphics.Draw (draw committer) 3.7
  • present 5858: 14.0 ms at 3265 ms: Driver.Packet (queue worker 0x0) 5.6, Driver.Packet.draw (queue worker 0x0) 5.1, Driver.Draw (queue worker 0x0) 5.1, Graphics.Draw (draw committer) 3.4
  • present 6363: 13.3 ms at 8866 ms: Driver.Packet (queue worker 0x0) 4.5, Driver.Packet.draw (queue worker 0x0) 4.3, Driver.Draw (queue worker 0x0) 4.3, Graphics.Draw (draw committer) 2.9

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 2.8 (25 %) 0.0 (0 %) 8.3 35.8 Driver.Packet 2.8, Driver.Completion 0.0
draw committer 2.8 (25 %) 0.1 (1 %) 8.2 10.6 Graphics.Draw 2.8, Recorder.Submit 0.0
title 0.0 (0 %) 0.0 (0 %) 11.1 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
presenter 0.4 (4 %) 0.0 (0 %) 10.7 0.1 VideoOut.Flip 0.4, Driver.Present 0.0
gpu 2.4 (22 %) 0.0 (0 %) 8.7 0.0 batch 2.4

Largest slices (ms per frame, inclusive, all threads): Graphics.Draw 2.8, Driver.Packet 2.8, Driver.Packet.draw 2.7, Driver.Draw 2.6, batch 2.4, Graphics.Draw.draw_and_resource_release 2.0, Driver.Draw.shader_compile_and_link 0.5, Driver.Draw.draw_enqueued 0.5, VideoOut.Flip 0.4, VideoOut.Flip.present 0.4

Longest waits

  • Driver.Present.render_fence_wait (presenter) 0.6 ms at 8725 ms, present 6350
  • Driver.Present.render_fence_wait (presenter) 0.6 ms at 6249 ms, present 6127
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 3640 ms, present 5892
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 1236 ms, present 5675
  • Driver.Present.render_fence_wait (presenter) 0.4 ms at 8989 ms, present 6374
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 8526 ms, present 6332
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 4992 ms, present 6015
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 1597 ms, present 5707
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 859 ms, present 5641
  • Driver.Present.render_fence_wait (presenter) 0.3 ms at 136 ms, present 5575

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 4828: 0.9 ms at 3590 ms, present 5887: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 12479: 0.9 ms at 9274 ms, present 6399: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 929: 0.8 ms at 688 ms, present 5625: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 3291: 0.8 ms at 2457 ms, present 5784: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 1581: 0.7 ms at 1172 ms, present 5669: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
Previous capture (superseded): main 1189ec3003 + #9533 against this PR d8c243bb46 + #9533, 2026-10-30
presents / 10 s frame p50 p90 p99 GPU busy per present queue worker busy
main 1189ec3003 + #9533 896 11.10 ms 11.88 ms 12.96 ms 2.38 ms 97%
this PR d8c243bb46 + #9533, APS5_DRAW_PIPELINE=1 929 10.68 ms 11.47 ms 13.07 ms 2.38 ms 97%
this PR d8c243bb46 + #9533, APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 1015 9.72 ms 10.75 ms 12.30 ms 2.25 ms 96%

Traces: https://github.com/Raghav314/AnyPS5/releases/tag/perf-traces-9508-hades-hub

Earlier comparison (superseded): main a6dcea927 + #6300 against this PR 23b2a3fc2d + #6300

That comparison is kept for the record. Its main trace (de49f41349a9) reported dropped: yes: the trace dropped events, so its digest undercounts slices for that capture, while its summary line's frame times are complete. The two PR traces reported dropped: no. None of the three captures above dropped events.

Title and scene: PPSA36082 (Hades II), the hub (Crossroads), player standing still, APS5_TRACE_SECONDS=120:10. Caches warm: each setting was run once into the hub and the title restarted before its capture. No other APS5_TRACE_* or APS5_PROFILE_* switch, log not redirected (the title ran in a terminal). All three with APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 and nothing else changed.

Current main stops Hades II while the hub loads (native multisample depth metadata fill transition is not implemented), so every build here has #6300 merged locally. The main build is a6dcea927 + #6300 (local merge commit de49f41349); this PR's is 23b2a3fc2d + #6300 (local merge commit 568369d27a), the PR as of the descriptor heap rebind fix on main a6dcea927. Since then the PR's commits changed only by test-only commits and rebases onto newer main; the numbers were not captured again on the current head.

presents / 10 s frame p50 p99 GPU busy per present queue worker busy
main a6dcea927 + #6300 706 14.0 ms 18.7 ms 2.22 ms 98%
this PR + #6300, APS5_DRAW_PIPELINE=1 886 11.2 ms 13.7 ms 2.34 ms 96%
this PR + #6300, APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 1014 9.7 ms 12.1 ms 2.08 ms 96%

The heap is +14% over the draw pipeline alone and +44% over main.

Summary lines

main a6dcea927 + #6300

{"commit":"de49f41349a9","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":8859,"ms":10001.243},"presents":706,"frame_ms":{"p50":13.955,"p90":15.665,"p99":18.680,"max":25.064},"gpu_busy_ms_per_present":2.224,"worker_busy_pct":{"queue worker 0x0":97.766},"top_phases_ms_per_frame":{"Driver.Packet":13.844,"Driver.Packet.draw":11.959,"Driver.Draw":11.850,"Driver.Draw.shader_compile_and_link":8.284,"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":6.859,"Shader.DrawStage":5.206,"Shader.DrawStage.capture_resources":3.196},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.816,"events_lost":132221,"totals_full":false}},"trace":"aps5-trace-de49f41349a9-624652.json.gz"}

this PR + #6300, APS5_DRAW_PIPELINE=1

{"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":10851,"ms":10010.638},"presents":886,"frame_ms":{"p50":11.172,"p90":12.083,"p99":13.652,"max":41.180},"gpu_busy_ms_per_present":2.340,"worker_busy_pct":{"queue worker 0x0":96.015},"top_phases_ms_per_frame":{"Driver.Packet":10.838,"Driver.Packet.draw":8.115,"Graphics.Draw":8.087,"Driver.Draw":8.030,"Driver.DrawFinish":7.151,"Graphics.Draw.draw_and_resource_release":6.678,"Driver.Draw.prepare":4.793,"Driver.DrawFinish.shader_compile_and_link":4.199},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-626697.json.gz"}

this PR + #6300, APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1

{"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":12138,"ms":10004.892},"presents":1014,"frame_ms":{"p50":9.743,"p90":10.718,"p99":12.061,"max":17.616},"gpu_busy_ms_per_present":2.080,"worker_busy_pct":{"queue worker 0x0":95.834},"top_phases_ms_per_frame":{"Driver.Packet":9.445,"Driver.Packet.draw":6.921,"Driver.Draw":6.847,"Graphics.Draw":6.376,"Driver.DrawFinish":6.362,"Graphics.Draw.draw_and_resource_release":5.216,"Driver.Draw.prepare":3.983,"Driver.DrawFinish.shader_compile_and_link":3.903},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-625697.json.gz"}

Traces:

Digests (python3 tools/trace_digest.py <trace>)

`main` a6dcea927 + #6300

seconds 120:10 from present 8859: 706 presents, frame p50 14.0 / p90 15.7 / p99 18.7 / max 25.1 ms, GPU busy 2.2 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit de49f41349a9, dropped: yes

{"commit":"de49f41349a9","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":8859,"ms":10001.243},"presents":706,"frame_ms":{"p50":13.955,"p90":15.665,"p99":18.68,"max":25.064},"gpu_busy_ms_per_present":2.224,"worker_busy_pct":{"queue worker 0x0":97.766},"top_phases_ms_per_frame":{"Driver.Packet":13.844,"Driver.Packet.draw":11.959,"Driver.Draw":11.85,"Driver.Draw.shader_compile_and_link":8.284,"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":6.859,"Shader.DrawStage":5.206,"Shader.DrawStage.capture_resources":3.196},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.816,"events_lost":132221,"totals_full":false}},"trace":"aps5-trace-de49f41349a9-624652.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 9448: 25.1 ms at 8235 ms: Graphics.Draw (draw committer) 8.2, Graphics.Draw.draw_and_resource_release (draw committer) 6.7, batch (gpu) 2.4, Recorder.Sync (draw committer) 0.5
  • present 9447: 21.4 ms at 8214 ms: Graphics.Draw (draw committer) 6.8, Graphics.Draw.draw_and_resource_release (draw committer) 5.3, batch (gpu) 2.2, Recorder.Sync (draw committer) 0.4
  • present 8967: 20.6 ms at 1554 ms: Driver.Packet (queue worker 0x0) 12.8, Driver.Packet.draw (queue worker 0x0) 12.6, Driver.Draw (queue worker 0x0) 12.5, Driver.Draw.shader_compile_and_link (queue worker 0x0) 5.6
  • present 9476: 20.0 ms at 8689 ms: Graphics.Draw (draw committer) 5.0, Graphics.Draw.draw_and_resource_release (draw committer) 3.9, batch (gpu) 2.1, Recorder.Sync (draw committer) 0.4
  • present 9436: 19.6 ms at 8054 ms: Graphics.Draw (draw committer) 5.2, Graphics.Draw.draw_and_resource_release (draw committer) 3.5, batch (gpu) 2.1, Graphics.Draw.validate (draw committer) 0.8

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 3.6 (26 %) 0.0 (0 %) 10.5 28.8 Driver.Packet 3.6, Driver.Draw.shader_compile_and_link 0.0
draw committer 2.6 (18 %) 0.2 (1 %) 11.4 12.8 Graphics.Draw 2.5, Recorder.Reap 0.0
title 0.0 (0 %) 0.0 (0 %) 14.2 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
presenter 0.3 (2 %) 0.0 (0 %) 13.9 0.1 VideoOut.Flip 0.3, Driver.Present 0.0
gpu 2.2 (16 %) 0.0 (0 %) 11.9 0.0 batch 2.2

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 3.6, Driver.Packet.draw 3.5, Driver.Draw 3.4, Graphics.Draw 2.5, batch 2.2, Graphics.Draw.draw_and_resource_release 1.6, Driver.Draw.shader_compile_and_link 1.4, Recorder.Sync 0.3, VideoOut.Flip 0.3, VideoOut.Flip.present 0.3

Longest waits

  • GpuMutex.wait.fill (draw committer) 0.6 ms at 8989 ms, present 9495
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 5107 ms, present 9226
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 9740 ms, present 9547
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 7700 ms, present 9411
  • GpuMutex.wait.fill (draw committer) 0.5 ms at 2460 ms, present 9032
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 1154 ms, present 8940
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 9985 ms, present 9564
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 8917 ms, present 9490
  • Driver.Present.render_fence_wait (presenter) 0.5 ms at 1099 ms, present 8936
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 5976 ms, present 9289

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 2230: 0.6 ms at 2082 ms, present 9004: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 8347: 0.5 ms at 7633 ms, present 9406: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 7720: 0.5 ms at 7050 ms, present 9366: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 1246: 0.5 ms at 1159 ms, present 8940: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Reap (draw committer) 0.0
  • batch 9168: 0.5 ms at 8421 ms, present 9459: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
this PR + #6300, `APS5_DRAW_PIPELINE=1`

seconds 120:10 from present 10851: 886 presents, frame p50 11.2 / p90 12.1 / p99 13.7 / max 41.2 ms, GPU busy 2.3 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit 568369d27a2e, dropped: no

{"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":10851,"ms":10010.638},"presents":886,"frame_ms":{"p50":11.172,"p90":12.083,"p99":13.652,"max":41.18},"gpu_busy_ms_per_present":2.34,"worker_busy_pct":{"queue worker 0x0":96.015},"top_phases_ms_per_frame":{"Driver.Packet":10.838,"Driver.Packet.draw":8.115,"Graphics.Draw":8.087,"Driver.Draw":8.03,"Driver.DrawFinish":7.151,"Graphics.Draw.draw_and_resource_release":6.678,"Driver.Draw.prepare":4.793,"Driver.DrawFinish.shader_compile_and_link":4.199},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-626697.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 11411: 41.2 ms at 6239 ms: Driver.Packet (queue worker 0x0) 32.8, Driver.Packet.draw (queue worker 0x0) 31.6, Driver.Draw (queue worker 0x0) 31.6, Driver.Draw.prepare (queue worker 0x0) 30.1
  • present 11229: 16.1 ms at 4198 ms: Driver.Packet (queue worker 0x0) 5.6, Graphics.Draw (draw committer) 4.7, Driver.DrawFinish (draw finisher) 4.6, Driver.Packet.draw (queue worker 0x0) 4.4
  • present 11231: 15.2 ms at 4228 ms: Driver.Packet (queue worker 0x0) 5.0, Graphics.Draw (draw committer) 3.4, Driver.Packet.draw (queue worker 0x0) 3.0, Driver.Draw (queue worker 0x0) 2.9
  • present 11479: 13.8 ms at 7077 ms: Driver.Packet (queue worker 0x0) 4.4, Graphics.Draw (draw committer) 3.8, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.5
  • present 11407: 13.8 ms at 6190 ms: Driver.Packet (queue worker 0x0) 4.8, Graphics.Draw (draw committer) 3.6, Graphics.Draw.draw_and_resource_release (draw committer) 3.0, Driver.Packet.draw (queue worker 0x0) 3.0

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 2.4 (21 %) 0.0 (0 %) 8.9 29.5 Driver.Packet 2.4, Driver.Completion 0.0
draw committer 2.6 (23 %) 0.2 (2 %) 8.4 12.5 Graphics.Draw 2.6, Recorder.Reap 0.0
title 0.0 (0 %) 0.0 (0 %) 11.3 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
draw finisher 1.7 (15 %) 0.0 (0 %) 9.6 17.8 Driver.DrawFinish 1.7
presenter 0.3 (3 %) 0.0 (0 %) 11.0 0.1 VideoOut.Flip 0.3, Driver.Present 0.0
gpu 2.3 (21 %) 0.0 (0 %) 9.0 0.0 batch 2.3

Largest slices (ms per frame, inclusive, all threads): Graphics.Draw 2.6, Driver.Packet 2.4, batch 2.3, Driver.Packet.draw 1.9, Driver.Draw 1.8, Graphics.Draw.draw_and_resource_release 1.8, Driver.DrawFinish 1.7, Driver.DrawFinish.draw_enqueued 1.0, Driver.Draw.prepare 0.9, Driver.Draw.draw_handed_off 0.5

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 1.3 ms at 7138 ms, present 11484
  • GpuMutex.wait.draw (draw committer) 0.8 ms at 6553 ms, present 11434
  • GpuMutex.wait.fill (draw committer) 0.8 ms at 4401 ms, present 11246
  • Driver.Present.gpu_mutex_wait (presenter) 0.7 ms at 690 ms, present 10913
  • GpuMutex.wait.fill (draw committer) 0.6 ms at 1700 ms, present 11004
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 1654 ms, present 11000
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 9033 ms, present 11651
  • GpuMutex.wait.fill (draw committer) 0.6 ms at 4685 ms, present 11272
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 1710 ms, present 11005
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 6239 ms, present 11411

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 10494: 0.7 ms at 7733 ms, present 11535: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.0, Recorder.Sync (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4
  • batch 979: 0.7 ms at 716 ms, present 10915: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.0, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 11842: 0.6 ms at 8716 ms, present 11622: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4
  • batch 13211: 0.6 ms at 9717 ms, present 11711: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0
  • batch 6893: 0.6 ms at 5013 ms, present 11301: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
this PR + #6300, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`

seconds 120:10 from present 12138: 1014 presents, frame p50 9.7 / p90 10.7 / p99 12.1 / max 17.6 ms, GPU busy 2.1 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit 568369d27a2e, dropped: no

{"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":12138,"ms":10004.892},"presents":1014,"frame_ms":{"p50":9.743,"p90":10.718,"p99":12.061,"max":17.616},"gpu_busy_ms_per_present":2.08,"worker_busy_pct":{"queue worker 0x0":95.834},"top_phases_ms_per_frame":{"Driver.Packet":9.445,"Driver.Packet.draw":6.921,"Driver.Draw":6.847,"Graphics.Draw":6.376,"Driver.DrawFinish":6.362,"Graphics.Draw.draw_and_resource_release":5.216,"Driver.Draw.prepare":3.983,"Driver.DrawFinish.shader_compile_and_link":3.903},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-625697.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 12364: 17.6 ms at 2219 ms: Driver.Packet (queue worker 0x0) 7.0, Driver.DrawFinish (draw finisher) 5.9, Driver.Packet.draw (queue worker 0x0) 4.9, Driver.Draw (queue worker 0x0) 4.8
  • present 12365: 14.1 ms at 2236 ms: Driver.Packet (queue worker 0x0) 3.5, Driver.Packet.draw (queue worker 0x0) 3.1, Driver.Draw (queue worker 0x0) 3.1, Graphics.Draw (draw committer) 2.6
  • present 12366: 12.8 ms at 2250 ms: Driver.Packet (queue worker 0x0) 3.6, Driver.Packet.draw (queue worker 0x0) 3.1, Driver.Draw (queue worker 0x0) 3.1, Driver.DrawFinish (draw finisher) 2.9
  • present 12396: 12.7 ms at 2557 ms: Driver.Packet (queue worker 0x0) 3.6, Driver.DrawFinish (draw finisher) 2.9, Driver.Packet.draw (queue worker 0x0) 2.8, Driver.Draw (queue worker 0x0) 2.8
  • present 12390: 12.6 ms at 2491 ms: Driver.Packet (queue worker 0x0) 5.2, Driver.Packet.draw (queue worker 0x0) 3.8, Driver.Draw (queue worker 0x0) 3.8, Driver.DrawFinish (draw finisher) 3.5

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 2.0 (21 %) 0.0 (0 %) 7.8 25.5 Driver.Packet 2.0, Driver.EndSubmission 0.0
draw committer 1.2 (12 %) 0.3 (3 %) 8.4 10.6 Graphics.Draw 1.2, Recorder.Submit 0.0
title 0.0 (0 %) 0.0 (0 %) 9.9 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
draw finisher 1.4 (15 %) 0.0 (0 %) 8.4 15.5 Driver.DrawFinish 1.4
presenter 0.3 (3 %) 0.0 (0 %) 9.5 0.1 VideoOut.Flip 0.4, Driver.Present 0.0
gpu 2.1 (21 %) 0.0 (0 %) 7.8 0.0 batch 2.1

Largest slices (ms per frame, inclusive, all threads): batch 2.1, Driver.Packet 2.0, Driver.Packet.draw 1.6, Driver.Draw 1.5, Driver.DrawFinish 1.4, Graphics.Draw 1.2, Graphics.Draw.draw_and_resource_release 1.0, Driver.DrawFinish.draw_enqueued 0.8, Driver.Draw.prepare 0.7, Driver.Draw.draw_handed_off 0.6

Longest waits

  • GpuMutex.wait.draw (draw committer) 0.7 ms at 2963 ms, present 12436
  • Driver.Present.gpu_mutex_wait (presenter) 0.7 ms at 5204 ms, present 12664
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 8697 ms, present 13020
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 767 ms, present 12216
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 2324 ms, present 12373
  • GpuMutex.wait.fill (draw committer) 0.5 ms at 806 ms, present 12220
  • GpuMutex.wait.fill (draw committer) 0.5 ms at 8757 ms, present 13026
  • GpuMutex.wait.fill (draw committer) 0.5 ms at 7518 ms, present 12901
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 8797 ms, present 13030
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 7732 ms, present 12922

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 5868: 0.6 ms at 3966 ms, present 12538: GPU no ranges; recorded by Recorder.Sync (draw committer) 0.7, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 2770: 0.6 ms at 1858 ms, present 12327: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 2372: 0.6 ms at 1593 ms, present 12300: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 2814: 0.6 ms at 1886 ms, present 12330: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0
  • batch 8289: 0.6 ms at 5594 ms, present 12704: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1

Where this can take more frame rate

The heap moves descriptor work off the CPU, but CPU-bound titles are still bound by the threads recording draws. Follow-ups that build on the heap:

  • The remaining per-draw cost of heap stages. A heap draw still writes its push data and, for stages whose words changed, its user and data blocks on the committer.
  • Warm-up. A new combination of shader and resources builds its stage template and tables on first use, so the first seconds in a new area cost more than the steady state.
  • Run-time image table lookups (#7642) would let table stages skip the CPU table resolve.

Contributions

  • milescoviello: the memory recovery that evicts heap-held sampled textures (d600dfa9b1, 9188f74501), matching cached draws' stages in one heap mode (96f38b89a7), the Ghost of Tsushima bisect, and the MGS4 heap runs and debug-build crash reports.
  • EagleBearerYS (Yunus Shaikh): the three address-space reuse fixes with their tests (1817bbed4b, 270d43a865, 758d23c805), the byte cap of the heap walk memo (b7ac0d6179), and the Windows builds of the heap tests.
  • Dean Galvin: the embedded sampler state in the compute pipeline identity (31d84cfedc), the ElementFlags sizes in the heap budget helpers (15c9133cba), the relocated-hit test under entry verification (10d2e59d25), the ring stage draw key with moved-buffer templates off (f07da0c3e8), uniform constant buffer validation under uniformBufferStandardLayout (3f20fdd36f), the disk cache format move (d943ee902e), and the merges of main into the branch (dfcd2351c4, 18247ffb6e).
  • muhmuhkuh: found that dynamic-resolution variants read the template's image table words in heap stages (fixed in 165df4827a).
  • B-Howell: spotted that a main merge dropped the float rounding test's wave64 compute target (fixed in 1a7d1b770b).
  • Dextroid17: test runs on an RTX 3080 Ti.
  • Astronaut10: the RX 9070 XT measurement that pointed at the CPU slot-write cost.

Tested

Linux 7.3.3-1-cachyos (CachyOS), x86-64, GCC, Ryzen 7 7800X3D / RTX 4090, NVIDIA 620.70.06. The AGC, shader and recompiler tests, each mode with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_BINARIES=1 and the validation layer:

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_BINARIES=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'agc_driver|recompiler|shader' -j8 --timeout 600 -V
APS5_GPU_HEAP=1 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_BINARIES=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'agc_driver|recompiler|shader' -j8 --timeout 600 -V
  • c1c98c10bd (head): 1422 tests per mode pass in default and heap mode, 0 VUID-.
  • b635a721be (the same branch code before the last two merges of main): 1417 tests per mode pass in default, heap, and heap with APS5_VERIFY_GPU_HEAP=1, 0 VUID-. With the heap and the draw pipeline (APS5_DRAW_PIPELINE=1 APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1) all pass except agc_driver_queued_constant_ram_dump and agc_driver_draw_recapture_on_change_inline, which are not written for the draw finisher and fail the same way on earlier heads.
  • The *_gpu_heap tests run the draw pipeline PR's switched tests and the sampling, table, atomics, compute, mesh relocation, thread-dimension dispatch, eviction and dynamic-resolution variant tests with APS5_GPU_HEAP=1 APS5_VERIFY_GPU_HEAP=1. New tests were checked against the code before their fix.
  • Dextroid17 ran dd7120c648 merged onto main on an RTX 3080 Ti (NVIDIA 615.78.08): 3,121 passed, 49 skipped; the one failure, agc_driver_idle_store_yields, also fails on main.
  • Hades II as above (with #9533 merged locally). Grand Theft Auto V runs in game on the head's heap code with no heap errors; Minecraft Dungeons II and Hades II took no per-draw fallback before it was removed. Astro's Playroom (PPSA01325) runs into the game with no flicker.

Known limits

  • A stage that needs more image slots than the heap holds, or whose module keeps a binding the heap does not map (registration-module set 0 storage images), fails with an error instead of running per-draw. No title run so far has hit either. The technical debt file lists them.
  • With APS5_HEAP_SLOT_CAP far below the default, stages that each fit can still exhaust the heap between their compile and their bind, because the nearly-full margin scales with the cap.
  • The heap needs the released revision of VK_EXT_descriptor_heap, timeline semaphores, and heaps that hold the shared image slot pool and 2048 samplers. Other devices run the existing path.
  • Ghost of Tsushima (PPSA02225) whited out with the heap on when compute stages wrote storage images through it (milescoviello's bisect). eb606888cc and 95e1f33742 fixed the two heap paths that made such stores write zeros (multisampled targets, and uint stores through image tables), each with a _gpu_heap test. milescoviello confirmed the white-out is gone, and the full heap runs in-game to his 1,200 s timeout.
  • milescoviello's MGS4 runs with the heap and the draw pipeline hit a glibc heap-corruption abort, once in the walk memo's eviction and once at teardown. The walk memo is deleted (7035a25dfb). It has not reproduced here under glibc.malloc.check=3, ASan or ThreadSanitizer; his rerun on the current head is pending.

Testing other titles

Please post:

  • the title ID, GPU, driver and OS;
  • the summary line (APS5_TRACE_SECONDS=70:10, captured as the Performance report form describes: warm caches, no other trace or profile switch, log not redirected) with APS5_DRAW_PIPELINE=1 and with APS5_GPU_HEAP=1 APS5_DRAW_PIPELINE=1, both with APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 and nothing else changed;
  • whether anything renders differently (wrong or missing textures, flicker);
  • any heap error that stops the title (it names the stage's slot count or unmapped binding);
  • with APS5_VERIFY_GPU_HEAP=1, the last [heap-slots] and [gpu-heap] lines (a slot holding another texture or a differing stage is a bug).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (Vulkan-Headers bumped to 1.4.340)
  • Generic behaviour, not specific to one title
  • Depends on: none (#6946 is merged)
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4090, 620.70.06, Linux 7.3.3-1-cachyos (CachyOS); RTX 3080 Ti, 615.78.08 (Dextroid17)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4959901327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-21T23:49:40Z. --- ### What An opt-in GPU descriptor heap, `APS5_GPU_HEAP=1`, built on `VK_EXT_descriptor_heap`. Draws and dispatches stop rebuilding and binding descriptor sets on the CPU. It builds on the draw pipeline (#6946, merged) and replaces #6947, which is closed. - **One binding model.** With the heap on, every stage of every draw and dispatch takes the heap; the per-draw path exists only with the heap off. Each draw and dispatch is decided once, before any stage is built, from its stages' resource plans. There is no mixed-draw retry, refused pair or per-shader verdict, and any draw or dispatch that would need a per-draw fallback is treated as a heap bug, to be fixed in the heap. A stage the heap can't take fails with an error that names the slot count or the unmapped binding. `APS5_GPU_HEAP_EXCLUDE` is the only way to send a stage per-draw with the heap on, as a debug aid. - **Heaps.** One resource heap and one sampler heap (2048 slots, D3D12's limit), in device-local host-visible memory when the device has it. The shared image slot pool holds 233415 slots after the 57 each binding kind reserves for its absent descriptor, and grows into the rest of the resource heap, up to 524231 (`APS5_HEAP_SLOT_CAP`). Its length reaches shaders as a specialization constant, the way vkd3d-proton sizes its heap arrays at pipeline creation. - **Slot lifetime.** Slots are a cache of descriptors whose owners are still alive. Image and sampler slots no draw has used for two submissions are evicted, and a nearly full heap submits the open batch at the next draw or dispatch and evicts the least recently used slots. An evicted slot is handed out again only after the submission that covers it completes, so the heap needs timeline semaphores (`APS5_NO_TIMELINE` with `APS5_GPU_HEAP` fails at device creation). - **Stage tables.** Like vkd3d-proton's descriptor tables, a heap stage's resolved state outlives the draw: its image slots are taken once per stage result, and its finished shader data (walked words, data patches, slot indices), flattened SRT and image table map live in persistent tables owned by the stage result, retired after the last batch that read them. The image table map is checked against slot generations instead of being rebuilt. The bindings each stage owns and its addressed buffer elements are listed once, when the resources are built, as vkd3d-proton records its root descriptor and table masks at root signature creation. - **Root, user and shader data.** Like a vkd3d-proton root signature, a graphics pipeline gets one push layout for all its stages: the driver packs the root items its stages read (pagetable, fault and GDS addresses, stencil reference, each stage's data and user-data addresses) and each stage's hottest words into the 64 push dwords, and passes the positions as specialization constants. A stage's user-data words live in their own per-draw block with its own root address, the way the PS5 delivers user SGPRs and vkd3d-proton gives per-draw constants a root CBV: fully pushed user words write no block, and a draw that changes only user words keeps the data block. The rest goes into an upload pool of 2 MiB blocks, like vkd3d-proton's uniform upload pool, read through addresses pushed per draw. A batch takes new blocks instead of waiting, and idle blocks over 32 MiB are freed. - **Buffers.** Like vkd3d-proton's root descriptors, a heap stage passes its guest buffers as addresses in the pipeline's push layout, on every vendor: up to four records of 64-bit address and byte size per stage, mapped as storage buffers with `VK_DESCRIPTOR_MAPPING_SOURCE_PUSH_ADDRESS_EXT`. The size keeps the PS5's bounds rule (out-of-range loads read zero), which D3D12 root descriptors don't have. Buffers past four, or past the room left in the push data, go to a per-draw overflow block read by address. A buffer the stage only reads with scalar loads at constant offsets, within 64 KiB, is mapped as a uniform buffer, as vkd3d-proton maps root CBVs, when the device has `uniformBufferStandardLayout` and a uniform offset alignment of at most 256. Buffer addresses come from where the buffers are made, as vkd3d-proton keeps a resource's VA, so no draw asks the driver for one. The driver writes no buffer descriptors per draw, and the resource heap holds only image slots. Heap stages of address-based draws read guest memory in place, as the BDA table and the hardware do. - **Samplers.** A sampler whose words are constants in the shader code is embedded in the pipeline's descriptor mapping (`pEmbeddedSampler`), as vkd3d-proton maps static samplers, deduplicated across pipelines. Past the device's `maxDescriptorHeapEmbeddedSamplers` it reads a sampler heap slot at a fixed offset. - **Images.** A stage whose images all come from descriptors is recompiled in GPU mode (`gpuResolvedImages`): its image metadata names the binding element, and the driver writes the resolved heap slots into its shader data. Covered: sampled and storage images and samplers; image, storage image and sampler tables, image atomics through tables included; color target merges; dynamic-resolution image table variants. - **Compute and internal passes.** Compute dispatches, including indirect dispatches with thread dimensions, take the heap. The driver's own passes (color transfer, multisample readback and upload, staged merge, depth to storage, first-sample copy, sample order, the detiler's buffer detile and repack, the presentation pass, the FSR upscaler, indirect argument checks) have heap twin pipelines with a null layout and take parameters through `vkCmdPushDataEXT`, like vkd3d-proton's meta shaders, so they don't put the command buffer back in classic descriptor mode. - **Reuse.** - A heap stage keeps one compiled template per binding plan shape, and each draw carries its own descriptor words (`HeapStageWords`), filled straight from the draw's words. Templates are kept within `APS5_HEAP_TEMPLATE_MIB` and found through a per-thread front table. - A heap image slot is copied from the view's already encoded descriptor instead of calling `vkWriteResourceDescriptorsEXT` again (keyed by view, layout and kind, with a generation check), as vkd3d-proton copies CPU descriptors. - Cached heap draws get draw recipes, including draws whose read-only buffers or user-data V#s moved; the recipe redoes the moved-buffer check at each hit and pushes the moved buffers' addresses. A relocated heap draw patches its per-draw ring words instead of copying its program. - An address-based draw whose BDA accesses only read reuses its address space within the collect epoch. - Caches that cost as much as they saved, each benched off on its own, were removed: the heap walk memo, the stage skip, the BDA root-role memo and the pushed-range cache. `APS5_HEAP_NO_CACHE=all|heap|<name>,...` bypasses the remaining heap and shared draw caches by name. - **Pipeline journal and replay.** The journal knows the heap layouts, so GPU-mode pipelines are replayed on the next run. `agc_shader_replay` keeps a captured request's heap profile, and `--gpu-heap` / `--no-gpu-heap` override it. - **Without the extension**, or on a device whose heaps can't hold the slots, every stage takes the existing per-draw path, so lavapipe CI and other drivers are unaffected. The heap also stays off, with one log line, when the driver's `VK_EXT_descriptor_heap` is an older revision than the released one (`specVersion` below `VK_EXT_DESCRIPTOR_HEAP_SPEC_VERSION`; a pre-release revision crashed every heap test on an earlier 595.99.02 build, and 595.99.02 now runs the heap), or when `VK_LAYER_KHRONOS_validation` older than 1.4.363 is enabled (older layers check heap push data against the pre-heap rules). - **Vulkan-Headers** goes to 1.4.340, the first release with `VK_EXT_descriptor_heap`. - **Changes with the heap off.** Four changes also apply with `APS5_GPU_HEAP` unset: - A storage image whose DCC keys moved is refreshed in place instead of leaving the fast proof path; `APS5_NO_OWN_IMAGE_REFRESH` turns this off. - A draw recipe hit touches the resource cache's LRU order, and takes its lock, only when its entry was not touched within the last eighth of the cache's capacity. - The request serializer writes version 60 for every request; it carries this PR's fields after main's. Version 57 reads as main's layout, and 58 and 59 as this branch's. - Pipeline layouts set `VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT` only when the graphics pipeline library is in use. The flag is invalid without that feature (VUID-VkPipelineLayoutCreateInfo-graphicsPipelineLibrary-06753), and only pipelines linked from libraries read it. `APS5_VERIFY_GPU_HEAP=1` checks heap slots against the bound textures, images and views and the GPU-read constants, rebuilds 1 in N GPU-mode stages on the per-draw path and compares them, compares pushed ranges and relocated ring hits, and throws at the draw when anything differs. `APS5_GPU_HEAP_EXCLUDE` sends stage classes (`compute`, `pixel`, ..., `tables`, `storage`, `sampled`) to the per-draw path while the heap stays on, for bisecting. `APS5_PIPELINE_STATS=2` adds a `[gpu-heap]` line every 10 s with heap and plain draws and dispatches, data pool MiB written, and slots held, evicted and waited for. ### PPSA36082 (Hades II) **Title and scene:** PPSA36082 (Hades II) 01.006.000, the hub (Crossroads), player standing still, 1920x1080, `APS5_TRACE_SECONDS=60:10`. Captured as the [Performance report](https://github.com/boykopovar/AnyPS5/blob/main/.github/ISSUE_TEMPLATE/performance.yml) form describes: same machine, scene and settings, in one session on 2026-10-31, `main` first; caches warm (each build ran once into the hub and the title was restarted before its captures; no shader cache file was written during any capture); no other `APS5_TRACE_*` or `APS5_PROFILE_*` switch; log not redirected (each capture ran in its own terminal window). All with `APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1`. Every build had its submodules at their pins (`"dirty":false`). Current `main` still stops Hades II while the hub loads (`native multisample depth metadata fill transition is not implemented`, then `external GPU writes over native multisample depth are not implemented` with #6300 alone). #9533 (EagleBearerYS) fixes both, so both builds have #9533 (dcf420ec7f) merged locally, without conflicts: - `main` 0835ec8bdc + #9533: local merge 9837bacfcd; - this PR's head 95e1f33742 + #9533: local merge 37724aa768. | | presents / 10 s | frame p50 | p90 | p99 | GPU busy per present | queue worker busy | |---|---|---|---|---|---|---| | `main` 0835ec8bdc + #9533, `APS5_DRAW_PIPELINE=1` | 952 | 10.41 ms | 11.20 ms | 12.26 ms | 2.34 ms | 97% | | this PR 95e1f33742 + #9533, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1` | 1032 | 9.55 ms | 10.73 ms | 11.94 ms | 2.29 ms | 96% | | `main` 0835ec8bdc + #9533 (no draw pipeline) | 902 | 11.02 ms | 11.79 ms | 12.95 ms | 2.44 ms | 97% | The first two rows are the comparison (same draw pipeline, captured back to back): with the heap the frame p50 is 8% lower and presents 8% higher. The GPU is busy about 2.3 ms of a 10 ms frame in all of them: Hades II is bound by the queue worker recording draws, which is what the heap shortens. The third row is `main` with its default settings, for reference. #### Changes since the Hades II capture The captures ran on 95e1f33742. The head adds, besides merges of `main`: - heap stages keep their tables across draws: image slots are taken once per stage result, and its shader data, flattened SRT and image table map live in persistent tables; the walk memo, the stage skip, the BDA root-role memo and the pushed-range cache are deleted (7035a25dfb); - heap stages read their user data from a per-draw user block (4c2a741970, runtime ABI 17); - lighter per-draw heap work on the committer: bindings laid out when resources are built (b385f6bd79), buffer addresses carried from where buffers are made (0c27c510e5), push data copied in runs with binary-searched address overrides (1bedba2713, 0433c01751), a stage's user block reused when its inputs did not change (b92b489ce0), a per-thread template front table (af655a4ccb), relocated heap draws patching their ring words (f208a0245e); - pending storage images found through a sorted range index, with a lock-free check when nothing pending is near (c9a4ea4d87 to bf28d721f0, 7a3eecfaa7); - pipelined dispatches and sample-count dumps queue behind the draw finisher instead of draining it (5204b8a4d4); - the FSR upscaler draws through the heap (bcd73c1fb7), and shader request dumps are written for heap draw stages (fd6cf2c100). Hades II has not been recaptured on the head. **Summary lines** `main` 0835ec8bdc + #9533, `APS5_DRAW_PIPELINE=1` ```json {"commit":"9837bacfcdac","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5794,"ms":10004.558},"presents":952,"frame_ms":{"p50":10.414,"p90":11.198,"p99":12.259,"max":13.377},"gpu_busy_ms_per_present":2.344,"worker_busy_pct":{"queue worker 0x0":96.595},"top_phases_ms_per_frame":{"Driver.Packet":10.142,"Driver.Packet.draw":7.277,"Graphics.Draw":7.264,"Driver.Draw":7.206,"Driver.DrawFinish":6.438,"Graphics.Draw.draw_and_resource_release":6.036,"Driver.Draw.prepare":4.157,"Driver.DrawFinish.shader_compile_and_link":3.928},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-823993.json.gz"} ``` this PR 95e1f33742 + #9533, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1` ```json {"commit":"37724aa7680e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":6131,"ms":10008.044},"presents":1032,"frame_ms":{"p50":9.552,"p90":10.734,"p99":11.937,"max":13.199},"gpu_busy_ms_per_present":2.285,"worker_busy_pct":{"queue worker 0x0":96.278},"top_phases_ms_per_frame":{"Driver.Packet":9.327,"Driver.Packet.draw":6.576,"Driver.Draw":6.507,"Driver.DrawFinish":6.079,"Graphics.Draw":6.022,"Graphics.Draw.draw_and_resource_release":4.888,"Driver.DrawFinish.shader_compile_and_link":4.021,"Driver.Draw.prepare":3.902},"trace_dropped":false,"trace":"aps5-trace-37724aa7680e-824541.json.gz"} ``` `main` 0835ec8bdc + #9533 (no draw pipeline) ```json {"commit":"9837bacfcdac","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5563,"ms":10006.024},"presents":902,"frame_ms":{"p50":11.019,"p90":11.793,"p99":12.945,"max":15.162},"gpu_busy_ms_per_present":2.436,"worker_busy_pct":{"queue worker 0x0":97.470},"top_phases_ms_per_frame":{"Driver.Packet":10.801,"Driver.Packet.draw":9.072,"Driver.Draw":8.983,"Graphics.Draw":7.347,"Graphics.Draw.draw_and_resource_release":6.089,"Driver.Draw.shader_compile_and_link":5.295,"Shader.DrawStage":3.481,"Shader.DrawStage.capture_resources":1.745},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-821781.json.gz"} ``` **Traces:** - `main` 0835ec8bdc + #9533, `APS5_DRAW_PIPELINE=1`: [aps5-trace-9837bacfcdac-823993.json.gz](https://github.com/Raghav314/AnyPS5/releases/download/perf-traces-9508-hades-hub-2/aps5-trace-9837bacfcdac-823993.json.gz) - this PR 95e1f33742 + #9533, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`: [aps5-trace-37724aa7680e-824541.json.gz](https://github.com/Raghav314/AnyPS5/releases/download/perf-traces-9508-hades-hub-2/aps5-trace-37724aa7680e-824541.json.gz) - `main` 0835ec8bdc + #9533 (no draw pipeline): [aps5-trace-9837bacfcdac-821781.json.gz](https://github.com/Raghav314/AnyPS5/releases/download/perf-traces-9508-hades-hub-2/aps5-trace-9837bacfcdac-821781.json.gz) **Digests** (`python3 tools/trace_digest.py <trace>`) <details><summary>`main` 0835ec8bdc + #9533, `APS5_DRAW_PIPELINE=1`</summary> **seconds 60:10** from present 5794: 952 presents, frame p50 10.4 / p90 11.2 / p99 12.3 / max 13.4 ms, GPU busy 2.3 ms per present NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.3.0-3-cachyos, 1920x1080, commit 9837bacfcdac, dropped: no ```json {"commit":"9837bacfcdac","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5794,"ms":10004.558},"presents":952,"frame_ms":{"p50":10.414,"p90":11.198,"p99":12.259,"max":13.377},"gpu_busy_ms_per_present":2.344,"worker_busy_pct":{"queue worker 0x0":96.595},"top_phases_ms_per_frame":{"Driver.Packet":10.142,"Driver.Packet.draw":7.277,"Graphics.Draw":7.264,"Driver.Draw":7.206,"Driver.DrawFinish":6.438,"Graphics.Draw.draw_and_resource_release":6.036,"Driver.Draw.prepare":4.157,"Driver.DrawFinish.shader_compile_and_link":3.928},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-823993.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 6381: 13.4 ms at 6177 ms: Driver.Packet (queue worker 0x0) 5.6, Graphics.Draw (draw committer) 4.7, batch (gpu) 4.3, Driver.Packet.draw (queue worker 0x0) 4.2 - present 6073: 13.1 ms at 2921 ms: Driver.Packet (queue worker 0x0) 4.0, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.6, Driver.Draw.prepare (queue worker 0x0) 3.2 - present 6374: 12.8 ms at 6097 ms: Graphics.Draw (draw committer) 5.0, batch (gpu) 4.6, Graphics.Draw.draw_and_resource_release (draw committer) 4.4, Driver.Packet (queue worker 0x0) 4.1 - present 6609: 12.8 ms at 8568 ms: Driver.Packet (queue worker 0x0) 4.3, Graphics.Draw (draw committer) 3.3, Driver.Packet.draw (queue worker 0x0) 2.5, Driver.Draw (queue worker 0x0) 2.5 - present 6129: 12.6 ms at 3514 ms: Driver.Packet (queue worker 0x0) 3.7, batch (gpu) 2.7, Graphics.Draw (draw committer) 2.6, Driver.Packet.draw (queue worker 0x0) 2.4 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 2.2 (21 %) | 0.0 (0 %) | 8.3 | 27.5 | Driver.Packet 2.2, Driver.Completion 0.0 | | draw committer | 2.9 (27 %) | 0.1 (1 %) | 7.6 | 10.3 | Graphics.Draw 2.9, Recorder.Submit 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 10.5 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | draw finisher | 1.5 (14 %) | 0.0 (0 %) | 9.0 | 16.6 | Driver.DrawFinish 1.5 | | presenter | 0.5 (4 %) | 0.0 (0 %) | 10.0 | 0.1 | VideoOut.Flip 0.5, Driver.Present 0.0 | | gpu | 2.3 (22 %) | 0.0 (0 %) | 8.2 | 0.0 | batch 2.3 | **Largest slices** (ms per frame, inclusive, all threads): Graphics.Draw 2.9, batch 2.3, Driver.Packet 2.2, Graphics.Draw.draw_and_resource_release 2.1, Driver.Packet.draw 1.5, Driver.Draw 1.5, Driver.DrawFinish 1.5, Driver.DrawFinish.draw_enqueued 1.0, Driver.Draw.prepare 0.6, Driver.Draw.draw_handed_off 0.6 **Longest waits** - Driver.Present.render_fence_wait (presenter) 1.3 ms at 6063 ms, present 6371 - GpuMutex.wait.hook (presenter) 0.8 ms at 7538 ms, present 6510 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 2805 ms, present 6062 - Driver.Present.gpu_mutex_wait (presenter) 0.4 ms at 2730 ms, present 6055 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 4671 ms, present 6239 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 3832 ms, present 6159 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 2480 ms, present 6031 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 2989 ms, present 6079 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 5209 ms, present 6290 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 5284 ms, present 6297 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 8213: 1.9 ms at 6066 ms, present 6371: GPU no ranges; recorded by Recorder.Sync (draw committer) 2.2, Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 - batch 8240: 1.8 ms at 6089 ms, present 6373: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 - batch 8226: 1.7 ms at 6077 ms, present 6372: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 - batch 8255: 1.4 ms at 6101 ms, present 6374: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 8432: 1.2 ms at 6239 ms, present 6386: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 </details> <details><summary>this PR 95e1f33742 + #9533, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`</summary> **seconds 60:10** from present 6131: 1032 presents, frame p50 9.6 / p90 10.7 / p99 11.9 / max 13.2 ms, GPU busy 2.3 ms per present NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.3.0-3-cachyos, 1920x1080, commit 37724aa7680e, dropped: no ```json {"commit":"37724aa7680e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":6131,"ms":10008.044},"presents":1032,"frame_ms":{"p50":9.552,"p90":10.734,"p99":11.937,"max":13.199},"gpu_busy_ms_per_present":2.285,"worker_busy_pct":{"queue worker 0x0":96.278},"top_phases_ms_per_frame":{"Driver.Packet":9.327,"Driver.Packet.draw":6.576,"Driver.Draw":6.507,"Driver.DrawFinish":6.079,"Graphics.Draw":6.022,"Graphics.Draw.draw_and_resource_release":4.888,"Driver.DrawFinish.shader_compile_and_link":4.021,"Driver.Draw.prepare":3.902},"trace_dropped":false,"trace":"aps5-trace-37724aa7680e-824541.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 6212: 13.2 ms at 816 ms: batch (gpu) 5.6, Driver.Packet (queue worker 0x0) 5.1, Driver.Packet.draw (queue worker 0x0) 4.6, Driver.Draw (queue worker 0x0) 4.6 - present 6206: 12.8 ms at 748 ms: Driver.Packet (queue worker 0x0) 4.4, batch (gpu) 4.4, Driver.Packet.draw (queue worker 0x0) 3.3, Driver.Draw (queue worker 0x0) 3.3 - present 7064: 12.6 ms at 9063 ms: Driver.Packet (queue worker 0x0) 3.3, Driver.Packet.draw (queue worker 0x0) 3.0, Driver.Draw (queue worker 0x0) 3.0, Driver.Draw.prepare (queue worker 0x0) 2.5 - present 6221: 12.5 ms at 906 ms: Driver.Packet (queue worker 0x0) 3.7, Driver.Packet.draw (queue worker 0x0) 3.5, Driver.Draw (queue worker 0x0) 3.5, Driver.DrawFinish (draw finisher) 3.3 - present 6200: 12.5 ms at 680 ms: batch (gpu) 4.7, Driver.Packet (queue worker 0x0) 4.4, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.6 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 1.8 (18 %) | 0.0 (0 %) | 7.9 | 25.7 | Driver.Packet 1.8, Driver.Completion 0.0 | | draw committer | 1.1 (12 %) | 0.1 (1 %) | 8.5 | 10.1 | Graphics.Draw 1.1, Recorder.Reap 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 9.7 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | draw finisher | 1.1 (11 %) | 0.0 (0 %) | 8.6 | 16.0 | Driver.DrawFinish 1.1 | | presenter | 0.4 (4 %) | 0.0 (0 %) | 9.3 | 0.1 | VideoOut.Flip 0.4, Driver.Present 0.0 | | gpu | 2.3 (24 %) | 0.0 (0 %) | 7.4 | 0.0 | batch 2.3 | **Largest slices** (ms per frame, inclusive, all threads): batch 2.3, Driver.Packet 1.8, Driver.Packet.draw 1.3, Driver.Draw 1.2, Graphics.Draw 1.1, Driver.DrawFinish 1.1, Graphics.Draw.draw_and_resource_release 0.9, Driver.Draw.prepare 0.7, Driver.DrawFinish.draw_enqueued 0.6, Recorder.Sync 0.5 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 0.6 ms at 3023 ms, present 6443 - Driver.Present.render_fence_wait (presenter) 0.5 ms at 704 ms, present 6202 - Driver.Present.render_fence_wait (presenter) 0.5 ms at 9037 ms, present 7061 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 8920 ms, present 7049 - Driver.Present.gpu_mutex_wait (presenter) 0.4 ms at 2010 ms, present 6337 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 9371 ms, present 7096 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 5799 ms, present 6728 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 9104 ms, present 7068 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 5557 ms, present 6703 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 5666 ms, present 6714 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 1156: 1.9 ms at 797 ms, present 6210: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 1187: 1.9 ms at 821 ms, present 6212: GPU no ranges; recorded by Recorder.Sync (draw committer) 3.2, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.0 - batch 1068: 1.4 ms at 728 ms, present 6204: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 1024: 1.4 ms at 696 ms, present 6201: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 1112: 1.4 ms at 764 ms, present 6207: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 </details> <details><summary>`main` 0835ec8bdc + #9533 (no draw pipeline)</summary> **seconds 60:10** from present 5563: 902 presents, frame p50 11.0 / p90 11.8 / p99 12.9 / max 15.2 ms, GPU busy 2.4 ms per present NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.3.0-3-cachyos, 1920x1080, commit 9837bacfcdac, dropped: no ```json {"commit":"9837bacfcdac","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-3-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31742,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 60:10","first_present":5563,"ms":10006.024},"presents":902,"frame_ms":{"p50":11.019,"p90":11.793,"p99":12.945,"max":15.162},"gpu_busy_ms_per_present":2.436,"worker_busy_pct":{"queue worker 0x0":97.47},"top_phases_ms_per_frame":{"Driver.Packet":10.801,"Driver.Packet.draw":9.072,"Driver.Draw":8.983,"Graphics.Draw":7.347,"Graphics.Draw.draw_and_resource_release":6.089,"Driver.Draw.shader_compile_and_link":5.295,"Shader.DrawStage":3.481,"Shader.DrawStage.capture_resources":1.745},"trace_dropped":false,"trace":"aps5-trace-9837bacfcdac-821781.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 6117: 15.2 ms at 6127 ms: Driver.Packet (queue worker 0x0) 5.0, Driver.Packet.draw (queue worker 0x0) 4.8, Driver.Draw (queue worker 0x0) 4.7, Graphics.Draw (draw committer) 3.9 - present 6236: 14.4 ms at 7464 ms: Driver.Packet (queue worker 0x0) 6.1, Driver.Packet.draw (queue worker 0x0) 5.9, Driver.Draw (queue worker 0x0) 5.9, Graphics.Draw (draw committer) 4.2 - present 6116: 14.3 ms at 6113 ms: Driver.Packet (queue worker 0x0) 5.5, Driver.Packet.draw (queue worker 0x0) 4.8, Driver.Draw (queue worker 0x0) 4.8, Graphics.Draw (draw committer) 3.7 - present 5858: 14.0 ms at 3265 ms: Driver.Packet (queue worker 0x0) 5.6, Driver.Packet.draw (queue worker 0x0) 5.1, Driver.Draw (queue worker 0x0) 5.1, Graphics.Draw (draw committer) 3.4 - present 6363: 13.3 ms at 8866 ms: Driver.Packet (queue worker 0x0) 4.5, Driver.Packet.draw (queue worker 0x0) 4.3, Driver.Draw (queue worker 0x0) 4.3, Graphics.Draw (draw committer) 2.9 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 2.8 (25 %) | 0.0 (0 %) | 8.3 | 35.8 | Driver.Packet 2.8, Driver.Completion 0.0 | | draw committer | 2.8 (25 %) | 0.1 (1 %) | 8.2 | 10.6 | Graphics.Draw 2.8, Recorder.Submit 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 11.1 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | presenter | 0.4 (4 %) | 0.0 (0 %) | 10.7 | 0.1 | VideoOut.Flip 0.4, Driver.Present 0.0 | | gpu | 2.4 (22 %) | 0.0 (0 %) | 8.7 | 0.0 | batch 2.4 | **Largest slices** (ms per frame, inclusive, all threads): Graphics.Draw 2.8, Driver.Packet 2.8, Driver.Packet.draw 2.7, Driver.Draw 2.6, batch 2.4, Graphics.Draw.draw_and_resource_release 2.0, Driver.Draw.shader_compile_and_link 0.5, Driver.Draw.draw_enqueued 0.5, VideoOut.Flip 0.4, VideoOut.Flip.present 0.4 **Longest waits** - Driver.Present.render_fence_wait (presenter) 0.6 ms at 8725 ms, present 6350 - Driver.Present.render_fence_wait (presenter) 0.6 ms at 6249 ms, present 6127 - GpuMutex.wait.draw (draw committer) 0.5 ms at 3640 ms, present 5892 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 1236 ms, present 5675 - Driver.Present.render_fence_wait (presenter) 0.4 ms at 8989 ms, present 6374 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 8526 ms, present 6332 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 4992 ms, present 6015 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 1597 ms, present 5707 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 859 ms, present 5641 - Driver.Present.render_fence_wait (presenter) 0.3 ms at 136 ms, present 5575 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4828: 0.9 ms at 3590 ms, present 5887: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 - batch 12479: 0.9 ms at 9274 ms, present 6399: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 929: 0.8 ms at 688 ms, present 5625: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 3291: 0.8 ms at 2457 ms, present 5784: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 1581: 0.7 ms at 1172 ms, present 5669: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 </details> <details><summary>Previous capture (superseded): <code>main</code> 1189ec3003 + #9533 against this PR d8c243bb46 + #9533, 2026-10-30</summary> | | presents / 10 s | frame p50 | p90 | p99 | GPU busy per present | queue worker busy | |---|---|---|---|---|---|---| | `main` 1189ec3003 + #9533 | 896 | 11.10 ms | 11.88 ms | 12.96 ms | 2.38 ms | 97% | | this PR d8c243bb46 + #9533, `APS5_DRAW_PIPELINE=1` | 929 | 10.68 ms | 11.47 ms | 13.07 ms | 2.38 ms | 97% | | this PR d8c243bb46 + #9533, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1` | 1015 | 9.72 ms | 10.75 ms | 12.30 ms | 2.25 ms | 96% | Traces: https://github.com/Raghav314/AnyPS5/releases/tag/perf-traces-9508-hades-hub </details> <details><summary>Earlier comparison (superseded): <code>main</code> a6dcea927 + #6300 against this PR 23b2a3fc2d + #6300</summary> That comparison is kept for the record. Its `main` trace (de49f41349a9) reported `dropped: yes`: the trace dropped events, so its digest undercounts slices for that capture, while its summary line's frame times are complete. The two PR traces reported `dropped: no`. None of the three captures above dropped events. **Title and scene:** PPSA36082 (Hades II), the hub (Crossroads), player standing still, `APS5_TRACE_SECONDS=120:10`. Caches warm: each setting was run once into the hub and the title restarted before its capture. No other `APS5_TRACE_*` or `APS5_PROFILE_*` switch, log not redirected (the title ran in a terminal). All three with `APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1` and nothing else changed. Current `main` stops Hades II while the hub loads (`native multisample depth metadata fill transition is not implemented`), so every build here has #6300 merged locally. The `main` build is a6dcea927 + #6300 (local merge commit de49f41349); this PR's is 23b2a3fc2d + #6300 (local merge commit 568369d27a), the PR as of the descriptor heap rebind fix on `main` a6dcea927. Since then the PR's commits changed only by test-only commits and rebases onto newer `main`; the numbers were not captured again on the current head. | | presents / 10 s | frame p50 | p99 | GPU busy per present | queue worker busy | |---|---|---|---|---|---| | `main` a6dcea927 + #6300 | 706 | 14.0 ms | 18.7 ms | 2.22 ms | 98% | | this PR + #6300, `APS5_DRAW_PIPELINE=1` | 886 | 11.2 ms | 13.7 ms | 2.34 ms | 96% | | this PR + #6300, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1` | 1014 | 9.7 ms | 12.1 ms | 2.08 ms | 96% | The heap is +14% over the draw pipeline alone and +44% over `main`. **Summary lines** `main` a6dcea927 + #6300 ```json {"commit":"de49f41349a9","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":8859,"ms":10001.243},"presents":706,"frame_ms":{"p50":13.955,"p90":15.665,"p99":18.680,"max":25.064},"gpu_busy_ms_per_present":2.224,"worker_busy_pct":{"queue worker 0x0":97.766},"top_phases_ms_per_frame":{"Driver.Packet":13.844,"Driver.Packet.draw":11.959,"Driver.Draw":11.850,"Driver.Draw.shader_compile_and_link":8.284,"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":6.859,"Shader.DrawStage":5.206,"Shader.DrawStage.capture_resources":3.196},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.816,"events_lost":132221,"totals_full":false}},"trace":"aps5-trace-de49f41349a9-624652.json.gz"} ``` this PR + #6300, `APS5_DRAW_PIPELINE=1` ```json {"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":10851,"ms":10010.638},"presents":886,"frame_ms":{"p50":11.172,"p90":12.083,"p99":13.652,"max":41.180},"gpu_busy_ms_per_present":2.340,"worker_busy_pct":{"queue worker 0x0":96.015},"top_phases_ms_per_frame":{"Driver.Packet":10.838,"Driver.Packet.draw":8.115,"Graphics.Draw":8.087,"Driver.Draw":8.030,"Driver.DrawFinish":7.151,"Graphics.Draw.draw_and_resource_release":6.678,"Driver.Draw.prepare":4.793,"Driver.DrawFinish.shader_compile_and_link":4.199},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-626697.json.gz"} ``` this PR + #6300, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1` ```json {"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":12138,"ms":10004.892},"presents":1014,"frame_ms":{"p50":9.743,"p90":10.718,"p99":12.061,"max":17.616},"gpu_busy_ms_per_present":2.080,"worker_busy_pct":{"queue worker 0x0":95.834},"top_phases_ms_per_frame":{"Driver.Packet":9.445,"Driver.Packet.draw":6.921,"Driver.Draw":6.847,"Graphics.Draw":6.376,"Driver.DrawFinish":6.362,"Graphics.Draw.draw_and_resource_release":5.216,"Driver.Draw.prepare":3.983,"Driver.DrawFinish.shader_compile_and_link":3.903},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-625697.json.gz"} ``` **Traces:** - `main` a6dcea927 + #6300: `aps5-trace-de49f41349a9-624652.json.gz` [aps5-trace-de49f41349a9-624652.json.gz](https://github.com/user-attachments/files/33797551/aps5-trace-de49f41349a9-624652.json.gz) - this PR + #6300, `APS5_DRAW_PIPELINE=1`: `aps5-trace-568369d27a2e-626697.json.gz` [aps5-trace-568369d27a2e-626697.json.gz](https://github.com/user-attachments/files/33797550/aps5-trace-568369d27a2e-626697.json.gz) - this PR + #6300, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`: `aps5-trace-568369d27a2e-625697.json.gz` [aps5-trace-568369d27a2e-625697.json.gz](https://github.com/user-attachments/files/33797544/aps5-trace-568369d27a2e-625697.json.gz) **Digests** (`python3 tools/trace_digest.py <trace>`) <details><summary>`main` a6dcea927 + #6300</summary> **seconds 120:10** from present 8859: 706 presents, frame p50 14.0 / p90 15.7 / p99 18.7 / max 25.1 ms, GPU busy 2.2 ms per present NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit de49f41349a9, dropped: yes ```json {"commit":"de49f41349a9","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":8859,"ms":10001.243},"presents":706,"frame_ms":{"p50":13.955,"p90":15.665,"p99":18.68,"max":25.064},"gpu_busy_ms_per_present":2.224,"worker_busy_pct":{"queue worker 0x0":97.766},"top_phases_ms_per_frame":{"Driver.Packet":13.844,"Driver.Packet.draw":11.959,"Driver.Draw":11.85,"Driver.Draw.shader_compile_and_link":8.284,"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":6.859,"Shader.DrawStage":5.206,"Shader.DrawStage.capture_resources":3.196},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.816,"events_lost":132221,"totals_full":false}},"trace":"aps5-trace-de49f41349a9-624652.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 9448: 25.1 ms at 8235 ms: Graphics.Draw (draw committer) 8.2, Graphics.Draw.draw_and_resource_release (draw committer) 6.7, batch (gpu) 2.4, Recorder.Sync (draw committer) 0.5 - present 9447: 21.4 ms at 8214 ms: Graphics.Draw (draw committer) 6.8, Graphics.Draw.draw_and_resource_release (draw committer) 5.3, batch (gpu) 2.2, Recorder.Sync (draw committer) 0.4 - present 8967: 20.6 ms at 1554 ms: Driver.Packet (queue worker 0x0) 12.8, Driver.Packet.draw (queue worker 0x0) 12.6, Driver.Draw (queue worker 0x0) 12.5, Driver.Draw.shader_compile_and_link (queue worker 0x0) 5.6 - present 9476: 20.0 ms at 8689 ms: Graphics.Draw (draw committer) 5.0, Graphics.Draw.draw_and_resource_release (draw committer) 3.9, batch (gpu) 2.1, Recorder.Sync (draw committer) 0.4 - present 9436: 19.6 ms at 8054 ms: Graphics.Draw (draw committer) 5.2, Graphics.Draw.draw_and_resource_release (draw committer) 3.5, batch (gpu) 2.1, Graphics.Draw.validate (draw committer) 0.8 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 3.6 (26 %) | 0.0 (0 %) | 10.5 | 28.8 | Driver.Packet 3.6, Driver.Draw.shader_compile_and_link 0.0 | | draw committer | 2.6 (18 %) | 0.2 (1 %) | 11.4 | 12.8 | Graphics.Draw 2.5, Recorder.Reap 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 14.2 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | presenter | 0.3 (2 %) | 0.0 (0 %) | 13.9 | 0.1 | VideoOut.Flip 0.3, Driver.Present 0.0 | | gpu | 2.2 (16 %) | 0.0 (0 %) | 11.9 | 0.0 | batch 2.2 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 3.6, Driver.Packet.draw 3.5, Driver.Draw 3.4, Graphics.Draw 2.5, batch 2.2, Graphics.Draw.draw_and_resource_release 1.6, Driver.Draw.shader_compile_and_link 1.4, Recorder.Sync 0.3, VideoOut.Flip 0.3, VideoOut.Flip.present 0.3 **Longest waits** - GpuMutex.wait.fill (draw committer) 0.6 ms at 8989 ms, present 9495 - GpuMutex.wait.draw (draw committer) 0.6 ms at 5107 ms, present 9226 - GpuMutex.wait.draw (draw committer) 0.6 ms at 9740 ms, present 9547 - GpuMutex.wait.draw (draw committer) 0.5 ms at 7700 ms, present 9411 - GpuMutex.wait.fill (draw committer) 0.5 ms at 2460 ms, present 9032 - GpuMutex.wait.draw (draw committer) 0.5 ms at 1154 ms, present 8940 - GpuMutex.wait.draw (draw committer) 0.5 ms at 9985 ms, present 9564 - GpuMutex.wait.draw (draw committer) 0.5 ms at 8917 ms, present 9490 - Driver.Present.render_fence_wait (presenter) 0.5 ms at 1099 ms, present 8936 - GpuMutex.wait.draw (draw committer) 0.5 ms at 5976 ms, present 9289 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 2230: 0.6 ms at 2082 ms, present 9004: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 - batch 8347: 0.5 ms at 7633 ms, present 9406: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 7720: 0.5 ms at 7050 ms, present 9366: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 1246: 0.5 ms at 1159 ms, present 8940: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Reap (draw committer) 0.0 - batch 9168: 0.5 ms at 8421 ms, present 9459: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 </details> <details><summary>this PR + #6300, `APS5_DRAW_PIPELINE=1`</summary> **seconds 120:10** from present 10851: 886 presents, frame p50 11.2 / p90 12.1 / p99 13.7 / max 41.2 ms, GPU busy 2.3 ms per present NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit 568369d27a2e, dropped: no ```json {"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":10851,"ms":10010.638},"presents":886,"frame_ms":{"p50":11.172,"p90":12.083,"p99":13.652,"max":41.18},"gpu_busy_ms_per_present":2.34,"worker_busy_pct":{"queue worker 0x0":96.015},"top_phases_ms_per_frame":{"Driver.Packet":10.838,"Driver.Packet.draw":8.115,"Graphics.Draw":8.087,"Driver.Draw":8.03,"Driver.DrawFinish":7.151,"Graphics.Draw.draw_and_resource_release":6.678,"Driver.Draw.prepare":4.793,"Driver.DrawFinish.shader_compile_and_link":4.199},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-626697.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 11411: 41.2 ms at 6239 ms: Driver.Packet (queue worker 0x0) 32.8, Driver.Packet.draw (queue worker 0x0) 31.6, Driver.Draw (queue worker 0x0) 31.6, Driver.Draw.prepare (queue worker 0x0) 30.1 - present 11229: 16.1 ms at 4198 ms: Driver.Packet (queue worker 0x0) 5.6, Graphics.Draw (draw committer) 4.7, Driver.DrawFinish (draw finisher) 4.6, Driver.Packet.draw (queue worker 0x0) 4.4 - present 11231: 15.2 ms at 4228 ms: Driver.Packet (queue worker 0x0) 5.0, Graphics.Draw (draw committer) 3.4, Driver.Packet.draw (queue worker 0x0) 3.0, Driver.Draw (queue worker 0x0) 2.9 - present 11479: 13.8 ms at 7077 ms: Driver.Packet (queue worker 0x0) 4.4, Graphics.Draw (draw committer) 3.8, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.5 - present 11407: 13.8 ms at 6190 ms: Driver.Packet (queue worker 0x0) 4.8, Graphics.Draw (draw committer) 3.6, Graphics.Draw.draw_and_resource_release (draw committer) 3.0, Driver.Packet.draw (queue worker 0x0) 3.0 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 2.4 (21 %) | 0.0 (0 %) | 8.9 | 29.5 | Driver.Packet 2.4, Driver.Completion 0.0 | | draw committer | 2.6 (23 %) | 0.2 (2 %) | 8.4 | 12.5 | Graphics.Draw 2.6, Recorder.Reap 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 11.3 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | draw finisher | 1.7 (15 %) | 0.0 (0 %) | 9.6 | 17.8 | Driver.DrawFinish 1.7 | | presenter | 0.3 (3 %) | 0.0 (0 %) | 11.0 | 0.1 | VideoOut.Flip 0.3, Driver.Present 0.0 | | gpu | 2.3 (21 %) | 0.0 (0 %) | 9.0 | 0.0 | batch 2.3 | **Largest slices** (ms per frame, inclusive, all threads): Graphics.Draw 2.6, Driver.Packet 2.4, batch 2.3, Driver.Packet.draw 1.9, Driver.Draw 1.8, Graphics.Draw.draw_and_resource_release 1.8, Driver.DrawFinish 1.7, Driver.DrawFinish.draw_enqueued 1.0, Driver.Draw.prepare 0.9, Driver.Draw.draw_handed_off 0.5 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 1.3 ms at 7138 ms, present 11484 - GpuMutex.wait.draw (draw committer) 0.8 ms at 6553 ms, present 11434 - GpuMutex.wait.fill (draw committer) 0.8 ms at 4401 ms, present 11246 - Driver.Present.gpu_mutex_wait (presenter) 0.7 ms at 690 ms, present 10913 - GpuMutex.wait.fill (draw committer) 0.6 ms at 1700 ms, present 11004 - GpuMutex.wait.draw (draw committer) 0.6 ms at 1654 ms, present 11000 - GpuMutex.wait.draw (draw committer) 0.6 ms at 9033 ms, present 11651 - GpuMutex.wait.fill (draw committer) 0.6 ms at 4685 ms, present 11272 - GpuMutex.wait.draw (draw committer) 0.6 ms at 1710 ms, present 11005 - GpuMutex.wait.draw (draw committer) 0.5 ms at 6239 ms, present 11411 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 10494: 0.7 ms at 7733 ms, present 11535: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.0, Recorder.Sync (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4 - batch 979: 0.7 ms at 716 ms, present 10915: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.0, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 11842: 0.6 ms at 8716 ms, present 11622: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4 - batch 13211: 0.6 ms at 9717 ms, present 11711: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0 - batch 6893: 0.6 ms at 5013 ms, present 11301: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 </details> <details><summary>this PR + #6300, `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`</summary> **seconds 120:10** from present 12138: 1014 presents, frame p50 9.7 / p90 10.7 / p99 12.1 / max 17.6 ms, GPU busy 2.1 ms per present NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit 568369d27a2e, dropped: no ```json {"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":12138,"ms":10004.892},"presents":1014,"frame_ms":{"p50":9.743,"p90":10.718,"p99":12.061,"max":17.616},"gpu_busy_ms_per_present":2.08,"worker_busy_pct":{"queue worker 0x0":95.834},"top_phases_ms_per_frame":{"Driver.Packet":9.445,"Driver.Packet.draw":6.921,"Driver.Draw":6.847,"Graphics.Draw":6.376,"Driver.DrawFinish":6.362,"Graphics.Draw.draw_and_resource_release":5.216,"Driver.Draw.prepare":3.983,"Driver.DrawFinish.shader_compile_and_link":3.903},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-625697.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 12364: 17.6 ms at 2219 ms: Driver.Packet (queue worker 0x0) 7.0, Driver.DrawFinish (draw finisher) 5.9, Driver.Packet.draw (queue worker 0x0) 4.9, Driver.Draw (queue worker 0x0) 4.8 - present 12365: 14.1 ms at 2236 ms: Driver.Packet (queue worker 0x0) 3.5, Driver.Packet.draw (queue worker 0x0) 3.1, Driver.Draw (queue worker 0x0) 3.1, Graphics.Draw (draw committer) 2.6 - present 12366: 12.8 ms at 2250 ms: Driver.Packet (queue worker 0x0) 3.6, Driver.Packet.draw (queue worker 0x0) 3.1, Driver.Draw (queue worker 0x0) 3.1, Driver.DrawFinish (draw finisher) 2.9 - present 12396: 12.7 ms at 2557 ms: Driver.Packet (queue worker 0x0) 3.6, Driver.DrawFinish (draw finisher) 2.9, Driver.Packet.draw (queue worker 0x0) 2.8, Driver.Draw (queue worker 0x0) 2.8 - present 12390: 12.6 ms at 2491 ms: Driver.Packet (queue worker 0x0) 5.2, Driver.Packet.draw (queue worker 0x0) 3.8, Driver.Draw (queue worker 0x0) 3.8, Driver.DrawFinish (draw finisher) 3.5 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 2.0 (21 %) | 0.0 (0 %) | 7.8 | 25.5 | Driver.Packet 2.0, Driver.EndSubmission 0.0 | | draw committer | 1.2 (12 %) | 0.3 (3 %) | 8.4 | 10.6 | Graphics.Draw 1.2, Recorder.Submit 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 9.9 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | draw finisher | 1.4 (15 %) | 0.0 (0 %) | 8.4 | 15.5 | Driver.DrawFinish 1.4 | | presenter | 0.3 (3 %) | 0.0 (0 %) | 9.5 | 0.1 | VideoOut.Flip 0.4, Driver.Present 0.0 | | gpu | 2.1 (21 %) | 0.0 (0 %) | 7.8 | 0.0 | batch 2.1 | **Largest slices** (ms per frame, inclusive, all threads): batch 2.1, Driver.Packet 2.0, Driver.Packet.draw 1.6, Driver.Draw 1.5, Driver.DrawFinish 1.4, Graphics.Draw 1.2, Graphics.Draw.draw_and_resource_release 1.0, Driver.DrawFinish.draw_enqueued 0.8, Driver.Draw.prepare 0.7, Driver.Draw.draw_handed_off 0.6 **Longest waits** - GpuMutex.wait.draw (draw committer) 0.7 ms at 2963 ms, present 12436 - Driver.Present.gpu_mutex_wait (presenter) 0.7 ms at 5204 ms, present 12664 - GpuMutex.wait.draw (draw committer) 0.6 ms at 8697 ms, present 13020 - GpuMutex.wait.draw (draw committer) 0.5 ms at 767 ms, present 12216 - GpuMutex.wait.draw (draw committer) 0.5 ms at 2324 ms, present 12373 - GpuMutex.wait.fill (draw committer) 0.5 ms at 806 ms, present 12220 - GpuMutex.wait.fill (draw committer) 0.5 ms at 8757 ms, present 13026 - GpuMutex.wait.fill (draw committer) 0.5 ms at 7518 ms, present 12901 - GpuMutex.wait.draw (draw committer) 0.5 ms at 8797 ms, present 13030 - GpuMutex.wait.draw (draw committer) 0.5 ms at 7732 ms, present 12922 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 5868: 0.6 ms at 3966 ms, present 12538: GPU no ranges; recorded by Recorder.Sync (draw committer) 0.7, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 2770: 0.6 ms at 1858 ms, present 12327: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 2372: 0.6 ms at 1593 ms, present 12300: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 - batch 2814: 0.6 ms at 1886 ms, present 12330: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0 - batch 8289: 0.6 ms at 5594 ms, present 12704: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1 </details> </details> ### Where this can take more frame rate The heap moves descriptor work off the CPU, but CPU-bound titles are still bound by the threads recording draws. Follow-ups that build on the heap: - **The remaining per-draw cost of heap stages.** A heap draw still writes its push data and, for stages whose words changed, its user and data blocks on the committer. - **Warm-up.** A new combination of shader and resources builds its stage template and tables on first use, so the first seconds in a new area cost more than the steady state. - **Run-time image table lookups** (#7642) would let table stages skip the CPU table resolve. #### Contributions - milescoviello: the memory recovery that evicts heap-held sampled textures (d600dfa9b1, 9188f74501), matching cached draws' stages in one heap mode (96f38b89a7), the Ghost of Tsushima bisect, and the MGS4 heap runs and debug-build crash reports. - EagleBearerYS (Yunus Shaikh): the three address-space reuse fixes with their tests (1817bbed4b, 270d43a865, 758d23c805), the byte cap of the heap walk memo (b7ac0d6179), and the Windows builds of the heap tests. - Dean Galvin: the embedded sampler state in the compute pipeline identity (31d84cfedc), the ElementFlags sizes in the heap budget helpers (15c9133cba), the relocated-hit test under entry verification (10d2e59d25), the ring stage draw key with moved-buffer templates off (f07da0c3e8), uniform constant buffer validation under `uniformBufferStandardLayout` (3f20fdd36f), the disk cache format move (d943ee902e), and the merges of `main` into the branch (dfcd2351c4, 18247ffb6e). - muhmuhkuh: found that dynamic-resolution variants read the template's image table words in heap stages (fixed in 165df4827a). - B-Howell: spotted that a main merge dropped the float rounding test's wave64 compute target (fixed in 1a7d1b770b). - Dextroid17: test runs on an RTX 3080 Ti. - Astronaut10: the RX 9070 XT measurement that pointed at the CPU slot-write cost. ### Tested Linux 7.3.3-1-cachyos (CachyOS), x86-64, GCC, Ryzen 7 7800X3D / RTX 4090, NVIDIA 620.70.06. The AGC, shader and recompiler tests, each mode with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_BINARIES=1` and the validation layer: ``` ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_BINARIES=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'agc_driver|recompiler|shader' -j8 --timeout 600 -V APS5_GPU_HEAP=1 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_BINARIES=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'agc_driver|recompiler|shader' -j8 --timeout 600 -V ``` - c1c98c10bd (head): 1422 tests per mode pass in default and heap mode, 0 `VUID-`. - b635a721be (the same branch code before the last two merges of `main`): 1417 tests per mode pass in default, heap, and heap with `APS5_VERIFY_GPU_HEAP=1`, 0 `VUID-`. With the heap and the draw pipeline (`APS5_DRAW_PIPELINE=1 APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1`) all pass except `agc_driver_queued_constant_ram_dump` and `agc_driver_draw_recapture_on_change_inline`, which are not written for the draw finisher and fail the same way on earlier heads. - The `*_gpu_heap` tests run the draw pipeline PR's switched tests and the sampling, table, atomics, compute, mesh relocation, thread-dimension dispatch, eviction and dynamic-resolution variant tests with `APS5_GPU_HEAP=1 APS5_VERIFY_GPU_HEAP=1`. New tests were checked against the code before their fix. - Dextroid17 ran dd7120c648 merged onto `main` on an RTX 3080 Ti (NVIDIA 615.78.08): 3,121 passed, 49 skipped; the one failure, `agc_driver_idle_store_yields`, also fails on `main`. - Hades II as above (with #9533 merged locally). Grand Theft Auto V runs in game on the head's heap code with no heap errors; Minecraft Dungeons II and Hades II took no per-draw fallback before it was removed. Astro's Playroom (PPSA01325) runs into the game with no flicker. ### Known limits - A stage that needs more image slots than the heap holds, or whose module keeps a binding the heap does not map (registration-module set 0 storage images), fails with an error instead of running per-draw. No title run so far has hit either. The technical debt file lists them. - With `APS5_HEAP_SLOT_CAP` far below the default, stages that each fit can still exhaust the heap between their compile and their bind, because the nearly-full margin scales with the cap. - The heap needs the released revision of `VK_EXT_descriptor_heap`, timeline semaphores, and heaps that hold the shared image slot pool and 2048 samplers. Other devices run the existing path. - Ghost of Tsushima (PPSA02225) whited out with the heap on when compute stages wrote storage images through it (milescoviello's bisect). eb606888cc and 95e1f33742 fixed the two heap paths that made such stores write zeros (multisampled targets, and uint stores through image tables), each with a `_gpu_heap` test. milescoviello confirmed the white-out is gone, and the full heap runs in-game to his 1,200 s timeout. - milescoviello's MGS4 runs with the heap and the draw pipeline hit a glibc heap-corruption abort, once in the walk memo's eviction and once at teardown. The walk memo is deleted (7035a25dfb). It has not reproduced here under `glibc.malloc.check=3`, ASan or ThreadSanitizer; his rerun on the current head is pending. ### Testing other titles Please post: - the title ID, GPU, driver and OS; - the summary line (`APS5_TRACE_SECONDS=70:10`, captured as the [Performance report](https://github.com/boykopovar/AnyPS5/blob/main/.github/ISSUE_TEMPLATE/performance.yml) form describes: warm caches, no other trace or profile switch, log not redirected) with `APS5_DRAW_PIPELINE=1` and with `APS5_GPU_HEAP=1 APS5_DRAW_PIPELINE=1`, both with `APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1` and nothing else changed; - whether anything renders differently (wrong or missing textures, flicker); - any heap error that stops the title (it names the stage's slot count or unmapped binding); - with `APS5_VERIFY_GPU_HEAP=1`, the last `[heap-slots]` and `[gpu-heap]` lines (a slot holding another texture or a differing stage is a bug). ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (Vulkan-Headers bumped to 1.4.340) - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#6946 is merged) - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4090, 620.70.06, Linux 7.3.3-1-cachyos (CachyOS); RTX 3080 Ti, 615.78.08 (Dextroid17) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-21 23:49:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T23:49:55Z.


This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329148363 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6329148363). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T23:49:55Z. --- <!-- pr-labels-perf --> This pull request is labeled `perf`, so it needs the summary line of a capture on `main` and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both `aps5-summary.jsonl` lines, attach the two traces and add the output of `tools/trace_digest.py`.
EagleBearerYS commented 2026-10-21 23:54:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T23:54:33Z.


@Raghav314 thanks for the clear notes on what was dropped and what #9508 keeps. We'll measure #9508 on Resident Evil Village (PPSA01556) on our RTX 3070 Laptop GPU, whose driver (617.42) exposes VK_EXT_descriptor_heap. We'll rebase #7642's table part onto #9508, and once we've read the ring's image-table map, we'd like to take you up on looking at the ABI together.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329209080 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6329209080). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T23:54:33Z. --- @Raghav314 thanks for the clear notes on what was dropped and what #9508 keeps. We'll measure #9508 on Resident Evil Village (PPSA01556) on our RTX 3070 Laptop GPU, whose driver (617.42) exposes `VK_EXT_descriptor_heap`. We'll rebase #7642's table part onto #9508, and once we've read the ring's image-table map, we'd like to take you up on looking at the ABI together.
MarcZX10 commented 2026-10-22 00:22:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T00:22:12Z.


One checklist detail appears inconsistent with the repository rule for Unblocks: it currently names PR #7642, while the checklist requires a title ID and its Game bring-up discussion (or none). Since this PR documents a Hades II performance result and does not identify a title stop it fixes, please use Unblocks: none unless there is a specific title issue this change unblocks; in that case, please name the title ID and discussion. This keeps the title-priority tracking accurate.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329583779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6329583779). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T00:22:12Z. --- One checklist detail appears inconsistent with the repository rule for `Unblocks`: it currently names PR #7642, while the checklist requires a title ID and its Game bring-up discussion (or `none`). Since this PR documents a Hades II performance result and does not identify a title stop it fixes, please use `Unblocks: none` unless there is a specific title issue this change unblocks; in that case, please name the title ID and discussion. This keeps the title-priority tracking accurate.
MarcZX10 commented 2026-10-22 01:18:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:18:24Z.

Review: CHANGES_REQUESTED


The updated body now satisfies the performance-report format with same-scene summary lines, trace attachments and digests; I withdraw that earlier concern. I am requesting changes for a separate correctness gap in the non-heap fallback. In core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, shader.heap is nullable and heapStage is set when any stage is in GPU mode. In Complete()/build(), the if (heapStage) RefreshHeapStage(shaders); call applies to the entire shader span. RefreshHeapStage (Execution/src/Driver/Draw/HeapStages.cpp) requires every shader stage to be GPU mode and to have a heap-backed descriptor plan. But this PR’s stated fallback explicitly allows a stage whose module cannot map onto the heap, or a mixed draw, to use the existing per-draw path. A graphics pipeline with one heap-eligible stage and one ineligible stage therefore appears to take the documented mixed/per-draw fallback and then hit a Require while refreshing all stages. Please either make refresh handle the mixed set by skipping non-heap stages (and keep their per-draw resources valid), or route the entire draw through the per-draw path before heapStage is marked. Add a regression with mixed eligible/ineligible stages on an extension-capable device, or a test of the selection/refresh helper. Hosted relinker matrix and ASan, eligibility/conventions/intake/report checks pass; product Linux/Windows jobs are skipped. The Windows runtime and title measurements in the body are author-reported. I did not run local GPU tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608165066 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5608165066). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:18:24Z. **Review:** CHANGES_REQUESTED --- The updated body now satisfies the performance-report format with same-scene summary lines, trace attachments and digests; I withdraw that earlier concern. I am requesting changes for a separate correctness gap in the non-heap fallback. In `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`, `shader.heap` is nullable and `heapStage` is set when any stage is in GPU mode. In `Complete()`/`build()`, the `if (heapStage) RefreshHeapStage(shaders);` call applies to the entire shader span. `RefreshHeapStage` (`Execution/src/Driver/Draw/HeapStages.cpp`) requires every shader stage to be GPU mode and to have a heap-backed descriptor plan. But this PR’s stated fallback explicitly allows a stage whose module cannot map onto the heap, or a mixed draw, to use the existing per-draw path. A graphics pipeline with one heap-eligible stage and one ineligible stage therefore appears to take the documented mixed/per-draw fallback and then hit a `Require` while refreshing all stages. Please either make refresh handle the mixed set by skipping non-heap stages (and keep their per-draw resources valid), or route the entire draw through the per-draw path before `heapStage` is marked. Add a regression with mixed eligible/ineligible stages on an extension-capable device, or a test of the selection/refresh helper. Hosted relinker matrix and ASan, eligibility/conventions/intake/report checks pass; product Linux/Windows jobs are skipped. The Windows runtime and title measurements in the body are author-reported. I did not run local GPU tests.
Raghav314 commented 2026-10-22 01:31:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-22T01:31:57Z.


@MarcZX10 thanks for looking. RefreshHeapStage is in ShaderResources.cpp and only writes GPU-mode stages; non-GPU stages are skipped. Mixed draws don't reach the build: Draw.cpp (the mixedHeap retry) reruns a draw whose guest stages come out mixed on the per-draw path before any resources are built, and refuses the heap for that stage pair on a second mix, so heapStage is never set for a mixed guest set. What was missing was a test of that path: agc_driver_heap_draw_sample_heap now draws a heap vertex stage with a fragment stage that fails the heap mapping (through a test-only switch, SetHeapStageUnmapped), and checks the image, that the draw retries on the per-draw path once, and that a repeat draw of the pair stays per-draw. With the retry removed, that draw throws "a pipeline with GPU-mode stages does not map onto VK_EXT_descriptor_heap".

LLM assistance used.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330499359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6330499359). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-22T01:31:57Z. --- @MarcZX10 thanks for looking. `RefreshHeapStage` is in `ShaderResources.cpp` and only writes GPU-mode stages; non-GPU stages are skipped. Mixed draws don't reach the build: `Draw.cpp` (the `mixedHeap` retry) reruns a draw whose guest stages come out mixed on the per-draw path before any resources are built, and refuses the heap for that stage pair on a second mix, so `heapStage` is never set for a mixed guest set. What was missing was a test of that path: `agc_driver_heap_draw_sample_heap` now draws a heap vertex stage with a fragment stage that fails the heap mapping (through a test-only switch, `SetHeapStageUnmapped`), and checks the image, that the draw retries on the per-draw path once, and that a repeat draw of the pair stays per-draw. With the retry removed, that draw throws "a pipeline with GPU-mode stages does not map onto VK_EXT_descriptor_heap". LLM assistance used.
MarcZX10 commented 2026-10-22 01:53:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:53:57Z.

Review: CHANGES_REQUESTED


The author has added the missing mixed-stage regression and clarified the path it exercises. I reviewed that update and withdraw my earlier mixed-stage correctness concern: the test now covers the heap-eligible vertex plus an unmappable fragment, verifies image output, checks one retry to per-draw, and checks the repeated pair remains per-draw.

I am keeping the review at changes requested for the new hosted Windows relinker result. That run completed 232/233 tests and failed only conventions_function_bodies_shard_11 by timeout. Since the other 232 passed and the failure is a timeout, it may be a runner-load issue, but the check is currently red; please rerun it or provide a green Windows matrix result before merge. The other hosted relinker jobs (Ubuntu, macOS arm64/x86_64 and ASAN), conventions, eligibility, labels and report checks pass. Linux/Windows product jobs are skipped. The Hades II trace evidence and Vulkan validation comparison are author-reported; I did not run local GPU tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608373070 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5608373070). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:53:57Z. **Review:** CHANGES_REQUESTED --- The author has added the missing mixed-stage regression and clarified the path it exercises. I reviewed that update and withdraw my earlier mixed-stage correctness concern: the test now covers the heap-eligible vertex plus an unmappable fragment, verifies image output, checks one retry to per-draw, and checks the repeated pair remains per-draw. I am keeping the review at changes requested for the new hosted Windows relinker result. That run completed 232/233 tests and failed only `conventions_function_bodies_shard_11` by timeout. Since the other 232 passed and the failure is a timeout, it may be a runner-load issue, but the check is currently red; please rerun it or provide a green Windows matrix result before merge. The other hosted relinker jobs (Ubuntu, macOS arm64/x86_64 and ASAN), conventions, eligibility, labels and report checks pass. Linux/Windows product jobs are skipped. The Hades II trace evidence and Vulkan validation comparison are author-reported; I did not run local GPU tests.
MarcZX10 commented 2026-10-22 01:53:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:53:58Z.


I reviewed the new mixed-stage fallback regression and withdraw my earlier correctness concern; it now covers the eligible/unmappable stage pair and per-draw retry. The latest Windows relinker run is still red: 232/233 tests passed, with conventions_function_bodies_shard_11 timing out. Please rerun the Windows matrix or provide a green result. Ubuntu, both macOS architectures, ASAN, conventions and policy checks pass; product builds are skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330785801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6330785801). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:53:58Z. --- I reviewed the new mixed-stage fallback regression and withdraw my earlier correctness concern; it now covers the eligible/unmappable stage pair and per-draw retry. The latest Windows relinker run is still red: 232/233 tests passed, with `conventions_function_bodies_shard_11` timing out. Please rerun the Windows matrix or provide a green result. Ubuntu, both macOS architectures, ASAN, conventions and policy checks pass; product builds are skipped.
MarcZX10 commented 2026-10-22 02:04:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T02:04:13Z.


The new performance evidence in the PR still does not meet the repository report rule for a perf change: the report describes Hades II with instrumented APS5_PROFILE_DRAW/trace switches and non-matching capture windows, but does not include two compliant warm-cache summary lines from the same scene/settings/machine, the attached base/change traces, or tools/trace_digest.py output. The title instructions also use extra profile/event switches, which are useful diagnostics but do not substitute for the prescribed performance capture. Please add the compliant comparison artifacts or remove the speed claim/perf labeling. AGC changes also require same-focused-test validation on main and change with the Khronos layer, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1, including layer-found and VUID comparison; the current report says the GPU-heap tests had no VUID errors but does not document the required main/change comparison. Hosted product builds were skipped; I did not run local tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330914629 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6330914629). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T02:04:13Z. --- The new performance evidence in the PR still does not meet the repository report rule for a `perf` change: the report describes Hades II with instrumented `APS5_PROFILE_DRAW`/trace switches and non-matching capture windows, but does not include two compliant warm-cache summary lines from the same scene/settings/machine, the attached base/change traces, or `tools/trace_digest.py` output. The title instructions also use extra profile/event switches, which are useful diagnostics but do not substitute for the prescribed performance capture. Please add the compliant comparison artifacts or remove the speed claim/perf labeling. AGC changes also require same-focused-test validation on main and change with the Khronos layer, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`, including layer-found and VUID comparison; the current report says the GPU-heap tests had no VUID errors but does not document the required main/change comparison. Hosted product builds were skipped; I did not run local tests.
MarcZX10 commented 2026-10-22 02:04:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T02:04:14Z.

Review: CHANGES_REQUESTED


The new mixed-stage fallback test resolves my previous code-path concern, and the Linux test report is useful. I am requesting changes for the repository-required evidence only: this perf PR needs compliant same-scene/same-machine warm-cache summary lines, attached base/change traces and tools/trace_digest.py output, and the AGC main/change focused validation-layer comparison. Please add those artifacts or remove the performance claim/perf labeling. I did not run local tests; hosted Linux/Windows product jobs were skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608435194 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5608435194). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T02:04:14Z. **Review:** CHANGES_REQUESTED --- The new mixed-stage fallback test resolves my previous code-path concern, and the Linux test report is useful. I am requesting changes for the repository-required evidence only: this `perf` PR needs compliant same-scene/same-machine warm-cache summary lines, attached base/change traces and `tools/trace_digest.py` output, and the AGC main/change focused validation-layer comparison. Please add those artifacts or remove the performance claim/perf labeling. I did not run local tests; hosted Linux/Windows product jobs were skipped.
Raghav314 commented 2026-10-22 02:54:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-22T02:54:09Z.


@MarcZX10 thanks, updated the description.

Your points on warm caches, APS5_TRACE_EVENTS, the redirected log and the missing main/change validation comparison were right, and are addressed below. Three things in the review didn't match the earlier description, though:

  • It set no APS5_PROFILE_* switch and did not mention APS5_PROFILE_DRAW.
  • The capture windows matched: all three were APS5_TRACE_SECONDS=120:10 in the same scene.
  • The traces were attached and the trace_digest.py output was included for all three captures.

What changed:

  • Perf: new captures per the Performance report form. Hades II hub, standing still, APS5_TRACE_SECONDS=120:10, warm caches (each setting run once into the hub and the title restarted), no other APS5_TRACE_* / APS5_PROFILE_* switch, log not redirected, same machine. Summary lines, traces and trace_digest.py output for main + #6300, APS5_DRAW_PIPELINE=1, and APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 are in the description (706 → 886 → 1014 presents / 10 s). "Testing other titles" no longer asks for extra switches.
  • Validation layer: the same 54 focused tests on main and on this PR, plus the 80 heap tests on this PR, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1: the layer was found in both logs, and there are 0 VUID- errors on both.
  • The comparison found two real bugs, both fixed:
    • VUID-vkCmdDispatch-None-11308 in the heap compute tests: push constants put the command buffer back in classic descriptor mode without the heaps being bound again (fixed in this PR, last commit).
    • Test processes aborting at exit under the layer: the draw pipeline kept the device alive past shutdown (fixed on #6946).

LLM assistance used.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331533053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6331533053). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-22T02:54:09Z. --- @MarcZX10 thanks, updated the description. Your points on warm caches, `APS5_TRACE_EVENTS`, the redirected log and the missing `main`/change validation comparison were right, and are addressed below. Three things in the review didn't match the earlier description, though: - It set no `APS5_PROFILE_*` switch and did not mention `APS5_PROFILE_DRAW`. - The capture windows matched: all three were `APS5_TRACE_SECONDS=120:10` in the same scene. - The traces were attached and the `trace_digest.py` output was included for all three captures. What changed: - **Perf:** new captures per the Performance report form. Hades II hub, standing still, `APS5_TRACE_SECONDS=120:10`, warm caches (each setting run once into the hub and the title restarted), no other `APS5_TRACE_*` / `APS5_PROFILE_*` switch, log not redirected, same machine. Summary lines, traces and `trace_digest.py` output for `main` + #6300, `APS5_DRAW_PIPELINE=1`, and `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1` are in the description (706 → 886 → 1014 presents / 10 s). "Testing other titles" no longer asks for extra switches. - **Validation layer:** the same 54 focused tests on `main` and on this PR, plus the 80 heap tests on this PR, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1`: the layer was found in both logs, and there are 0 `VUID-` errors on both. - The comparison found two real bugs, both fixed: - `VUID-vkCmdDispatch-None-11308` in the heap compute tests: push constants put the command buffer back in classic descriptor mode without the heaps being bound again (fixed in this PR, last commit). - Test processes aborting at exit under the layer: the draw pipeline kept the device alive past shutdown (fixed on #6946). LLM assistance used.
MarcZX10 commented 2026-10-22 04:22:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:22:09Z.

Review: CHANGES_REQUESTED


Correction to my 02:04 review: I rechecked the current body against the performance form and the author's 02:54 response. I withdraw my claim that the required summary lines, warm-cache capture details, trace digests, or AGC validation-layer comparison are missing. The body now reports the same-machine comparison and 54 matching base tests / 134 change tests; the layer is found in both logs with zero VUID errors. Hosted relinker jobs also now pass, resolving the earlier Windows timeout.

Two items still need correction before merge:

  1. The Performance report links appear swapped: the main bullet names aps5-trace-de49f41349a9-624652.json.gz but links to the 568369d27a2e-625697 heap capture; the heap bullet names 568369d27a2e-625697 but links to the de49f41349a9-624652 main capture. Please correct the attachments/links so each scenario points to its own trace. The baseline trace also reports trace_dropped: true; please keep that limitation explicit when describing its trace detail.
  2. The source and all new validation evidence are still based on main a6dcea9279 (plus the declared #6946/#6300 overlays), while current upstream main is c61d20f54801efc3798555829f6fedcff71ad7ff. Please update the branch and rerun conventions/overlap and the focused validation comparison on the updated tree. For the performance comparison, retain the #6300 integration needed to reach the same Hades II scene and identify the exact current-main integration base in the report.

The mixed-stage fallback regression and the latest hosted relinker matrix resolve my earlier code-path and timeout concerns. I did not run local GPU tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609230601 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5609230601). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T04:22:09Z. **Review:** CHANGES_REQUESTED --- Correction to my 02:04 review: I rechecked the current body against the performance form and the author's 02:54 response. I withdraw my claim that the required summary lines, warm-cache capture details, trace digests, or AGC validation-layer comparison are missing. The body now reports the same-machine comparison and 54 matching base tests / 134 change tests; the layer is found in both logs with zero VUID errors. Hosted relinker jobs also now pass, resolving the earlier Windows timeout. Two items still need correction before merge: 1. The Performance report links appear swapped: the main bullet names `aps5-trace-de49f41349a9-624652.json.gz` but links to the `568369d27a2e-625697` heap capture; the heap bullet names `568369d27a2e-625697` but links to the `de49f41349a9-624652` main capture. Please correct the attachments/links so each scenario points to its own trace. The baseline trace also reports `trace_dropped: true`; please keep that limitation explicit when describing its trace detail. 2. The source and all new validation evidence are still based on main `a6dcea9279` (plus the declared #6946/#6300 overlays), while current upstream main is `c61d20f54801efc3798555829f6fedcff71ad7ff`. Please update the branch and rerun conventions/overlap and the focused validation comparison on the updated tree. For the performance comparison, retain the #6300 integration needed to reach the same Hades II scene and identify the exact current-main integration base in the report. The mixed-stage fallback regression and the latest hosted relinker matrix resolve my earlier code-path and timeout concerns. I did not run local GPU tests.
JJenkx commented 2026-10-22 04:38:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T04:38:53Z.


@Raghav314, an overlap note from #9503 (mine), which the reviewer asked me to coordinate with you.

Both PRs change the same vkCmdBindDescriptorSets line in SampleOrder.cpp, in the sampled depth pass:

  • #9503 moves that bind into the draw lambda, right after vkCmdBindPipeline. Its descriptor set was bound before any pipeline. On AMD that left the second pass with a layout the bound pipeline didn't match, and led to the agc_driver_sample_order_grid_reference device loss (#9507).
  • #9508 replaces the same line, where it is now, with CmdBindDescriptorSets(..., SetBindSite::Detiler).

The two changes don't contradict each other. Whichever lands second keeps both: your wrapped call, placed inside the lambda after vkCmdBindPipeline. The storage-pass hunk at line 175 is yours alone.

#9503 is a one-line fix that has already been validated on two AMD drivers, so I'd suggest it goes first. Your rebase would then be just moving the wrapped call into the lambda. If you'd rather land first, I'll rebase #9503 onto yours instead. Either order works for me; tell me which.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332843863 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6332843863). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T04:38:53Z. --- @Raghav314, an overlap note from #9503 (mine), which the reviewer asked me to coordinate with you. Both PRs change the same `vkCmdBindDescriptorSets` line in `SampleOrder.cpp`, in the sampled depth pass: - **#9503** moves that bind *into* the `draw` lambda, right after `vkCmdBindPipeline`. Its descriptor set was bound before any pipeline. On AMD that left the second pass with a layout the bound pipeline didn't match, and led to the `agc_driver_sample_order_grid_reference` device loss (#9507). - **#9508** replaces the same line, where it is now, with `CmdBindDescriptorSets(..., SetBindSite::Detiler)`. The two changes don't contradict each other. Whichever lands second keeps both: your wrapped call, placed inside the lambda after `vkCmdBindPipeline`. The storage-pass hunk at line 175 is yours alone. #9503 is a one-line fix that has already been validated on two AMD drivers, so I'd suggest it goes first. Your rebase would then be just moving the wrapped call into the lambda. If you'd rather land first, I'll rebase #9503 onto yours instead. Either order works for me; tell me which.
EagleBearerYS commented 2026-10-22 04:40:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T04:40:29Z.


@Raghav314 a merge-order note for two small drafts next to this PR:

  • #9563 replaces the variant block in PrepareRegistered (ShaderRegistry.cpp) with RegistrationRequests, so the push-less pixel variant is prepared only for a stage without fixed push slots. This PR reworks the library prebuild in the same function and keeps the old variant block after it. Composed, this PR's prebuild stays and RegistrationRequests takes the variant block's place.
  • #9564 makes DataWordsDiffer and refreshData (ShaderResources.cpp) find a template's data bindings by binding number instead of pairing them by index. This PR changes the same lines to read the words through DrawGuestWords(shader, binding). Composed, each binding is looked up by number and its words are read through DrawGuestWords.

Neither side needs to wait, and the rebase is ours either way: if this PR merges first, #9563 and #9564 rebase onto it, and if they merge first, I'll put the resolved merge on a branch of my fork for you to take. Does that work for you?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332865080 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6332865080). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T04:40:29Z. --- @Raghav314 a merge-order note for two small drafts next to this PR: - #9563 replaces the variant block in `PrepareRegistered` (`ShaderRegistry.cpp`) with `RegistrationRequests`, so the push-less pixel variant is prepared only for a stage without fixed push slots. This PR reworks the library prebuild in the same function and keeps the old variant block after it. Composed, this PR's prebuild stays and `RegistrationRequests` takes the variant block's place. - #9564 makes `DataWordsDiffer` and `refreshData` (`ShaderResources.cpp`) find a template's data bindings by binding number instead of pairing them by index. This PR changes the same lines to read the words through `DrawGuestWords(shader, binding)`. Composed, each binding is looked up by number and its words are read through `DrawGuestWords`. Neither side needs to wait, and the rebase is ours either way: if this PR merges first, #9563 and #9564 rebase onto it, and if they merge first, I'll put the resolved merge on a branch of my fork for you to take. Does that work for you?
teepean commented 2026-10-22 07:41:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by teepean on 2026-10-22T07:41:07Z.


@Raghav314 #9508 on Stray (PPSA02100), Linux, same driver as your runs. Short version: APS5_GPU_HEAP=1 is +5.2 % here, it won all 6 rounds, and its frames match the per-draw path.

Setup

  • Linux (CachyOS, kernel 7.2.10, scx_lavd), Ryzen 9 9950X, RTX 3090 (NVIDIA 615.78.08, VK_EXT_descriptor_heap revision 1), GCC 16.2.1, Release.
  • This PR's head 23b2a3fc2d as is (main a6dcea9279 base).
  • Stray at the start of the Dead City chapter, 3840x2160, stock engine.ini, scripted input, one run at a time. Mean FPS over seconds 180-240 of each run.
  • Both arms: APS5_DRAW_PIPELINE=1 APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1, plus APS5_NO_IDLE_STORE=1 APS5_PREP_THREADS=3 APS5_WRITE_ONLY_PASSES=1 APS5_RESOURCE_CACHE_ENTRIES=8192 ANYPS5_PRESENT_MODE=immediate and jemalloc preloaded. The only difference is APS5_GPU_HEAP=1.

FPS (6 rounds, order rotated, warm caches)

runs mean
APS5_DRAW_PIPELINE=1 10.0 10.1 9.7 9.7 9.9 10.0 9.90
+ APS5_GPU_HEAP=1 10.3 10.3 10.5 10.1 10.8 10.5 10.42 (+5.2 %)

Where it changes (one APS5_PROFILE_DRAW=1 run per arm, per draw packet over 10 s)

  • Captures on queue 0's worker: 591,849 per 10 s without the heap, 135 with it (capture 5.2 -> 0.0 us per packet).
  • Recompile on the worker: 4.4 -> 8.0 us per packet. It isn't the result memo's Populate: with the heap the memo sees fewer lookups (588k -> 216k per 10 s, hits 11.3 % -> 3.6 %) and its Populate time drops from about 1.09 s to 0.5 s per 10 s. So the extra ~3.6 us per packet is elsewhere in the recompile phase of heap stages, and it takes back part of the capture saving.
  • The draw committer stays at 12.5 / 12.6 us per commit (570k / 582k commits per 10 s), so in this scene the gain is on the worker side.

Checks

  • Frame dumps (APS5_DUMP_FRAMES=40, every 104 presents), heap against no heap, frames 26-39: mean 0.0-1.8, at most 0.04 % of pixels off by more than 64; all 40 frames: 0.06 %.
  • APS5_VERIFY_GPU_HEAP=16: [heap-slots] checked about 21.4 million image slots, 0 held another texture. The [heap-verify] stage comparison prints at exit, and my runs end with a kill, so I don't have that line.
  • No crash, no Vulkan errors in any run.

One thing I saw only on the first runs after the cache format change (cold caches, with and without the heap): 1-5 queue 0x20 WAIT_REG_MEM ... timed out after 1000ms lines per run, and the title missed menu input. None in the 12 warm runs, so I take it for compile stalls rather than this PR.

AI-assisted: yes (text with Claude Code; the numbers are from my machine).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6335473221 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6335473221). Originally posted by [teepean](https://github.com/teepean) on 2026-10-22T07:41:07Z. --- @Raghav314 #9508 on Stray (PPSA02100), Linux, same driver as your runs. Short version: `APS5_GPU_HEAP=1` is +5.2 % here, it won all 6 rounds, and its frames match the per-draw path. **Setup** - Linux (CachyOS, kernel 7.2.10, scx_lavd), Ryzen 9 9950X, RTX 3090 (NVIDIA 615.78.08, `VK_EXT_descriptor_heap` revision 1), GCC 16.2.1, Release. - This PR's head 23b2a3fc2d as is (main a6dcea9279 base). - Stray at the start of the Dead City chapter, 3840x2160, stock `engine.ini`, scripted input, one run at a time. Mean FPS over seconds 180-240 of each run. - Both arms: `APS5_DRAW_PIPELINE=1 APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1`, plus `APS5_NO_IDLE_STORE=1 APS5_PREP_THREADS=3 APS5_WRITE_ONLY_PASSES=1 APS5_RESOURCE_CACHE_ENTRIES=8192 ANYPS5_PRESENT_MODE=immediate` and jemalloc preloaded. The only difference is `APS5_GPU_HEAP=1`. **FPS** (6 rounds, order rotated, warm caches) | | runs | mean | |---|---|---| | `APS5_DRAW_PIPELINE=1` | 10.0 10.1 9.7 9.7 9.9 10.0 | 9.90 | | + `APS5_GPU_HEAP=1` | 10.3 10.3 10.5 10.1 10.8 10.5 | 10.42 (+5.2 %) | **Where it changes** (one `APS5_PROFILE_DRAW=1` run per arm, per draw packet over 10 s) - Captures on queue 0's worker: 591,849 per 10 s without the heap, 135 with it (capture 5.2 -> 0.0 us per packet). - Recompile on the worker: 4.4 -> 8.0 us per packet. It isn't the result memo's Populate: with the heap the memo sees fewer lookups (588k -> 216k per 10 s, hits 11.3 % -> 3.6 %) and its Populate time drops from about 1.09 s to 0.5 s per 10 s. So the extra ~3.6 us per packet is elsewhere in the recompile phase of heap stages, and it takes back part of the capture saving. - The draw committer stays at 12.5 / 12.6 us per commit (570k / 582k commits per 10 s), so in this scene the gain is on the worker side. **Checks** - Frame dumps (`APS5_DUMP_FRAMES=40`, every 104 presents), heap against no heap, frames 26-39: mean 0.0-1.8, at most 0.04 % of pixels off by more than 64; all 40 frames: 0.06 %. - `APS5_VERIFY_GPU_HEAP=16`: `[heap-slots]` checked about 21.4 million image slots, 0 held another texture. The `[heap-verify]` stage comparison prints at exit, and my runs end with a kill, so I don't have that line. - No crash, no Vulkan errors in any run. One thing I saw only on the first runs after the cache format change (cold caches, with and without the heap): 1-5 `queue 0x20 WAIT_REG_MEM ... timed out after 1000ms` lines per run, and the title missed menu input. None in the 12 warm runs, so I take it for compile stalls rather than this PR. AI-assisted: yes (text with Claude Code; the numbers are from my machine).
EagleBearerYS commented 2026-10-22 08:31:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T08:31:09Z.


@Raghav314, thanks for the go-ahead. #7642's table lookups are now rebuilt on your current head 23b2a3fc2d, as eight commits on EagleBearerYS:feat/agc-device-image-table-heap (edc61087bc). Before going further, here is the ABI part we'd like to agree on with you.

What we use from #9508 as it is: GPU-mode stages, your set-1 heap arrays, BindlessHeap::TextureSlot and its NearlyFull margin, and your CPU-resolved image-table map. The map stays the fallback for any program our table can't serve.

What we add to the heap table map (0201fc1bb0, on its own so it can be reviewed alone):

  • Four words just before map[HeaderElementBase]: the bucket buffer's device address (low, high), then the open batch's miss-ring chunk address (low, high). AppendTrailer writes them and moves HeaderElementBase past them, so the element parts start right after.
  • The words are all zero when no device table is attached. A stage reading a zero bucket address misses and records nothing, so maps without a table behave as now.
  • ImageTableAbi::Version goes 2 → 3, meaning "a heap map carries the 4-word trailer before HeaderElementBase". Every heap map carries it, zero or not, which adds 16 bytes per stage map.
  • A column served by the device table writes no per-element slot parts.

Questions for you:

  1. Slot retention under your sweep. Each table entry holds its texture's shared_ptr, so your sweep never frees a slot the table points at. The table also records each slot's SlotGeneration, and drops every key whose generation moved before it uploads. It takes no slot while NearlyFull and reserves none. The table can pin up to 16,384 entries' textures. Is that acceptable against your heap budget, or should the table release textures and rely on generations alone?
  2. Your CPU map as the fallback. A program the table can't serve is recompiled with device tables off and gets your map columns from then on. That covers a miss-ring overflow in 3 batches in a row, a full table, no heap slot, or an incomplete expectation. Does that fit how you want the map used?
  3. The trailer's size. Four words (two addresses), with no flags and no table generation. Is that enough for what you plan for the map, and is bumping ImageTableAbi::Version to 3 for it fine with you?
  4. The sampler class in heap templates. A direct S# paired with a device column becomes the specialization constant DeviceSamplerClassBase (58368) plus the sampler index. Does a per-class spec constant fit your heap templates and pipeline caching?

Tested:

  • Each of the eight commits builds and runs its tests five times on Linux (lavapipe). Eight checks go red with the change they cover broken: the trailer layout ×2, slot invalidation after a sweep, freshness ×2, the ring read through the trailer, a lane-read key in the expectation, and the APS5_GPU_PATH refusal.
  • Our commits record no push constants. The table's only commands are buffer updates, fills and copies, so your rebind after push constants (23b2a3fc2d) covers our device columns as it is.
  • On an RTX 3070 Laptop GPU (NVIDIA 617.42, Windows 11), where your heap is live ("Vulkan descriptor heap: GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap"), agc_driver_device_image_table_heap passes five times. It checks that your sweep keeps the slots the table holds. agc_driver_device_image_path_gpu_path also passes five times, and the heap-less variants three times. On lavapipe those two skip.

A test fix you can take if it helps: lavapipe has no VK_EXT_descriptor_heap, so five of #9508's heap tests fail there instead of skipping: agc_driver_heap_draw_sample_heap, _nogpl_heap, _full_heap, _full_heap_pipelined and agc_driver_pipeline_journal_gpu_heap. 0a01340702, on fix/9508-heap-tests-skip-without-heap directly on your head, makes them skip 77 when DescriptorHeapEnabled() is false, in the "the device lacks …" form check_skips.py accepts. A device with the heap runs every assertion unchanged. agc_driver_image_table_atomics and its _gpu_heap variant aren't in it: they fail on lavapipe because the kernel's v_readfirstlane_b32 assumes a wave32 and lavapipe runs narrower groups. Your "subgroup size %u cannot hold a wave32" skip from ReadLane.cpp would fit them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336366760 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6336366760). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T08:31:09Z. --- @Raghav314, thanks for the go-ahead. #7642's table lookups are now rebuilt on your current head 23b2a3fc2d, as eight commits on [`EagleBearerYS:feat/agc-device-image-table-heap`](https://github.com/EagleBearerYS/AnyPS5/tree/feat/agc-device-image-table-heap) (edc61087bc). Before going further, here is the ABI part we'd like to agree on with you. **What we use from #9508 as it is:** GPU-mode stages, your set-1 heap arrays, `BindlessHeap::TextureSlot` and its `NearlyFull` margin, and your CPU-resolved image-table map. The map stays the fallback for any program our table can't serve. **What we add to the heap table map** ([0201fc1bb0](https://github.com/EagleBearerYS/AnyPS5/commit/0201fc1bb0), on its own so it can be reviewed alone): - Four words just before `map[HeaderElementBase]`: the bucket buffer's device address (low, high), then the open batch's miss-ring chunk address (low, high). `AppendTrailer` writes them and moves `HeaderElementBase` past them, so the element parts start right after. - The words are all zero when no device table is attached. A stage reading a zero bucket address misses and records nothing, so maps without a table behave as now. - `ImageTableAbi::Version` goes 2 → 3, meaning "a heap map carries the 4-word trailer before HeaderElementBase". Every heap map carries it, zero or not, which adds 16 bytes per stage map. - A column served by the device table writes no per-element slot parts. **Questions for you:** 1. **Slot retention under your sweep.** Each table entry holds its texture's `shared_ptr`, so your sweep never frees a slot the table points at. The table also records each slot's `SlotGeneration`, and drops every key whose generation moved before it uploads. It takes no slot while `NearlyFull` and reserves none. The table can pin up to 16,384 entries' textures. Is that acceptable against your heap budget, or should the table release textures and rely on generations alone? 2. **Your CPU map as the fallback.** A program the table can't serve is recompiled with device tables off and gets your map columns from then on. That covers a miss-ring overflow in 3 batches in a row, a full table, no heap slot, or an incomplete expectation. Does that fit how you want the map used? 3. **The trailer's size.** Four words (two addresses), with no flags and no table generation. Is that enough for what you plan for the map, and is bumping `ImageTableAbi::Version` to 3 for it fine with you? 4. **The sampler class in heap templates.** A direct S# paired with a device column becomes the specialization constant `DeviceSamplerClassBase` (58368) plus the sampler index. Does a per-class spec constant fit your heap templates and pipeline caching? **Tested:** - Each of the eight commits builds and runs its tests five times on Linux (lavapipe). Eight checks go red with the change they cover broken: the trailer layout ×2, slot invalidation after a sweep, freshness ×2, the ring read through the trailer, a lane-read key in the expectation, and the `APS5_GPU_PATH` refusal. - Our commits record no push constants. The table's only commands are buffer updates, fills and copies, so your rebind after push constants (23b2a3fc2d) covers our device columns as it is. - On an RTX 3070 Laptop GPU (NVIDIA 617.42, Windows 11), where your heap is live ("Vulkan descriptor heap: GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap"), `agc_driver_device_image_table_heap` passes five times. It checks that your sweep keeps the slots the table holds. `agc_driver_device_image_path_gpu_path` also passes five times, and the heap-less variants three times. On lavapipe those two skip. **A test fix you can take if it helps:** lavapipe has no `VK_EXT_descriptor_heap`, so five of #9508's heap tests fail there instead of skipping: `agc_driver_heap_draw_sample_heap`, `_nogpl_heap`, `_full_heap`, `_full_heap_pipelined` and `agc_driver_pipeline_journal_gpu_heap`. [0a01340702](https://github.com/EagleBearerYS/AnyPS5/commit/0a01340702), on [`fix/9508-heap-tests-skip-without-heap`](https://github.com/EagleBearerYS/AnyPS5/tree/fix/9508-heap-tests-skip-without-heap) directly on your head, makes them skip 77 when `DescriptorHeapEnabled()` is false, in the "the device lacks …" form `check_skips.py` accepts. A device with the heap runs every assertion unchanged. `agc_driver_image_table_atomics` and its `_gpu_heap` variant aren't in it: they fail on lavapipe because the kernel's `v_readfirstlane_b32` assumes a wave32 and lavapipe runs narrower groups. Your "subgroup size %u cannot hold a wave32" skip from ReadLane.cpp would fit them.
LeoFeitosa commented 2026-10-22 08:44:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-22T08:44:21Z.


Tested 13764c98c (on main 663de1ab21) with RoboCop: Rogue City - Unfinished Business (PPSA28329), RTX 5070 Ti, NVIDIA 617.42, Windows 10.0.26200. VK_EXT_descriptor_heap is reported and the log shows "GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap".

Switches Runs Result
none 2 1 reached gameplay (frame p50 153.4 ms), 1 hit the UE "GameThread timed out waiting for RenderThread"
APS5_DRAW_PIPELINE=1 2 1 reached gameplay (frame p50 163.2 ms), 1 stalled at load
APS5_DRAW_PIPELINE=1 + APS5_GPU_HEAP=1 2 2 × VK_ERROR_DEVICE_LOST during load

The device losses surfaced at vkWaitSemaphoresKHR recorder in the first run and at vkQueueSubmit (settle batch) in the second. In both, VK_EXT_device_fault returned only instruction pointer records (245 and 261 lines of "instruction pointer unknown at 0x2ff5…/0x2ff4cb…"), with no address records.

The plain base 663de1ab21, built the same way and run on the same converted install, reached gameplay with no fault. So the stalls without the heap look intermittent and not specific to this PR. The device loss only happens with APS5_GPU_HEAP=1.

Logs are available if useful.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336607908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6336607908). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-22T08:44:21Z. --- Tested 13764c98c (on main 663de1ab21) with RoboCop: Rogue City - Unfinished Business (PPSA28329), RTX 5070 Ti, NVIDIA 617.42, Windows 10.0.26200. `VK_EXT_descriptor_heap` is reported and the log shows "GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap". | Switches | Runs | Result | |---|---|---| | none | 2 | 1 reached gameplay (frame p50 153.4 ms), 1 hit the UE "GameThread timed out waiting for RenderThread" | | `APS5_DRAW_PIPELINE=1` | 2 | 1 reached gameplay (frame p50 163.2 ms), 1 stalled at load | | `APS5_DRAW_PIPELINE=1` + `APS5_GPU_HEAP=1` | 2 | 2 × VK_ERROR_DEVICE_LOST during load | The device losses surfaced at `vkWaitSemaphoresKHR recorder` in the first run and at `vkQueueSubmit (settle batch)` in the second. In both, `VK_EXT_device_fault` returned only instruction pointer records (245 and 261 lines of "instruction pointer unknown at 0x2ff5…/0x2ff4cb…"), with no address records. The plain base 663de1ab21, built the same way and run on the same converted install, reached gameplay with no fault. So the stalls without the heap look intermittent and not specific to this PR. The device loss only happens with `APS5_GPU_HEAP=1`. Logs are available if useful.
teepean commented 2026-10-22 10:19:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by teepean on 2026-10-22T10:19:47Z.


@Raghav314 a second Stray (PPSA02100) data point, this time with the heap on our own committer-bound stack rather than on this PR's head. Short version: there it costs about 11 %, and the profile shows where. The +5.2 % I posted earlier for this PR as is still stands.

What I ran

  • Our local stack (committer-side cuts from the last week plus a few open upstream PRs) merged up to main a6dcea9279, then this PR's heap commits (eaf729fd14..23b2a3fc2d) on top, without #6946. So APS5_DRAW_PIPELINE and everything gated on it (commit trims, epoch proofs, epoch mirrors, the finisher's pending writes) is off. Heap-eligible stages also skip a stage-result shortcut of ours that the heap doesn't know about, so the worker side here is not comparable to your build.
  • Linux (CachyOS, kernel 7.2.10, scx_lavd), Ryzen 9 9950X, RTX 3090 (NVIDIA 615.78.08). Stray at the Dead City start, 3840x2160, stock engine.ini, jemalloc, mean FPS over seconds 180-240, same libraries in both arms, the only difference APS5_GPU_HEAP=1.

FPS (rounds alternated; I stopped after three because the result was clear)

runs mean
heap off 17.2 17.8 17.50
APS5_GPU_HEAP=1 15.6 15.1 15.8 15.50 (-11 %)

Profile (APS5_PROFILE_DRAW=1, one run per arm, per 10 s)

  • The draw committer goes from 7.4 to 8.2 us per commit (1.21M -> 1.08M commits). On this stack descriptor sets are already reused across repeated draws, so the heap's per-draw work on the recording thread costs more than the descriptor work it replaces.
  • On the worker, captures drop from 1.33M to 282, but the recompile phase goes from 0.8 to 7.1 us per draw packet. The recompile result memo's hit rate falls from about 25 % to 3.5 %, with 372k evictions per 10 s instead of about 100k. I saw the same direction on your build: 11.3 % -> 3.6 % hits and recompile 4.4 -> 8.0 us per packet.
  • The [gpu-heap] cost line from the verify run (APS5_VERIFY_GPU_HEAP=16 APS5_PIPELINE_STATS=1, so the absolute times are inflated; the proportions are the point): 893k heap stages per 10 s, heap stage call 3.91 us each, and 805k of them walked (2.03 us per walk), so the walk memo serves only about 10 % of Stray's stages. Coverage was complete: 552,768 heap draws and 0 plain, 8,384 heap dispatches and 0 plain, no fallbacks of any kind.

Checks

  • [heap-slots] verify: about 30.9 million image slots checked, 0 held another texture. Our own proof-memo verify: 6.4M hits, 0 wrong.
  • Frame dumps heap on against off, frames 26-39: mean 0.0-1.4 (frame 27: 8.2, 2.4 % of pixels), all 40 frames 0.13 % of pixels off by more than 64.
  • Heap tests built from the merged tree (heap slots, compute sample, tessellation submit, pipeline journal, presentation pass, bindless images) pass with and without APS5_GPU_HEAP=1 under the validation layer.
  • No device loss and no Xid in the kernel log in 15 heap-on runs on this RTX 3090 / Linux setup (9 on your head, 6 on our stack), unlike LeoFeitosa's Windows runs.

If it helps: the two things that would decide it for a committer-bound title like this one are the per-draw cost on the recording thread with the heap, and the walk memo's hit rate when a stage's descriptor words change from draw to draw. Logs are available.

AI-assisted: yes (text with Claude Code; the numbers are from my machine).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338390217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6338390217). Originally posted by [teepean](https://github.com/teepean) on 2026-10-22T10:19:47Z. --- @Raghav314 a second Stray (PPSA02100) data point, this time with the heap on our own committer-bound stack rather than on this PR's head. Short version: there it costs about 11 %, and the profile shows where. The +5.2 % I posted earlier for this PR as is still stands. **What I ran** - Our local stack (committer-side cuts from the last week plus a few open upstream PRs) merged up to `main` a6dcea9279, then this PR's heap commits (eaf729fd14..23b2a3fc2d) on top, **without #6946**. So `APS5_DRAW_PIPELINE` and everything gated on it (commit trims, epoch proofs, epoch mirrors, the finisher's pending writes) is off. Heap-eligible stages also skip a stage-result shortcut of ours that the heap doesn't know about, so the worker side here is not comparable to your build. - Linux (CachyOS, kernel 7.2.10, scx_lavd), Ryzen 9 9950X, RTX 3090 (NVIDIA 615.78.08). Stray at the Dead City start, 3840x2160, stock `engine.ini`, jemalloc, mean FPS over seconds 180-240, same libraries in both arms, the only difference `APS5_GPU_HEAP=1`. **FPS** (rounds alternated; I stopped after three because the result was clear) | | runs | mean | |---|---|---| | heap off | 17.2 17.8 | 17.50 | | `APS5_GPU_HEAP=1` | 15.6 15.1 15.8 | 15.50 (-11 %) | **Profile** (`APS5_PROFILE_DRAW=1`, one run per arm, per 10 s) - The draw committer goes from 7.4 to 8.2 us per commit (1.21M -> 1.08M commits). On this stack descriptor sets are already reused across repeated draws, so the heap's per-draw work on the recording thread costs more than the descriptor work it replaces. - On the worker, captures drop from 1.33M to 282, but the recompile phase goes from 0.8 to 7.1 us per draw packet. The recompile result memo's hit rate falls from about 25 % to 3.5 %, with 372k evictions per 10 s instead of about 100k. I saw the same direction on your build: 11.3 % -> 3.6 % hits and recompile 4.4 -> 8.0 us per packet. - The `[gpu-heap]` cost line from the verify run (`APS5_VERIFY_GPU_HEAP=16 APS5_PIPELINE_STATS=1`, so the absolute times are inflated; the proportions are the point): 893k heap stages per 10 s, heap stage call 3.91 us each, and 805k of them walked (2.03 us per walk), so the walk memo serves only about 10 % of Stray's stages. Coverage was complete: 552,768 heap draws and 0 plain, 8,384 heap dispatches and 0 plain, no fallbacks of any kind. **Checks** - `[heap-slots]` verify: about 30.9 million image slots checked, 0 held another texture. Our own proof-memo verify: 6.4M hits, 0 wrong. - Frame dumps heap on against off, frames 26-39: mean 0.0-1.4 (frame 27: 8.2, 2.4 % of pixels), all 40 frames 0.13 % of pixels off by more than 64. - Heap tests built from the merged tree (heap slots, compute sample, tessellation submit, pipeline journal, presentation pass, bindless images) pass with and without `APS5_GPU_HEAP=1` under the validation layer. - No device loss and no Xid in the kernel log in 15 heap-on runs on this RTX 3090 / Linux setup (9 on your head, 6 on our stack), unlike LeoFeitosa's Windows runs. If it helps: the two things that would decide it for a committer-bound title like this one are the per-draw cost on the recording thread with the heap, and the walk memo's hit rate when a stage's descriptor words change from draw to draw. Logs are available. AI-assisted: yes (text with Claude Code; the numbers are from my machine).
Raghav314 commented 2026-10-22 11:05:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-22T11:05:33Z.


Rebased onto current main (with #6946 rebased under it).

@LeoFeitosa thanks for the RoboCop runs. 13764c9 predates a fix for a heap binding bug the validation layer found: a classic vkCmdPushConstants call puts the command buffer back in classic descriptor mode, which unbinds the heaps, and the next heap draw or dispatch in that command buffer ran with no heap bound. That can plausibly lose the device. Could you retest the current head with APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1, and attach the logs of a run that still loses the device?

@EagleBearerYS I took your skip fix as is (heap draw and journal tests exit 77 without a descriptor heap). On #7642's ABI:

  • Pinning the table's textures is fine to start with: you take no slot while NearlyFull, so a full heap falls back instead of failing. Pinned textures do keep their slots from the sweep, though, and the heap holds 4096 image slots per kind, so a table near 16,384 entries can keep the heap close to full. If that shows up in a title, releasing the textures and relying on generations alone would avoid it.
  • The CPU table map as the fallback for programs the device table can't serve fits how it is meant.
  • The 4-word trailer and ImageTableAbi::Version 3 are fine.
  • A per-class specialization constant for the sampler fits the templates, as long as the number of classes stays small: each class is another template and pipeline variant.
    #9563 and #9564: either order works for me, thanks for taking the rebase.

@JJenkx #9503 first is fine; I'll move the wrapped CmdBindDescriptorSets into the draw lambda after vkCmdBindPipeline when I rebase.

@teepean thanks for both Stray runs. The recompile-phase cost with the heap (memo hit rate 11 % → 4 %, walk memo serving ~10 % of stages) is the part I'll look at next; it matches the per-draw heap work listed under "Where this can take more frame rate".

LLM assistance used.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339210878 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6339210878). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-22T11:05:33Z. --- Rebased onto current `main` (with #6946 rebased under it). @LeoFeitosa thanks for the RoboCop runs. 13764c9 predates a fix for a heap binding bug the validation layer found: a classic `vkCmdPushConstants` call puts the command buffer back in classic descriptor mode, which unbinds the heaps, and the next heap draw or dispatch in that command buffer ran with no heap bound. That can plausibly lose the device. Could you retest the current head with `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`, and attach the logs of a run that still loses the device? @EagleBearerYS I took your skip fix as is (heap draw and journal tests exit 77 without a descriptor heap). On #7642's ABI: - Pinning the table's textures is fine to start with: you take no slot while `NearlyFull`, so a full heap falls back instead of failing. Pinned textures do keep their slots from the sweep, though, and the heap holds 4096 image slots per kind, so a table near 16,384 entries can keep the heap close to full. If that shows up in a title, releasing the textures and relying on generations alone would avoid it. - The CPU table map as the fallback for programs the device table can't serve fits how it is meant. - The 4-word trailer and `ImageTableAbi::Version` 3 are fine. - A per-class specialization constant for the sampler fits the templates, as long as the number of classes stays small: each class is another template and pipeline variant. #9563 and #9564: either order works for me, thanks for taking the rebase. @JJenkx #9503 first is fine; I'll move the wrapped `CmdBindDescriptorSets` into the draw lambda after `vkCmdBindPipeline` when I rebase. @teepean thanks for both Stray runs. The recompile-phase cost with the heap (memo hit rate 11 % → 4 %, walk memo serving ~10 % of stages) is the part I'll look at next; it matches the per-draw heap work listed under "Where this can take more frame rate". LLM assistance used.
EagleBearerYS commented 2026-10-22 11:52:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T11:52:17Z.


@Raghav314 thanks for the ABI review and for taking the skip fix. #7642 is rebased on f85d0b3285 with its commits unchanged, and your pinning caveat is under its Pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340060991 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6340060991). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T11:52:17Z. --- @Raghav314 thanks for the ABI review and for taking the skip fix. #7642 is rebased on f85d0b3285 with its commits unchanged, and your pinning caveat is under its Pending.
LeoFeitosa commented 2026-10-22 12:02:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-22T12:02:07Z.


@Raghav314 retested the current head f85d0b3285 on the same machine and install (RoboCop: Rogue City - Unfinished Business PPSA28329, RTX 5070 Ti, NVIDIA 617.42, Windows 10.0.26200) with APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1. Both runs still lost the device during load. In both, the log shows the heap binding ("GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap") before the fault.

  • Run 1: VK_EXT_device_fault report at line 883; vkWaitSemaphoresKHR recorder: Vulkan result -4 at line 1137.
  • Run 2: VK_EXT_device_fault report at line 1070; vkWaitSemaphoresKHR recorder: Vulkan result -4 at line 1323.

As before, the fault reports contain instruction pointer records only.

Full logs of both runs: https://gist.github.com/LeoFeitosa/aa8f1fa1f13193b020e97d70d9173f3d

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340240908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6340240908). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-22T12:02:07Z. --- @Raghav314 retested the current head f85d0b3285 on the same machine and install (RoboCop: Rogue City - Unfinished Business PPSA28329, RTX 5070 Ti, NVIDIA 617.42, Windows 10.0.26200) with `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1`. Both runs still lost the device during load. In both, the log shows the heap binding ("GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap") before the fault. - Run 1: `VK_EXT_device_fault` report at line 883; `vkWaitSemaphoresKHR recorder: Vulkan result -4` at line 1137. - Run 2: `VK_EXT_device_fault` report at line 1070; `vkWaitSemaphoresKHR recorder: Vulkan result -4` at line 1323. As before, the fault reports contain instruction pointer records only. Full logs of both runs: https://gist.github.com/LeoFeitosa/aa8f1fa1f13193b020e97d70d9173f3d
Raghav314 commented 2026-10-22 13:58:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-22T13:58:43Z.


@LeoFeitosa thanks, both logs help. The fault reports list only instruction pointers, which is where the waves were at the reset, so they don't point at the access that faulted. Both runs follow the same order before the loss:

  • the game frees memory under live storage images ([gpu] storage image 0x8fc0000000+0x1fe0000: memory no longer registered, in run 2 also 0x8fc2000000)
  • a 16320×16320 BC1 texture (128 MiB) is created (in run 2 as a block copy of a storage image)
  • the first fragment program in the run that has no artifact from registration is prepared at use, and the device is lost.

Stray with the heap on, on an RTX 4090 on Linux, takes the same block copy and prepared-at-use paths with no fault, and never frees memory under a storage image. Freed guest memory that the GPU still reaches through a host import is the lead I'm following: on Windows a freed page can fault on the GPU, where Linux keeps imported pages pinned.

Could you do these on the same install:

  1. APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_NO_HOST_IMPORT=1: if this loads, the loss goes through host imports.
  2. APS5_GPU_HEAP=1 alone, without the draw pipeline.
  3. APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_PIPELINE_STATS=2 APS5_TRACE_HOST_IMPORT=1, which logs the heap's fallbacks and each import's creation and retirement up to the fault.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6342593958 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6342593958). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-22T13:58:43Z. --- @LeoFeitosa thanks, both logs help. The fault reports list only instruction pointers, which is where the waves were at the reset, so they don't point at the access that faulted. Both runs follow the same order before the loss: - the game frees memory under live storage images (`[gpu] storage image 0x8fc0000000+0x1fe0000: memory no longer registered`, in run 2 also 0x8fc2000000) - a 16320×16320 BC1 texture (128 MiB) is created (in run 2 as a block copy of a storage image) - the first fragment program in the run that has no artifact from registration is prepared at use, and the device is lost. Stray with the heap on, on an RTX 4090 on Linux, takes the same block copy and prepared-at-use paths with no fault, and never frees memory under a storage image. Freed guest memory that the GPU still reaches through a host import is the lead I'm following: on Windows a freed page can fault on the GPU, where Linux keeps imported pages pinned. Could you do these on the same install: 1. `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_NO_HOST_IMPORT=1`: if this loads, the loss goes through host imports. 2. `APS5_GPU_HEAP=1` alone, without the draw pipeline. 3. `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_PIPELINE_STATS=2 APS5_TRACE_HOST_IMPORT=1`, which logs the heap's fallbacks and each import's creation and retirement up to the fault.
MarcZX10 commented 2026-10-22 14:31:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T14:31:40Z.


I rechecked the current report at head 9f5e875b95d6a5bbee580b03b36ed7773fd80aa0. Two performance-evidence details still need correction before the results can be treated as evidence for this revision:

  1. In Traces, the main row names aps5-trace-de49f41349a9-624652.json.gz but links to the 568369d27a2e-625697 attachment; the heap row names aps5-trace-568369d27a2e-625697.json.gz but links to the de49f41349a9-624652 attachment. Those two attachment targets are reversed. The middle draw-pipeline trace link matches its filename.
  2. Each Hades II summary records source commit 568369d27a2e, while the PR head is now 9f5e875b95d6a5bbee580b03b36ed7773fd80aa0. Please either rerun the three same-scene comparison arms on the current head (with the stated #6300 integration) or label these explicitly as historical measurements of that older source revision and avoid presenting them as current-head performance. The PR has added substantial heap changes since then, so the distinction affects what the data supports.

The current hosted relinker matrix, eligibility, conventions and report checks are green; Linux/Windows product jobs are skipped. I did not run a local GPU performance capture.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6343302162 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6343302162). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T14:31:40Z. --- I rechecked the current report at head `9f5e875b95d6a5bbee580b03b36ed7773fd80aa0`. Two performance-evidence details still need correction before the results can be treated as evidence for this revision: 1. In **Traces**, the `main` row names `aps5-trace-de49f41349a9-624652.json.gz` but links to the `568369d27a2e-625697` attachment; the heap row names `aps5-trace-568369d27a2e-625697.json.gz` but links to the `de49f41349a9-624652` attachment. Those two attachment targets are reversed. The middle draw-pipeline trace link matches its filename. 2. Each Hades II summary records source commit `568369d27a2e`, while the PR head is now `9f5e875b95d6a5bbee580b03b36ed7773fd80aa0`. Please either rerun the three same-scene comparison arms on the current head (with the stated #6300 integration) or label these explicitly as historical measurements of that older source revision and avoid presenting them as current-head performance. The PR has added substantial heap changes since then, so the distinction affects what the data supports. The current hosted relinker matrix, eligibility, conventions and report checks are green; Linux/Windows product jobs are skipped. I did not run a local GPU performance capture.
Raghav314 commented 2026-10-22 14:42:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-22T14:42:04Z.


@MarcZX10 thanks, the main and heap trace links were swapped; fixed in the description.

On the revision: 568369d27a is 23b2a3fc2d (this PR as of the descriptor heap rebind fix, on main a6dcea927) with #6300 merged locally. The PR has not changed substantially since then: git range-diff against the current head shows the same patches apart from rebase context, plus three test-only commits (the draw finisher trace test counted as skipped when left out of the build, the draw cache relocation test on the draw pipeline, and the heap tests skipping without a descriptor heap). The description now names the measured revision and says the numbers were not captured again on the current head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6343525706 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6343525706). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-22T14:42:04Z. --- @MarcZX10 thanks, the `main` and heap trace links were swapped; fixed in the description. On the revision: 568369d27a is 23b2a3fc2d (this PR as of the descriptor heap rebind fix, on `main` a6dcea927) with #6300 merged locally. The PR has not changed substantially since then: `git range-diff` against the current head shows the same patches apart from rebase context, plus three test-only commits (the draw finisher trace test counted as skipped when left out of the build, the draw cache relocation test on the draw pipeline, and the heap tests skipping without a descriptor heap). The description now names the measured revision and says the numbers were not captured again on the current head.
LeoFeitosa commented 2026-10-22 14:55:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-22T14:55:54Z.


@Raghav314 ran the three, all on the same install with f85d0b3285 (your current head carries the same patches, per your range-diff note), one run each:

Run Switches Result
1 APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_NO_HOST_IMPORT=1 device lost while loading. The log has no host import at all, so the loss does not need one
2 APS5_GPU_HEAP=1 alone device lost while loading
3 APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_PIPELINE_STATS=2 APS5_TRACE_HOST_IMPORT=1 device lost while loading

All three follow the same order as before: storage image memory freed, then the 16320×16320 BC1 texture, then the fault a few lines later. The prepared-at-use fragment program is not needed for it:

  • Run 1: 0x8fc0000000+0x1fe0000: memory no longer registered at line 5982, texture at 6150, VK_EXT_device_fault report at 6166. Nothing is prepared at use in between.
  • Run 2: texture at line 1833, fault report at 1835. Nothing is prepared at use in between.
  • Run 3: memory freed under 0x8fc2000000 at 11127. Imports are retired as "the range was mapped again" at 11567–11571. Texture at 11620, one prepared at use at 11628. The first error that shows is the settle vkQueueSubmit returning -4 at 11634. 2232 imports were live (4.1 GiB). The last [gpu-heap] line (11581) shows no fallbacks: 479 draws and 545 dispatches on the heap, 0 plain.

Logs of the three runs: https://gist.github.com/LeoFeitosa/b8ace7b654eddd9302d80ad0be02ca36

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6343824879 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6343824879). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-22T14:55:54Z. --- @Raghav314 ran the three, all on the same install with f85d0b3285 (your current head carries the same patches, per your range-diff note), one run each: | Run | Switches | Result | |---|---|---| | 1 | `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_NO_HOST_IMPORT=1` | device lost while loading. The log has no host import at all, so the loss does not need one | | 2 | `APS5_GPU_HEAP=1` alone | device lost while loading | | 3 | `APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 APS5_PIPELINE_STATS=2 APS5_TRACE_HOST_IMPORT=1` | device lost while loading | All three follow the same order as before: storage image memory freed, then the 16320×16320 BC1 texture, then the fault a few lines later. The prepared-at-use fragment program is not needed for it: - Run 1: `0x8fc0000000+0x1fe0000: memory no longer registered` at line 5982, texture at 6150, `VK_EXT_device_fault` report at 6166. Nothing is prepared at use in between. - Run 2: texture at line 1833, fault report at 1835. Nothing is prepared at use in between. - Run 3: memory freed under `0x8fc2000000` at 11127. Imports are retired as "the range was mapped again" at 11567–11571. Texture at 11620, one prepared at use at 11628. The first error that shows is the settle `vkQueueSubmit` returning -4 at 11634. 2232 imports were live (4.1 GiB). The last `[gpu-heap]` line (11581) shows no fallbacks: 479 draws and 545 dispatches on the heap, 0 plain. Logs of the three runs: https://gist.github.com/LeoFeitosa/b8ace7b654eddd9302d80ad0be02ca36
MarcZX10 commented 2026-10-29 22:17:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:17:14Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The refreshed head resolves the earlier merge and Windows test-path findings, but the perf evidence and focused validation do not cover the current production changes.

What I ran

  • PR head: 981351a3916b7a760a76dc2c2dcd95fd6a1aecf0; PR base: 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5; live main: 4c8cff191609bc5f28bf9ee2f93672b531285aa4.
  • Environment: Linux, Git 2.39.5, Python 3.11.2. No compiler or build was run.
  • The merge preview of the PR head with live main completed cleanly; this review does not request a rebase solely because the PR base is behind.
git diff --check refs/review/pr-9508-head upstream/main
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9508-head
git merge-tree --write-tree upstream/main refs/review/pr-9508-head

Results

Check Result
Diff check Passed (exit 0; no output)
Repository conventions Passed
Live-main merge preview Clean; tree 2dcd7e3150f6419f48dbbf5f8a74480002d26582
Hosted CI Ubuntu/Windows relinkers, ASan, conventions, eligibility, labels and report passed. Windows product job was in progress; macOS relinkers were queued. Linux product, register-context and write-watch jobs were skipped.
Focused GPU tests The PR description reports 421/422 on fc7f4400ca and a 180-test subset on f25a4145f6; these are not identified as runs on the exact reviewed head. The latter is described as differing from the head in the unit-test file. I did not run them locally.
Performance report The submitted Hades II captures use baseline a6dcea927 plus #6300 and change 23b2a3fc2d plus #6300; the description says those captures were not repeated on the current head.
Unedited local check output
All conventions checks passed.
2dcd7e3150f6419f48dbbf5f8a74480002d26582

git diff --check produced no output and exited 0.

Findings

Blocking

  • Refresh the performance comparison. The PR is titled perf(...), and the repository requires same-machine, same-scene main and change summary lines with trace attachments. The current report compares a6dcea927 with 23b2a3fc2d, while this head includes later production changes to the heap-walk memo and cached-stage matching. Please capture the current upstream main and this exact head in the same Hades II scene, then update the two summary lines, traces and digests. The existing dropped-event limitation on the baseline trace should remain explicit.
  • Record focused validation for the reviewed source. Please run the required same-machine focused AGC tests on current main and 981351a3916b7a760a76dc2c2dcd95fd6a1aecf0, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1. Include the exact commands, outcomes, device/driver/OS, and whether any new VUID- appears. In particular, include the new agc_driver_heap_walk_memo cases from this head; the report currently identifies earlier tested revisions, not this exact head.

Non-blocking

  • The updated source adds a per-thread byte budget, LRU trimming, and deduplicated accounting for pinned objects. The author reports a bounded 32 MiB run on Minecraft Dungeons II; that is useful evidence for the cap, but it is not a same-title rerun of the earlier Resident Evil Village growth case. I did not find a source-level defect in the cap during this pass.
  • The new report says #6498 has no fixed landing order and neither PR depends on the other's code. The live-main merge preview is clean, so I have no outstanding order or rebase request from that point.

Sources

Not verified

I did not build or run CTest, GPU tests, or title captures locally. The focused GPU and title results above are author-reported. The current hosted Windows product job and queued macOS jobs had not completed when I refreshed CI.

To get this to a good state

Add the current-main/current-head performance pair and exact-head focused validation evidence, then update the PR description. I will rerun the same non-build checks and recheck the new head and CI before making another review decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705690478 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5705690478). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T22:17:14Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The refreshed head resolves the earlier merge and Windows test-path findings, but the `perf` evidence and focused validation do not cover the current production changes. ## What I ran - PR head: `981351a3916b7a760a76dc2c2dcd95fd6a1aecf0`; PR base: `9624d8c6bb9e96b7aa92b815f55690f69b0a88d5`; live `main`: `4c8cff191609bc5f28bf9ee2f93672b531285aa4`. - Environment: Linux, Git 2.39.5, Python 3.11.2. No compiler or build was run. - The merge preview of the PR head with live `main` completed cleanly; this review does not request a rebase solely because the PR base is behind. ```sh git diff --check refs/review/pr-9508-head upstream/main python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9508-head git merge-tree --write-tree upstream/main refs/review/pr-9508-head ``` ## Results | Check | Result | |---|---| | Diff check | Passed (exit 0; no output) | | Repository conventions | Passed | | Live-main merge preview | Clean; tree `2dcd7e3150f6419f48dbbf5f8a74480002d26582` | | Hosted CI | Ubuntu/Windows relinkers, ASan, conventions, eligibility, labels and report passed. Windows product job was in progress; macOS relinkers were queued. Linux product, register-context and write-watch jobs were skipped. | | Focused GPU tests | The PR description reports 421/422 on `fc7f4400ca` and a 180-test subset on `f25a4145f6`; these are not identified as runs on the exact reviewed head. The latter is described as differing from the head in the unit-test file. I did not run them locally. | | Performance report | The submitted Hades II captures use baseline `a6dcea927` plus #6300 and change `23b2a3fc2d` plus #6300; the description says those captures were not repeated on the current head. | <details> <summary>Unedited local check output</summary> ```text All conventions checks passed. 2dcd7e3150f6419f48dbbf5f8a74480002d26582 ``` `git diff --check` produced no output and exited 0. </details> ## Findings ### Blocking - **Refresh the performance comparison.** The PR is titled `perf(...)`, and the repository requires same-machine, same-scene `main` and change summary lines with trace attachments. The current report compares `a6dcea927` with `23b2a3fc2d`, while this head includes later production changes to the heap-walk memo and cached-stage matching. Please capture the current upstream `main` and this exact head in the same Hades II scene, then update the two summary lines, traces and digests. The existing dropped-event limitation on the baseline trace should remain explicit. - **Record focused validation for the reviewed source.** Please run the required same-machine focused AGC tests on current `main` and `981351a3916b7a760a76dc2c2dcd95fd6a1aecf0`, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`. Include the exact commands, outcomes, device/driver/OS, and whether any new `VUID-` appears. In particular, include the new `agc_driver_heap_walk_memo` cases from this head; the report currently identifies earlier tested revisions, not this exact head. ### Non-blocking - The updated source adds a per-thread byte budget, LRU trimming, and deduplicated accounting for pinned objects. The author reports a bounded 32 MiB run on Minecraft Dungeons II; that is useful evidence for the cap, but it is not a same-title rerun of the earlier Resident Evil Village growth case. I did not find a source-level defect in the cap during this pass. - The new report says #6498 has no fixed landing order and neither PR depends on the other's code. The live-main merge preview is clean, so I have no outstanding order or rebase request from that point. ## Sources - [Repository performance and AGC validation requirements, pinned to current `main`](https://github.com/boykopovar/AnyPS5/blob/4c8cff191609bc5f28bf9ee2f93672b531285aa4/CONTRIBUTING.md#L67-L70) - [Heap-walk memo implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/981351a3916b7a760a76dc2c2dcd95fd6a1aecf0/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp) - [Heap-walk memo tests at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/981351a3916b7a760a76dc2c2dcd95fd6a1aecf0/core/libs/prx/libSceAgcDriver/tests/HeapWalkMemo.cpp) ## Not verified I did not build or run CTest, GPU tests, or title captures locally. The focused GPU and title results above are author-reported. The current hosted Windows product job and queued macOS jobs had not completed when I refreshed CI. ## To get this to a good state Add the current-main/current-head performance pair and exact-head focused validation evidence, then update the PR description. I will rerun the same non-build checks and recheck the new head and CI before making another review decision.
MarcZX10 commented 2026-10-30 01:41:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T01:41:15Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The exact PR head f20ea04c6346fa18ef887061f4c48cedafdc1583 still cannot reclaim sampled textures held by heap slots, conflicts with live main, and lacks a matched performance report for this head.

What I ran

  • Refreshed the open PR, exact head/base, current main, and hosted checks.
  • Read ReleaseTextureCaches and the descriptor-heap texture-slot ownership path at the exact head.
  • Environment: Debian GNU/Linux x86-64; GitHub CLI 2.23.0. No compiler, build, or local tests were run.
gh api repos/boykopovar/AnyPS5/pulls/9508 --jq '{state:.state,head:.head.sha,base:.base.sha,mergeable:.mergeable}'
gh api repos/boykopovar/AnyPS5/branches/main --jq .commit.sha
gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp?ref=f20ea04c6346fa18ef887061f4c48cedafdc1583 --jq .content | base64 -d | sed -n '1430,1485p'
gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp?ref=f20ea04c6346fa18ef887061f4c48cedafdc1583 --jq .content | base64 -d | sed -n '258,279p'
gh pr checks 9508 --repo boykopovar/AnyPS5

Results

Check Result
Heap-recovery source audit Blocking defect: the sampled-cache loop skips any texture whose shared_ptr::use_count() is not 1. BindlessHeap::TextureSlot stores another shared_ptr in the slot owner, so a cache entry held by a heap slot is skipped during recovery.
Heap-held regression evidence Author-reported test fails on the unpatched 981351a391 tree and passes 3/3 with a proposed two-commit fix. That test/fix is on a separate branch and has not been tested on, or incorporated into, current PR head f20ea04c.
Current-base status PR base is 39fc186c978aa6332538fb1101d1722124979ab5; live main is 6d56eb813cc5e7ba81b58ee087f9582c68c4c9d8; GitHub reports mergeable: false.
Hosted CI Windows, conventions, Ubuntu/Windows relinker, ASan, eligibility, labels, and report pass. macOS relinker jobs are pending; Linux product and specialized jobs are skipped.
Performance evidence The latest Hades II matched captures in the description use PR tree d8c243bb46; current head f20ea04c adds a production commit after that capture and merges another main. The exact current head has no matched capture pair.
Unedited source and hosted-check output
$ gh api repos/boykopovar/AnyPS5/pulls/9508 --jq '{state:.state,head:.head.sha,base:.base.sha,mergeable:.mergeable}'
{"base":"39fc186c978aa6332538fb1101d1722124979ab5","head":"f20ea04c6346fa18ef887061f4c48cedafdc1583","mergeable":false,"state":"open"}
$ gh api repos/boykopovar/AnyPS5/branches/main --jq .commit.sha
6d56eb813cc5e7ba81b58ee087f9582c68c4c9d8
$ sed -n '1444,1454p' ShaderResources.cpp
            for (auto it = cache.entries.end(); it != cache.entries.begin() && freed < bytes;) {
                --it;
                if (it->texture.use_count() != 1 || (it->source != nullptr && it->source->Dirty())) continue;
                const auto allocated = it->texture->AllocationBytes();
                const auto sourceBytes = it->source != nullptr ? it->source->AllocationBytes() : 0u;
                const std::weak_ptr<StorageTexture> source = it->source;
                const auto next = std::next(it);
                eraseTexture(cache, it);
                ++cache.counts.evicted;
                ++sampledEntries;
                freed += allocated;
                if (source.expired()) freed += sourceBytes;
$ gh pr checks 9508 --repo boykopovar/AnyPS5
relinker (macos-latest, clang++)\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612635
relinker (macos-latest, clang++, x86_64)\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612649
labels\tpass\t9s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978805413/job/123816853350
relinker (ubuntu-latest, g++)\tpass\t4m16s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612685
relinker (windows-latest, g++)\tpass\t9m11s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612761
relinker-asan\tpass\t2m34s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612662
windows\tpass\t10m0s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612582
linux\tskipping\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816614152
register-context\tskipping\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816615133
write-watch\tskipping\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816613943
conventions\tpass\t16s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978805394/job/123813377096
eligibility\tpass\t6s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123813833516
report\tpass\t39s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786443/job/123813309313

Negative control

Assertion Change to code under test Did the new test fail?
Recovery frees exactly one of two sampled textures held only by the cache and heap, and stops at its byte target The author reports running the test on the unpatched 981351a391 tree, then on a separate branch with the proposed eviction/sweep change Yes on the unpatched tree; the proposed fix passes 3/3. These are author-reported results, not my run; neither result is from exact PR head f20ea04c.

Findings

Blocking

  • Heap-held textures are not reclaimed. At current head, the eviction guard skips any cache entry whose texture has another owner. The heap creates that owner when it stores the texture in a slot. Under memory pressure, those textures therefore remain pinned and the recovery cannot release their allocations before retrying. Update the recovery path to account for heap ownership, release the corresponding heap slots when safe, count the freed bytes, and retain a regression test for the target bound. A proposed implementation and test are available in the contributor's fix and test commit; they are not part of this PR head.
  • The branch conflicts with current main. GitHub reports the exact head as not mergeable against its recorded base while main has advanced. Resolve the actual conflict and recheck the resulting head; this request is based on the conflict status, not branch age.
  • Performance evidence is stale for this head. The latest matched report compares main 1189ec3003 plus #9533 with PR tree d8c243bb46 plus #9533. The current head includes a later production change and a later main merge. The repository requires perf reports to compare main and the change from the same machine and scene, with summary lines and traces. Please capture the final head against a current-main baseline with the same prerequisite, and include both summary lines, traces, and digest output.

Non-blocking

The reported agc_driver_image_table_cache_bounds_gpu_heap exit crash is not attributed to this PR: the author reports reproducing it on main with the draw pipeline enabled. Keep that failure scoped as a baseline issue unless a current-head comparison shows otherwise.

Sources

Not verified

I did not run a local build, CTest, GPU validation, title test, or performance capture. The heap-held test results are author-reported and cover the pre-fix head plus a separate fix branch, not this exact PR head. Current hosted Windows and Vulkan-specific product coverage is not established by the green status names alone; Linux and specialized jobs are skipped.

To get this to a good state

Resolve the current-main conflict, fix and test heap-held texture recovery on the resulting PR head, and publish the matched performance report for that exact head. I will rerun the source, overlap, and hosted-check review on the new SHA.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5707135055 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5707135055). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T01:41:15Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The exact PR head `f20ea04c6346fa18ef887061f4c48cedafdc1583` still cannot reclaim sampled textures held by heap slots, conflicts with live `main`, and lacks a matched performance report for this head. ## What I ran - Refreshed the open PR, exact head/base, current `main`, and hosted checks. - Read `ReleaseTextureCaches` and the descriptor-heap texture-slot ownership path at the exact head. - Environment: Debian GNU/Linux x86-64; GitHub CLI 2.23.0. No compiler, build, or local tests were run. ```sh gh api repos/boykopovar/AnyPS5/pulls/9508 --jq '{state:.state,head:.head.sha,base:.base.sha,mergeable:.mergeable}' gh api repos/boykopovar/AnyPS5/branches/main --jq .commit.sha gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp?ref=f20ea04c6346fa18ef887061f4c48cedafdc1583 --jq .content | base64 -d | sed -n '1430,1485p' gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp?ref=f20ea04c6346fa18ef887061f4c48cedafdc1583 --jq .content | base64 -d | sed -n '258,279p' gh pr checks 9508 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Heap-recovery source audit | Blocking defect: the sampled-cache loop skips any texture whose `shared_ptr::use_count()` is not 1. `BindlessHeap::TextureSlot` stores another `shared_ptr` in the slot owner, so a cache entry held by a heap slot is skipped during recovery. | | Heap-held regression evidence | Author-reported test fails on the unpatched `981351a391` tree and passes 3/3 with a proposed two-commit fix. That test/fix is on a separate branch and has not been tested on, or incorporated into, current PR head `f20ea04c`. | | Current-base status | PR base is `39fc186c978aa6332538fb1101d1722124979ab5`; live `main` is `6d56eb813cc5e7ba81b58ee087f9582c68c4c9d8`; GitHub reports `mergeable: false`. | | Hosted CI | Windows, conventions, Ubuntu/Windows relinker, ASan, eligibility, labels, and report pass. macOS relinker jobs are pending; Linux product and specialized jobs are skipped. | | Performance evidence | The latest Hades II matched captures in the description use PR tree `d8c243bb46`; current head `f20ea04c` adds a production commit after that capture and merges another `main`. The exact current head has no matched capture pair. | <details> <summary>Unedited source and hosted-check output</summary> ```text $ gh api repos/boykopovar/AnyPS5/pulls/9508 --jq '{state:.state,head:.head.sha,base:.base.sha,mergeable:.mergeable}' {"base":"39fc186c978aa6332538fb1101d1722124979ab5","head":"f20ea04c6346fa18ef887061f4c48cedafdc1583","mergeable":false,"state":"open"} $ gh api repos/boykopovar/AnyPS5/branches/main --jq .commit.sha 6d56eb813cc5e7ba81b58ee087f9582c68c4c9d8 $ sed -n '1444,1454p' ShaderResources.cpp for (auto it = cache.entries.end(); it != cache.entries.begin() && freed < bytes;) { --it; if (it->texture.use_count() != 1 || (it->source != nullptr && it->source->Dirty())) continue; const auto allocated = it->texture->AllocationBytes(); const auto sourceBytes = it->source != nullptr ? it->source->AllocationBytes() : 0u; const std::weak_ptr<StorageTexture> source = it->source; const auto next = std::next(it); eraseTexture(cache, it); ++cache.counts.evicted; ++sampledEntries; freed += allocated; if (source.expired()) freed += sourceBytes; $ gh pr checks 9508 --repo boykopovar/AnyPS5 relinker (macos-latest, clang++)\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612635 relinker (macos-latest, clang++, x86_64)\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612649 labels\tpass\t9s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978805413/job/123816853350 relinker (ubuntu-latest, g++)\tpass\t4m16s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612685 relinker (windows-latest, g++)\tpass\t9m11s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612761 relinker-asan\tpass\t2m34s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612662 windows\tpass\t10m0s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816612582 linux\tskipping\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816614152 register-context\tskipping\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816615133 write-watch\tskipping\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123816613943 conventions\tpass\t16s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978805394/job/123813377096 eligibility\tpass\t6s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786388/job/123813833516 report\tpass\t39s\thttps://github.com/boykopovar/AnyPS5/actions/runs/40978786443/job/123813309313 ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Recovery frees exactly one of two sampled textures held only by the cache and heap, and stops at its byte target | The author reports running the test on the unpatched `981351a391` tree, then on a separate branch with the proposed eviction/sweep change | Yes on the unpatched tree; the proposed fix passes 3/3. These are author-reported results, not my run; neither result is from exact PR head `f20ea04c`. | ## Findings ### Blocking - **Heap-held textures are not reclaimed.** At current head, the eviction guard skips any cache entry whose texture has another owner. The heap creates that owner when it stores the texture in a slot. Under memory pressure, those textures therefore remain pinned and the recovery cannot release their allocations before retrying. Update the recovery path to account for heap ownership, release the corresponding heap slots when safe, count the freed bytes, and retain a regression test for the target bound. A proposed implementation and test are available in [the contributor's fix](https://github.com/milescoviello/AnyPS5/commit/be58f722f31a4e748fa87ff5513a7955518a522f) and [test commit](https://github.com/milescoviello/AnyPS5/commit/faac03f2633e86ff46c122e472d5df6df1bd3f4f); they are not part of this PR head. - **The branch conflicts with current `main`.** GitHub reports the exact head as not mergeable against its recorded base while `main` has advanced. Resolve the actual conflict and recheck the resulting head; this request is based on the conflict status, not branch age. - **Performance evidence is stale for this head.** The latest matched report compares `main` `1189ec3003` plus #9533 with PR tree `d8c243bb46` plus #9533. The current head includes a later production change and a later `main` merge. The repository requires `perf` reports to compare main and the change from the same machine and scene, with summary lines and traces. Please capture the final head against a current-main baseline with the same prerequisite, and include both summary lines, traces, and digest output. ### Non-blocking The reported `agc_driver_image_table_cache_bounds_gpu_heap` exit crash is not attributed to this PR: the author reports reproducing it on `main` with the draw pipeline enabled. Keep that failure scoped as a baseline issue unless a current-head comparison shows otherwise. ## Sources - [Eviction guard at current PR head](https://github.com/boykopovar/AnyPS5/blob/f20ea04c6346fa18ef887061f4c48cedafdc1583/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L1444-L1455) - [Heap slot stores a shared texture owner and records a heap hold](https://github.com/boykopovar/AnyPS5/blob/f20ea04c6346fa18ef887061f4c48cedafdc1583/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp#L258-L275) - [Performance-report and AGC validation requirements](https://github.com/boykopovar/AnyPS5/blob/6d56eb813cc5e7ba81b58ee087f9582c68c4c9d8/CONTRIBUTING.md#L71-L72) - [Author's heap-recovery investigation and test results](https://github.com/boykopovar/AnyPS5/pull/9508#issuecomment-6512416484) ## Not verified I did not run a local build, CTest, GPU validation, title test, or performance capture. The heap-held test results are author-reported and cover the pre-fix head plus a separate fix branch, not this exact PR head. Current hosted Windows and Vulkan-specific product coverage is not established by the green status names alone; Linux and specialized jobs are skipped. ## To get this to a good state Resolve the current-main conflict, fix and test heap-held texture recovery on the resulting PR head, and publish the matched performance report for that exact head. I will rerun the source, overlap, and hosted-check review on the new SHA.
MarcZX10 commented 2026-10-30 05:05:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T05:05:18Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The heap-held eviction fix is now present and the branch merges cleanly with current main, but its regression test was not run and the performance report still measures an older head.

What I ran

Reviewed head 82f76ffa75e602afeab412e9f025d7f4a84dd6e9 against current main base 8c8b9986204d5b1cbb23847b363df00ae832ec9c; the merge preview is clean (d9938289a4051cac7317e089de414d39f0aed2f7). Environment: Linux; no compiler or local test was run. I reviewed the new heap-held eviction change and its added test against the previously reviewed implementation.

git merge-tree --write-tree 8c8b9986204d5b1cbb23847b363df00ae832ec9c 82f76ffa75e602afeab412e9f025d7f4a84dd6e9
git diff --check 8c8b9986204d5b1cbb23847b363df00ae832ec9c...82f76ffa75e602afeab412e9f025d7f4a84dd6e9
python tools/check_conventions.py --base 8c8b9986204d5b1cbb23847b363df00ae832ec9c --head 82f76ffa75e602afeab412e9f025d7f4a84dd6e9
gh api repos/boykopovar/AnyPS5/actions/jobs/123849190170 --jq '[.steps[] | select(.name | test("Run if exist build\\\\select.ninja|Select the tests the change reaches|Run python tools/select_tests.py|Run python tools/check_skips.py")) | {name, conclusion}]'

Results

Check Result
Current-main merge preview Pass; clean tree d9938289a4051cac7317e089de414d39f0aed2f7. The prior merge conflict is no longer present.
git diff --check Pass; no output.
Conventions Pass.
Heap-held recovery source review The new path recognizes cache-plus-heap ownership and requests a heap sweep; a regression test for releasing one of two heap-held sampled textures is present.
Hosted Windows job Build job passed, but test selection, test build and CTest steps were skipped, so it did not run the new recovery test. Linux product and specialized jobs were skipped.
Performance evidence The posted Hades II pair measures PR tree d8c243bb46; the current head is 82f76ffa75e6 and includes later production commits. The PR description says those newer changes were not captured again.
Raw local and hosted-check output

git merge-tree --write-tree ...:

d9938289a4051cac7317e089de414d39f0aed2f7

git diff --check ...: no output (exit status 0).

python tools/check_conventions.py ...:

All conventions checks passed.

Hosted Windows job steps:

[{"conclusion":"skipped","name":"Select the tests the change reaches"},{"conclusion":"skipped","name":"Run if exist build\\select.ninja (ninja -C build -f select.ninja selected) else (cmake --build build)"},{"conclusion":"skipped","name":"Run python tools/select_tests.py ctest build --output-on-failure --timeout 120 --parallel 4 --output-log ctest.log --output-junit ctest.xml"},{"conclusion":"skipped","name":"Run python tools/check_skips.py build/ctest.xml --job windows"}]

Negative control

Assertion Change to code under test Did the new test fail?
Recovery releases exactly one of two sampled textures held only by the cache and GPU heap, and meets its requested byte target. I did not mutate or run the new test locally. The current hosted test steps were skipped. Not exercised in this review.

Findings

Blocking

  • The heap-recovery fix lacks exact-head test evidence. The added heapHeldReleaseTests covers the newly fixed ownership path, but the hosted Windows job skipped test selection and CTest, and the PR description does not report this test running on head 82f76ffa75e6. Run the heap-held recovery test with VK_EXT_descriptor_heap available on this head and report its exact command, device/driver/OS, result, and a negative control using the pre-fix path.
  • The performance pair is stale for this head. The perf report compares current-main integration fcae8c7026e0 with PR integration e485a3333a2c, which was built from d8c243bb46. The current head adds production changes after that capture, including the heap-held recovery fix, and the description explicitly says it was not captured again. Please provide the same-machine, same-title/scene baseline and exact-head pair, both aps5-summary.jsonl lines, the two traces, and tools/trace_digest.py output for this reviewed head.

Non-blocking

The earlier sampled-texture eviction source issue appears addressed in this head, and the prior current-main merge conflict is resolved. I did not independently run the new fix or the title capture.

Sources

Not verified

  • I did not build or run CTest, the new heap-held recovery test, GPU validation, or a Hades II capture locally.
  • The current hosted test-selection, build and CTest steps were skipped; Linux product and specialized checks were skipped.
  • The existing performance pair is author-provided but does not include the current head.

To get this to a good state

Run the heap-held regression on the exact head with the descriptor-heap extension and post its negative control, then provide a fresh matched performance pair with both summary lines, traces and digest output. I will rerun the same merge, diff and conventions checks on the new head before reviewing it again.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5708293557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5708293557). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T05:05:18Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The heap-held eviction fix is now present and the branch merges cleanly with current `main`, but its regression test was not run and the performance report still measures an older head. ## What I ran Reviewed head `82f76ffa75e602afeab412e9f025d7f4a84dd6e9` against current `main` base `8c8b9986204d5b1cbb23847b363df00ae832ec9c`; the merge preview is clean (`d9938289a4051cac7317e089de414d39f0aed2f7`). Environment: Linux; no compiler or local test was run. I reviewed the new heap-held eviction change and its added test against the previously reviewed implementation. ```sh git merge-tree --write-tree 8c8b9986204d5b1cbb23847b363df00ae832ec9c 82f76ffa75e602afeab412e9f025d7f4a84dd6e9 git diff --check 8c8b9986204d5b1cbb23847b363df00ae832ec9c...82f76ffa75e602afeab412e9f025d7f4a84dd6e9 python tools/check_conventions.py --base 8c8b9986204d5b1cbb23847b363df00ae832ec9c --head 82f76ffa75e602afeab412e9f025d7f4a84dd6e9 gh api repos/boykopovar/AnyPS5/actions/jobs/123849190170 --jq '[.steps[] | select(.name | test("Run if exist build\\\\select.ninja|Select the tests the change reaches|Run python tools/select_tests.py|Run python tools/check_skips.py")) | {name, conclusion}]' ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Pass; clean tree `d9938289a4051cac7317e089de414d39f0aed2f7`. The prior merge conflict is no longer present. | | `git diff --check` | Pass; no output. | | Conventions | Pass. | | Heap-held recovery source review | The new path recognizes cache-plus-heap ownership and requests a heap sweep; a regression test for releasing one of two heap-held sampled textures is present. | | Hosted Windows job | Build job passed, but test selection, test build and CTest steps were skipped, so it did not run the new recovery test. Linux product and specialized jobs were skipped. | | Performance evidence | The posted Hades II pair measures PR tree `d8c243bb46`; the current head is `82f76ffa75e6` and includes later production commits. The PR description says those newer changes were not captured again. | <details> <summary>Raw local and hosted-check output</summary> `git merge-tree --write-tree ...`: ```text d9938289a4051cac7317e089de414d39f0aed2f7 ``` `git diff --check ...`: no output (exit status 0). `python tools/check_conventions.py ...`: ```text All conventions checks passed. ``` Hosted Windows job steps: ```json [{"conclusion":"skipped","name":"Select the tests the change reaches"},{"conclusion":"skipped","name":"Run if exist build\\select.ninja (ninja -C build -f select.ninja selected) else (cmake --build build)"},{"conclusion":"skipped","name":"Run python tools/select_tests.py ctest build --output-on-failure --timeout 120 --parallel 4 --output-log ctest.log --output-junit ctest.xml"},{"conclusion":"skipped","name":"Run python tools/check_skips.py build/ctest.xml --job windows"}] ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Recovery releases exactly one of two sampled textures held only by the cache and GPU heap, and meets its requested byte target. | I did not mutate or run the new test locally. The current hosted test steps were skipped. | Not exercised in this review. | ## Findings ### Blocking - **The heap-recovery fix lacks exact-head test evidence.** The added `heapHeldReleaseTests` covers the newly fixed ownership path, but the hosted Windows job skipped test selection and CTest, and the PR description does not report this test running on head `82f76ffa75e6`. Run the heap-held recovery test with `VK_EXT_descriptor_heap` available on this head and report its exact command, device/driver/OS, result, and a negative control using the pre-fix path. - **The performance pair is stale for this head.** The `perf` report compares current-main integration `fcae8c7026e0` with PR integration `e485a3333a2c`, which was built from `d8c243bb46`. The current head adds production changes after that capture, including the heap-held recovery fix, and the description explicitly says it was not captured again. Please provide the same-machine, same-title/scene baseline and exact-head pair, both `aps5-summary.jsonl` lines, the two traces, and `tools/trace_digest.py` output for this reviewed head. ### Non-blocking The earlier sampled-texture eviction source issue appears addressed in this head, and the prior current-main merge conflict is resolved. I did not independently run the new fix or the title capture. ## Sources - [Heap-held eviction path at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/82f76ffa75e602afeab412e9f025d7f4a84dd6e9/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L1466-L1488) - [New heap-held recovery regression test](https://github.com/boykopovar/AnyPS5/blob/82f76ffa75e602afeab412e9f025d7f4a84dd6e9/core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp#L599-L613) - [Performance evidence in the PR description](https://github.com/boykopovar/AnyPS5/pull/9508) - [Performance report and AGC validation requirements pinned to current `main`](https://github.com/boykopovar/AnyPS5/blob/8c8b9986204d5b1cbb23847b363df00ae832ec9c/CONTRIBUTING.md#L71-L72) ## Not verified - I did not build or run CTest, the new heap-held recovery test, GPU validation, or a Hades II capture locally. - The current hosted test-selection, build and CTest steps were skipped; Linux product and specialized checks were skipped. - The existing performance pair is author-provided but does not include the current head. ## To get this to a good state Run the heap-held regression on the exact head with the descriptor-heap extension and post its negative control, then provide a fresh matched performance pair with both summary lines, traces and digest output. I will rerun the same merge, diff and conventions checks on the new head before reviewing it again.
jotitadev commented 2026-10-30 19:06:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T19:06:30Z.

Review: COMMENTED


On the NVIDIA CI run at 82f76ffa75 (54 *_heap tests failing with SegFault): the crashes come from the CI's validation layer, not from this PR's heap path.

Evidence from the CI logs. The run's 10-rerun.log shows the layer predates VK_EXT_descriptor_heap. In the part the gist keeps (it is truncated), the heap tests log vkCreateDevice(): pCreateInfo->pNext chain includes a structure with unknown VkStructureType and vkCreateBuffer(): pCreateInfo->usage contains flag bits that are not recognized right after Vulkan descriptor heap: GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap. The tests only run under that layer on the GPU.

On an RTX 3070 with the same driver (NVIDIA 595.99.02): Linux, GCC 15.2, Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON. Head merged onto main f91137142, with Vulkan-Headers at this PR's 5d94bb4. I ran the same 54 tests, -j1, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, with the ctest environment (APS5_GPU_HEAP=1 etc.):

layer result
none 54/54, 3 of 3 runs
Khronos validation 1.4.341 (knows the extension) 36/54 and 38/54 in two runs; a different subset segfaults each time

In the layer runs, the kernel log puts 31 of the 34 crashes at the same instruction inside libVkLayer_khronos_validation.so (offset 0x120704e, an indexed table load), and 3 in libc. So the 54 CI failures say nothing about the PR's code. I can't tell yet whether the newer layer crashes on something AnyPS5 passes it or on its own descriptor-heap tracking.

The 1.4.341 layer also reports 3 IDs in heap mode that may be worth a look. Its descriptor-heap checks are new, so treat them with some caution:

  • VUID-vkCmdBindResourceHeapEXT-pBindInfo-11236 and VUID-vkCmdBindSamplerHeapEXT-pBindInfo-11228: the reserved range of BindDescriptorHeaps overlaps another command buffer's without matching exactly. For the sampler heap, the other range it lists is [0x0, 0x5e58f4ab1313), which doesn't look like anything AnyPS5 binds.
  • VUID-vkCmdDraw-maintenance4-08602 (82 times, also DrawIndexed/DrawMeshTasksEXT): a vertex shader uses push constants that were not set for "pipeline layout VkPipelineLayout 0x0".

For the CI, the heap-mode tests need either a layer with working VK_EXT_descriptor_heap support or a run without the layer.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5717396488 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5717396488). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T19:06:30Z. **Review:** COMMENTED --- On the NVIDIA CI run at `82f76ffa75` (54 `*_heap` tests failing with SegFault): the crashes come from the CI's validation layer, not from this PR's heap path. **Evidence from the CI logs.** The run's `10-rerun.log` shows the layer predates `VK_EXT_descriptor_heap`. In the part the gist keeps (it is truncated), the heap tests log `vkCreateDevice(): pCreateInfo->pNext chain includes a structure with unknown VkStructureType` and `vkCreateBuffer(): pCreateInfo->usage contains flag bits that are not recognized` right after `Vulkan descriptor heap: GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap`. The tests only run under that layer on the GPU. **On an RTX 3070 with the same driver (NVIDIA 595.99.02):** Linux, GCC 15.2, Release, `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`. Head merged onto `main` `f91137142`, with Vulkan-Headers at this PR's `5d94bb4`. I ran the same 54 tests, `-j1`, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, with the ctest environment (`APS5_GPU_HEAP=1` etc.): | layer | result | |---|---| | none | 54/54, 3 of 3 runs | | Khronos validation 1.4.341 (knows the extension) | 36/54 and 38/54 in two runs; a different subset segfaults each time | In the layer runs, the kernel log puts 31 of the 34 crashes at the same instruction inside `libVkLayer_khronos_validation.so` (offset `0x120704e`, an indexed table load), and 3 in libc. So the 54 CI failures say nothing about the PR's code. I can't tell yet whether the newer layer crashes on something AnyPS5 passes it or on its own descriptor-heap tracking. The 1.4.341 layer also reports 3 IDs in heap mode that may be worth a look. Its descriptor-heap checks are new, so treat them with some caution: - `VUID-vkCmdBindResourceHeapEXT-pBindInfo-11236` and `VUID-vkCmdBindSamplerHeapEXT-pBindInfo-11228`: the reserved range of `BindDescriptorHeaps` overlaps another command buffer's without matching exactly. For the sampler heap, the other range it lists is `[0x0, 0x5e58f4ab1313)`, which doesn't look like anything AnyPS5 binds. - `VUID-vkCmdDraw-maintenance4-08602` (82 times, also `DrawIndexed`/`DrawMeshTasksEXT`): a vertex shader uses push constants that were not set for "pipeline layout `VkPipelineLayout 0x0`". For the CI, the heap-mode tests need either a layer with working `VK_EXT_descriptor_heap` support or a run without the layer. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-30 22:57:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T22:57:29Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The new exact-head test report addresses the earlier runtime-test gap, but the required performance comparison still uses older source commits.

What I ran

Reviewed head dfe95cc9692f9e21e42f80a0be6b744476a8767e against base 90c9759d12ea1166f8b2f822db445f627f9d79da. The precheck confirmed both SHAs were unchanged at completion. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2; no build or GPU run was performed.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9508
git diff --check 90c9759d12ea1166f8b2f822db445f627f9d79da...dfe95cc9692f9e21e42f80a0be6b744476a8767e

Results

Check Result
Diff check, conventions/template, live dependency and mergeability Passed on the exact head/base.
ABI audit and test-quality helper Could not run: the workspace-only scripts are absent from the isolated checkout.
Author-reported focused runtime tests The updated report says 214/214 focused AGC tests passed in both default and heap modes, with zero VUID- lines, and 6/6 heap-specific tests passed. I did not reproduce these GPU tests.
Hosted CI Eligibility, portability and report passed; conventions and labels were queued; Linux/specialized jobs were skipped; relinker and Windows jobs were still running or queued at refresh.
Performance evidence The reported comparison uses main-plus-#9533 commit fcae8c7026e0 and PR-plus-#9533 commit e485a3333a2c; neither is the current base or current head.
Unedited precheck output
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-9508-dfe95cc9692f/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-9508-dfe95cc9692f/report.json
Conclusion: checks failed

Findings

Blocking

This PR is labeled perf, but the capture pair in the report is not from the revisions currently under review: the baseline summary identifies fcae8c7026e0, and the changed summary identifies e485a3333a2c, while the current base/head are 90c9759d12ea1166f8b2f822db445f627f9d79da and dfe95cc9692f9e21e42f80a0be6b744476a8767e. Please provide a matched current-base/current-head capture pair from the same title, scene, machine and settings, with both aps5-summary.jsonl lines, both traces, and tools/trace_digest.py output. Preserve the same #9533 prerequisite on both captures if it is needed to reach the scene, and identify it clearly. The new focused test results do not replace this performance evidence.

Non-blocking

No additional blocking code issue was established in this re-check. The full hosted matrix was not complete at refresh.

Sources

Not verified

I did not run a build, C++ tests, GPU captures, or tools/trace_digest.py; I did not test Linux, Windows locally, macOS, or console behavior. The 214/214 and 6/6 results are author-reported. Hosted Linux and specialized jobs were skipped, and several other jobs were pending at refresh.

To get this to a good state

Please attach the matched captures and digest output for current base 90c9759d12ea1166f8b2f822db445f627f9d79da and current head dfe95cc9692f9e21e42f80a0be6b744476a8767e. I will rerun the same relevant checks against the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5719567741 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5719567741). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T22:57:29Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The new exact-head test report addresses the earlier runtime-test gap, but the required performance comparison still uses older source commits. ## What I ran Reviewed head `dfe95cc9692f9e21e42f80a0be6b744476a8767e` against base `90c9759d12ea1166f8b2f822db445f627f9d79da`. The precheck confirmed both SHAs were unchanged at completion. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2; no build or GPU run was performed. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9508 git diff --check 90c9759d12ea1166f8b2f822db445f627f9d79da...dfe95cc9692f9e21e42f80a0be6b744476a8767e ``` ## Results | Check | Result | |---|---| | Diff check, conventions/template, live dependency and mergeability | Passed on the exact head/base. | | ABI audit and test-quality helper | Could not run: the workspace-only scripts are absent from the isolated checkout. | | Author-reported focused runtime tests | The updated report says 214/214 focused AGC tests passed in both default and heap modes, with zero `VUID-` lines, and 6/6 heap-specific tests passed. I did not reproduce these GPU tests. | | Hosted CI | Eligibility, portability and report passed; conventions and labels were queued; Linux/specialized jobs were skipped; relinker and Windows jobs were still running or queued at refresh. | | Performance evidence | The reported comparison uses main-plus-#9533 commit `fcae8c7026e0` and PR-plus-#9533 commit `e485a3333a2c`; neither is the current base or current head. | <details> <summary>Unedited precheck output</summary> ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-9508-dfe95cc9692f/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-9508-dfe95cc9692f/report.json Conclusion: checks failed ``` </details> ## Findings ### Blocking This PR is labeled `perf`, but the capture pair in the report is not from the revisions currently under review: the baseline summary identifies `fcae8c7026e0`, and the changed summary identifies `e485a3333a2c`, while the current base/head are `90c9759d12ea1166f8b2f822db445f627f9d79da` and `dfe95cc9692f9e21e42f80a0be6b744476a8767e`. Please provide a matched current-base/current-head capture pair from the same title, scene, machine and settings, with both `aps5-summary.jsonl` lines, both traces, and `tools/trace_digest.py` output. Preserve the same #9533 prerequisite on both captures if it is needed to reach the scene, and identify it clearly. The new focused test results do not replace this performance evidence. ### Non-blocking No additional blocking code issue was established in this re-check. The full hosted matrix was not complete at refresh. ## Sources - [Current PR description and reported capture commit IDs](https://github.com/boykopovar/AnyPS5/pull/9508) - [Performance evidence requirement at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/90c9759d12ea1166f8b2f822db445f627f9d79da/AGENTS.md) - [Changed implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/tree/dfe95cc9692f9e21e42f80a0be6b744476a8767e/core/libs/prx/libSceAgcDriver) ## Not verified I did not run a build, C++ tests, GPU captures, or `tools/trace_digest.py`; I did not test Linux, Windows locally, macOS, or console behavior. The 214/214 and 6/6 results are author-reported. Hosted Linux and specialized jobs were skipped, and several other jobs were pending at refresh. ## To get this to a good state Please attach the matched captures and digest output for current base `90c9759d12ea1166f8b2f822db445f627f9d79da` and current head `dfe95cc9692f9e21e42f80a0be6b744476a8767e`. I will rerun the same relevant checks against the new head.
jotitadev commented 2026-10-31 05:14:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T05:14:32Z.

Review: COMMENTED


Follow-up to my review of 82f76ffa75, now on head 95e1f33742. Some items also ran on the earlier heads ec6c2f384f and 229b9883ce, as marked.

Setup: Ubuntu 26.04, GCC 15.2, Release. RTX 3070 with NVIDIA 595.99.02 (the NVIDIA CI's driver) and lavapipe (Mesa 26.0.3), one at a time via VK_DRIVER_FILES. Each head is merged --no-ff onto main 539c3425f8 with no conflicts. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest -j1.

1. The new agc_driver_image_table_store_gpu_heap fails wherever the heap is off.

AGC graphics: image table store: texel 0 of a 16_16_16_16_FLOAT table element holds 0x0000000000000000, expected 0xbc00400038003c00
  • It fails in 3 of 3 runs on lavapipe and 3 of 3 on the 3070 as pushed (where the heap stays off, see 2).
  • It passes once the heap is live.
  • The test only asserts the heap-stage count if (DescriptorHeapEnabled()), so it looks meant to pass per-dispatch too. Then either the per-dispatch table path drops the raw-uint store in the same way 95e1f33742 fixed for the heap, or the test should skip without the heap.
  • The NVIDIA CI will report it as a new failure.

2. As pushed, the heap never turns on with the CI's driver.

595.99.02 reports Vulkan 1.4.329. fd802c3b42's driver check therefore turns the heap off before the layer check runs:

[gpu-heap] the driver reports Vulkan 1.4.329, older than 1.4.340 where VK_EXT_descriptor_heap was released, so its descriptor heap is a pre-release revision and the GPU heap stays off

The driver advertises VK_EXT_descriptor_heap revision 1, which is the VK_EXT_DESCRIPTOR_HEAP_SPEC_VERSION of the pinned Vulkan-Headers (340). Results:

  • Build: all (size asserts and field counts) builds with no new warnings. public_headers passes 65/65.
  • The tests of the executables built from the changed test files, layer 1.4.341, 3070: 309/310 at 95e1f33742; the one failure is the test in 1.
  • Earlier heads, layer 1.4.341:
    • 229b9883ce: 305/305 on each device;
    • ec6c2f384f: 302/302, 3 of 3 runs on each device, and 302/302 with layer 1.3.275.
    • No VUID- from this PR; the only message is main's layerCount-compatibility warning.
  • Heap coverage: the heap-only tests (agc_driver_heap_*, heap_slots*, pipeline_journal_gpu_heap, ...) skip with 77 on both devices, and the other *_gpu_heap registrations run on the per-draw path.
  • ^agc, no layer:
    • 229b9883ce: 1236/1236 on the 3070;
    • ec6c2f384f: 1233/1233 on the 3070 and on lavapipe.

So the NVIDIA CI no longer runs the heap at all. The same goes for any 1.4.341 layer run, because of the layer check.

3. With the heap live on this driver

I relaxed the driver check locally to 1.4.329. That's one line; the layer check stays, and these runs use no layer. Each heap test then logs GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap.

  • Every test matching heap: 131/131 at 95e1f33742 (1 run). At 229b9883ce (129) and ec6c2f384f (127), every one passed in 3 of 3 runs. The [heap-slots] verify: lines report no image slot holding another texture and none of the 336 storage slots per run holding another image or view.

  • Red for 039b02099a (at ec6c2f384f and 229b9883ce): I reverted it and ran the 18 storage tests that ec6c2f384f adds to the heap set.

    • agc_driver_image_converted_unorm_gpu_heap fails with AGC graphics: a GPU-mode slot word names a sampler the stage does not bind. The other 17 pass.
    • With the fix, 18/18.
  • ^agc with APS5_GPU_HEAP=1 set for the whole run: 4 of 1238 fail at 95e1f33742, in each of 3 runs (a full suite and two reruns). eb606888cc fixed agc_driver_sample_multisample_target, which failed on the two earlier heads. The other four still fail. Without the variable, three of them pass and sample_order_grid_reference skips:

    test message
    agc_driver_buffer_descriptor_runtime buffer descriptor runtime, specialized modules, records 37: lane 9 is 0x7e552c03, expected 0x00000000
    agc_driver_sample_order the 2x color format 9: the stored samples did not read back
    agc_driver_multisample_readback_upload readback mismatch: format=13 first=0 byte=3 expected=0x3a actual=0x20
    agc_driver_sample_order_grid_reference the exact path: sample 0 of pixel (0, 1) does not hold its own sample index in color
    • At ec6c2f384f, buffer_descriptor_runtime bisects to 1e30fbb31e. With only that commit reverted it passes; with it, lane 9 reads a nonzero word where an out-of-range read should give zero.
    • The three multisample tests still fail with 1e30fbb31e and 8a590ddf7e both reverted. I haven't narrowed them further.

At 82f76ffa75, before the driver check existed, the 54 heap tests also passed 3 of 3 on this driver with no layer. If 595.99's revision differs from the released extension in a specific way, could you say what it is? If it doesn't, a driver that advertises revision 1 could keep the heap on. Either way, at this head the heap evidence comes only from 615.x drivers, since neither the CI's machine nor mine turns it on.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux), lavapipe (Mesa 26.0.3).

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5721426040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5721426040). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-31T05:14:32Z. **Review:** COMMENTED --- Follow-up to my review of `82f76ffa75`, now on head `95e1f33742`. Some items also ran on the earlier heads `ec6c2f384f` and `229b9883ce`, as marked. Setup: Ubuntu 26.04, GCC 15.2, Release. RTX 3070 with NVIDIA 595.99.02 (the NVIDIA CI's driver) and lavapipe (Mesa 26.0.3), one at a time via `VK_DRIVER_FILES`. Each head is merged `--no-ff` onto `main` `539c3425f8` with no conflicts. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `ctest -j1`. **1. The new `agc_driver_image_table_store_gpu_heap` fails wherever the heap is off.** ``` AGC graphics: image table store: texel 0 of a 16_16_16_16_FLOAT table element holds 0x0000000000000000, expected 0xbc00400038003c00 ``` - It fails in 3 of 3 runs on lavapipe and 3 of 3 on the 3070 as pushed (where the heap stays off, see 2). - It passes once the heap is live. - The test only asserts the heap-stage count `if (DescriptorHeapEnabled())`, so it looks meant to pass per-dispatch too. Then either the per-dispatch table path drops the raw-uint store in the same way 95e1f33742 fixed for the heap, or the test should skip without the heap. - The NVIDIA CI will report it as a new failure. **2. As pushed, the heap never turns on with the CI's driver.** 595.99.02 reports Vulkan 1.4.329. fd802c3b42's driver check therefore turns the heap off before the layer check runs: ``` [gpu-heap] the driver reports Vulkan 1.4.329, older than 1.4.340 where VK_EXT_descriptor_heap was released, so its descriptor heap is a pre-release revision and the GPU heap stays off ``` The driver advertises `VK_EXT_descriptor_heap` revision 1, which is the `VK_EXT_DESCRIPTOR_HEAP_SPEC_VERSION` of the pinned Vulkan-Headers (340). Results: - **Build:** `all` (size asserts and field counts) builds with no new warnings. `public_headers` passes 65/65. - **The tests of the executables built from the changed test files, layer 1.4.341, 3070:** 309/310 at `95e1f33742`; the one failure is the test in 1. - **Earlier heads, layer 1.4.341:** - `229b9883ce`: 305/305 on each device; - `ec6c2f384f`: 302/302, 3 of 3 runs on each device, and 302/302 with layer 1.3.275. - No `VUID-` from this PR; the only message is main's `layerCount-compatibility` warning. - **Heap coverage:** the heap-only tests (`agc_driver_heap_*`, `heap_slots*`, `pipeline_journal_gpu_heap`, ...) skip with 77 on both devices, and the other `*_gpu_heap` registrations run on the per-draw path. - **`^agc`, no layer:** - `229b9883ce`: 1236/1236 on the 3070; - `ec6c2f384f`: 1233/1233 on the 3070 and on lavapipe. So the NVIDIA CI no longer runs the heap at all. The same goes for any 1.4.341 layer run, because of the layer check. **3. With the heap live on this driver** I relaxed the driver check locally to 1.4.329. That's one line; the layer check stays, and these runs use no layer. Each heap test then logs `GPU-mode draws and dispatches bind from VK_EXT_descriptor_heap`. - **Every test matching `heap`:** 131/131 at `95e1f33742` (1 run). At `229b9883ce` (129) and `ec6c2f384f` (127), every one passed in 3 of 3 runs. The `[heap-slots] verify:` lines report no image slot holding another texture and none of the 336 storage slots per run holding another image or view. - **Red for 039b02099a** (at `ec6c2f384f` and `229b9883ce`): I reverted it and ran the 18 storage tests that ec6c2f384f adds to the heap set. - `agc_driver_image_converted_unorm_gpu_heap` fails with `AGC graphics: a GPU-mode slot word names a sampler the stage does not bind`. The other 17 pass. - With the fix, 18/18. - **`^agc` with `APS5_GPU_HEAP=1` set for the whole run:** 4 of 1238 fail at `95e1f33742`, in each of 3 runs (a full suite and two reruns). eb606888cc fixed `agc_driver_sample_multisample_target`, which failed on the two earlier heads. The other four still fail. Without the variable, three of them pass and `sample_order_grid_reference` skips: | test | message | |---|---| | `agc_driver_buffer_descriptor_runtime` | `buffer descriptor runtime, specialized modules, records 37: lane 9 is 0x7e552c03, expected 0x00000000` | | `agc_driver_sample_order` | `the 2x color format 9: the stored samples did not read back` | | `agc_driver_multisample_readback_upload` | `readback mismatch: format=13 first=0 byte=3 expected=0x3a actual=0x20` | | `agc_driver_sample_order_grid_reference` | `the exact path: sample 0 of pixel (0, 1) does not hold its own sample index in color` | - At `ec6c2f384f`, `buffer_descriptor_runtime` bisects to 1e30fbb31e. With only that commit reverted it passes; with it, lane 9 reads a nonzero word where an out-of-range read should give zero. - The three multisample tests still fail with 1e30fbb31e and 8a590ddf7e both reverted. I haven't narrowed them further. At `82f76ffa75`, before the driver check existed, the 54 heap tests also passed 3 of 3 on this driver with no layer. If 595.99's revision differs from the released extension in a specific way, could you say what it is? If it doesn't, a driver that advertises revision 1 could keep the heap on. Either way, at this head the heap evidence comes only from 615.x drivers, since neither the CI's machine nor mine turns it on. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux), lavapipe (Mesa 26.0.3). Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
jotitadev commented 2026-10-31 07:34:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T07:34:51Z.

Review: COMMENTED


@Raghav314 I re-ran dd7120c648 (merged --no-ff onto main 6a691f69ee) on the same box: RTX 3070 with 595.99.02 and lavapipe (Mesa 26.0.3), ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest -j1. all builds with no new warnings and public_headers passes 65/65.

  1. Gate: confirmed. With no layer, 595.99.02 now logs bind from VK_EXT_descriptor_heap, and every test matching heap passes 131/131 in 3 of 3 runs. With VVL 1.4.341 the heap stays off, and the log line explains why (… predates its descriptor heap rules …).
  2. agc_driver_image_table_store_gpu_heap: passes 3/3 on the 3070 with the heap on. It skips 3/3 on lavapipe, and on the 3070 under VVL 1.4.341.
  3. agc_driver_buffer_descriptor_runtime with APS5_GPU_HEAP=1: passes 3/3 now (28c310dc06).
  4. ^agc (minus dcc/flip/lds_atomics64): 1240/1240 on the 3070 and on lavapipe without the variable. With APS5_GPU_HEAP=1 it's 1237/1240, and only the three multisample tests fail, with the same messages as before. 3 of 3 targeted reruns give the same result.
  5. APS5_VERIFY_GPU_HEAP=1 on the three, as you asked: each one logs bind from VK_EXT_descriptor_heap, but none of them prints a [heap-slots] line. In the same run, agc_driver_buffer_descriptor_runtime prints its lines, and so does agc_driver_sample_multisample_target: 1 … 7 image slots checked, 0 hold another texture; 0 storage slots checked. So the verify never sees whatever slots these three bind, and it can't rule out a wrong view there. agc_driver_sample_order_grid_reference runs here because 595.99.02 reports a 2x4 grid at 2 samples. That's why it fails here instead of skipping as on your 4090.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5721825971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5721825971). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-31T07:34:51Z. **Review:** COMMENTED --- @Raghav314 I re-ran `dd7120c648` (merged `--no-ff` onto `main` `6a691f69ee`) on the same box: RTX 3070 with 595.99.02 and lavapipe (Mesa 26.0.3), `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `ctest -j1`. `all` builds with no new warnings and `public_headers` passes 65/65. 1. **Gate:** confirmed. With no layer, 595.99.02 now logs `bind from VK_EXT_descriptor_heap`, and every test matching `heap` passes 131/131 in 3 of 3 runs. With VVL 1.4.341 the heap stays off, and the log line explains why (`… predates its descriptor heap rules …`). 2. **`agc_driver_image_table_store_gpu_heap`:** passes 3/3 on the 3070 with the heap on. It skips 3/3 on lavapipe, and on the 3070 under VVL 1.4.341. 3. **`agc_driver_buffer_descriptor_runtime` with `APS5_GPU_HEAP=1`:** passes 3/3 now (28c310dc06). 4. **`^agc`** (minus dcc/flip/lds_atomics64): 1240/1240 on the 3070 and on lavapipe without the variable. With `APS5_GPU_HEAP=1` it's 1237/1240, and only the three multisample tests fail, with the same messages as before. 3 of 3 targeted reruns give the same result. 5. **`APS5_VERIFY_GPU_HEAP=1` on the three, as you asked:** each one logs `bind from VK_EXT_descriptor_heap`, but **none of them prints a `[heap-slots]` line**. In the same run, `agc_driver_buffer_descriptor_runtime` prints its lines, and so does `agc_driver_sample_multisample_target`: `1 … 7 image slots checked, 0 hold another texture; 0 storage slots checked`. So the verify never sees whatever slots these three bind, and it can't rule out a wrong view there. `agc_driver_sample_order_grid_reference` runs here because 595.99.02 reports a 2x4 grid at 2 samples. That's why it fails here instead of skipping as on your 4090. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
XairRrR commented 2026-11-03 14:31:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T14:31:28Z.

Review: COMMENTED


Reviewed — comments

The merged tree builds, and every test it reaches passes with no new VUID- lines compared with main. This machine's lavapipe does not expose VK_EXT_descriptor_heap, though, so all 98 GPU-heap test registrations skipped and I could not exercise the heap path. I found nothing blocking; the non-blocking points are below.

What I ran

Head 4353aabe1ab0c831a01a9c020d08f1a5b46f9f62, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged --no-ff (tree aa994b5315ffd0856fdc707231152ae75497c817). Debian 13 VM, 32 vCPU Xeon Gold 6136, GCC 14.2.0, Release, Ninja, Vulkan through lavapipe (Mesa 26.1.6, LLVM 19), no GPU.

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...4353aabe1ab0c831a01a9c020d08f1a5b46f9f62
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
# build, libs, test selection and the validation-layer comparison: run by the review script (build.json)
git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
ninja -C build -j32 -l32 request_serializer_tests
ctest --test-dir build -R "^request_serializer$" --output-on-failure
git show aa994b5315ffd0856fdc707231152ae75497c817:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
ninja -C build -j32 -l32 request_serializer_tests
ctest --test-dir build -R "^(request_serializer|heap_template_budget|agc_driver_heap_walk_memo|agc_driver_device_function_cache|agc_pooled_buffer_address)$"
git status --porcelain

Results

Check Result
git diff --check clean (exit 0)
check_conventions.py passed
configure / build / libs ok
Tests (full selection, 3931 run) 0 new failures, 0 timeouts. 9 known failures that also fail on main. guest_net_ctl skips unexpectedly on main too.
Khronos validation (882 tests, layer loaded in 881) 0 tests with new VUID- lines compared with main; layer missing in none
GPU-heap tests on this device 98 heap-mode registrations skipped with exit 77 ("the device lacks VK_EXT_descriptor_heap …" / "the device has no VK_EXT_descriptor_heap")
CPU-only heap tests heap_template_budget, agc_driver_heap_walk_memo, agc_driver_device_function_cache, agc_pooled_buffer_address, request_serializer: passed
agc_driver_heap_walk_memo output tail
the heap walk memo drops its previous generation before its current entries
the heap walk memo keeps its recently hit entries
the heap walk memo keeps an entry a hit promoted from its previous generation
the heap walk memo charges a result its entries share once
heap walk memo budget tests passed

Negative control

A full revert of the 266 files is not practical, and the heap tests cannot run here, so I made one targeted control.

  • I restored core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp from main and rebuilt request_serializer_tests. request_serializer then failed (the subprocess aborted), so the version 55 heap-profile and target-flag round-trip tests do depend on the change.
  • I then restored the merged file and rebuilt. The test passes again, and git status --porcelain is empty.

None of the heap-path regression tests could be reverse-checked on this machine because they skip.

Findings

Blocking

None.

Non-blocking

  1. Explanatory comments that are not technical debt. CONVENTIONS.md allows code comments only for technical debt. The conventions check passes only because the PR also edits docs/dev/debt/libSceAgcDriver.md. The new comments describe behaviour, not debt:

    • core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp:780-783
    • core/shader/recompiler/HeapTemplateBudget.hpp:30-31, :43-46 and :62-63
    • core/libs/prx/libSceAgcDriver/tests/execution/PushOnlyHeapPasses.cpp:23-25 and :61-62

    Suggestion: drop them, or put the information in the commit message or the docs. Older code in Recorder.hpp has similar comments, so this is a minor point.

  2. The description no longer matches the code in two places.

    • It says the heap stays off "when the driver reports a Vulkan version older than 1.4.340". Since 9263a4bdce, the gate is the extension's revision (specVersion < VK_EXT_DESCRIPTOR_HEAP_SPEC_VERSION, VulkanDevice.cpp L167-L175), and 595.99.02 now runs the heap.
    • It says "4096 image slots per binding kind". Since eb9d658966, all binding kinds share one pool of 233415 slots, as docs/dev/ENVIRONMENT.md and ARCHITECTURE.md in this PR say.

    Please update both statements so reviewers and testers read the current gating and capacity.

  3. The performance evidence predates the current head. The Hades II pair measures 95e1f33742. Since then the PR has added several production perf(...) and fix(...) commits: read-only and branch-free heap loads, encoded-descriptor copy, the device function cache, the GPU-mode scratch pool, and this head's push-data change. MarcZX10 already raised this; I only confirm that it still holds at 4353aabe1a. The one AMD title pair posted for a recent head (JJenkx, Unbound PPSA03274, RX 6650 XT) measured main faster than the heap head (30.2 vs 26.6 FPS, one run per arm). The heap is opt-in, so this does not affect default behaviour. The perf claim would still be stronger with a current-head pair, or a statement that the gain is NVIDIA-specific.

  4. The head commit's new heap pipelines fail as a pair. createPushOnlyHeapPipeline now runs inside the same try as the classic dispatch-argument and mesh-argument pipelines (Recorder.cpp RecordDispatchArguments / RecordMeshArguments). If creating the heap variant throws, dispatchArgumentState / meshArgumentState becomes negative, and the classic argument check is lost too. The header says the variant is "null … when the driver refuses it", so if createPushOnlyHeapPipeline returns null instead of throwing, this is fine. I did not trace every refusal path to confirm.

Not verified

  • None of the GPU-heap code paths ran here. lavapipe from Mesa 26.1.6 has no VK_EXT_descriptor_heap, so the _gpu_heap / _heap variants, the heap slot tests, the table-stage reuse test and the push-only heap pass test (including the dispatch-argument case this head adds) all skipped. The validation comparison therefore covers only the non-heap paths. The heap-mode validation results in the description and discussion (NVIDIA 615.x/595.99, RADV 26.2.6) are the authors' and testers' reports.
  • I did not check slot lifetime (slots are freed when their owner is destroyed, relying on batches keeping owners alive), stale VkImageView handle reuse within one owner's slot key, or the ring chunk wrap logic on hardware. I read them only.
  • No title runs or performance captures.

To get this to a good state

  • Update the description: version gate → extension revision, and per-kind slots → shared pool.
  • Drop the non-debt comments listed above.
  • Ideally, attach a heap-path test run on a device with VK_EXT_descriptor_heap for the exact final head (for example Mesa ≥ 26.2 lavapipe, which the author reports exposes the extension), including agc_driver_push_only_heap_passes.
  • Consider refreshing the performance pair on the current head.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753957424 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5753957424). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T14:31:28Z. **Review:** COMMENTED --- # Reviewed — comments The merged tree builds, and every test it reaches passes with no new `VUID-` lines compared with `main`. This machine's lavapipe does not expose `VK_EXT_descriptor_heap`, though, so all 98 GPU-heap test registrations skipped and I could not exercise the heap path. I found nothing blocking; the non-blocking points are below. ## What I ran Head `4353aabe1ab0c831a01a9c020d08f1a5b46f9f62`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged `--no-ff` (tree `aa994b5315ffd0856fdc707231152ae75497c817`). Debian 13 VM, 32 vCPU Xeon Gold 6136, GCC 14.2.0, Release, Ninja, Vulkan through lavapipe (Mesa 26.1.6, LLVM 19), no GPU. ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...4353aabe1ab0c831a01a9c020d08f1a5b46f9f62 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 # build, libs, test selection and the validation-layer comparison: run by the review script (build.json) git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp ninja -C build -j32 -l32 request_serializer_tests ctest --test-dir build -R "^request_serializer$" --output-on-failure git show aa994b5315ffd0856fdc707231152ae75497c817:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp ninja -C build -j32 -l32 request_serializer_tests ctest --test-dir build -R "^(request_serializer|heap_template_budget|agc_driver_heap_walk_memo|agc_driver_device_function_cache|agc_pooled_buffer_address)$" git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean (exit 0) | | `check_conventions.py` | passed | | configure / build / `libs` | ok | | Tests (full selection, 3931 run) | 0 new failures, 0 timeouts. 9 known failures that also fail on `main`. `guest_net_ctl` skips unexpectedly on `main` too. | | Khronos validation (882 tests, layer loaded in 881) | 0 tests with new `VUID-` lines compared with `main`; layer missing in none | | GPU-heap tests on this device | 98 heap-mode registrations skipped with exit 77 ("the device lacks VK_EXT_descriptor_heap …" / "the device has no VK_EXT_descriptor_heap") | | CPU-only heap tests | `heap_template_budget`, `agc_driver_heap_walk_memo`, `agc_driver_device_function_cache`, `agc_pooled_buffer_address`, `request_serializer`: passed | <details><summary>agc_driver_heap_walk_memo output tail</summary> ``` the heap walk memo drops its previous generation before its current entries the heap walk memo keeps its recently hit entries the heap walk memo keeps an entry a hit promoted from its previous generation the heap walk memo charges a result its entries share once heap walk memo budget tests passed ``` </details> ## Negative control A full revert of the 266 files is not practical, and the heap tests cannot run here, so I made one targeted control. - I restored `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` from `main` and rebuilt `request_serializer_tests`. `request_serializer` then **failed** (the subprocess aborted), so the version 55 heap-profile and target-flag round-trip tests do depend on the change. - I then restored the merged file and rebuilt. The test passes again, and `git status --porcelain` is empty. None of the heap-path regression tests could be reverse-checked on this machine because they skip. ## Findings ### Blocking None. ### Non-blocking 1. **Explanatory comments that are not technical debt.** CONVENTIONS.md allows code comments only for technical debt. The conventions check passes only because the PR also edits `docs/dev/debt/libSceAgcDriver.md`. The new comments describe behaviour, not debt: - `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp:780-783` - `core/shader/recompiler/HeapTemplateBudget.hpp:30-31`, `:43-46` and `:62-63` - `core/libs/prx/libSceAgcDriver/tests/execution/PushOnlyHeapPasses.cpp:23-25` and `:61-62` Suggestion: drop them, or put the information in the commit message or the docs. Older code in `Recorder.hpp` has similar comments, so this is a minor point. 2. **The description no longer matches the code in two places.** - It says the heap stays off "when the driver reports a Vulkan version older than 1.4.340". Since 9263a4bdce, the gate is the extension's revision (`specVersion < VK_EXT_DESCRIPTOR_HEAP_SPEC_VERSION`, [VulkanDevice.cpp L167-L175](https://github.com/boykopovar/AnyPS5/blob/4353aabe1ab0c831a01a9c020d08f1a5b46f9f62/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L167-L175)), and 595.99.02 now runs the heap. - It says "4096 image slots per binding kind". Since eb9d658966, all binding kinds share one pool of 233415 slots, as `docs/dev/ENVIRONMENT.md` and `ARCHITECTURE.md` in this PR say. Please update both statements so reviewers and testers read the current gating and capacity. 3. **The performance evidence predates the current head.** The Hades II pair measures 95e1f33742. Since then the PR has added several production `perf(...)` and `fix(...)` commits: read-only and branch-free heap loads, encoded-descriptor copy, the device function cache, the GPU-mode scratch pool, and this head's push-data change. MarcZX10 already raised this; I only confirm that it still holds at `4353aabe1a`. The one AMD title pair posted for a recent head (JJenkx, Unbound PPSA03274, RX 6650 XT) measured `main` faster than the heap head (30.2 vs 26.6 FPS, one run per arm). The heap is opt-in, so this does not affect default behaviour. The perf claim would still be stronger with a current-head pair, or a statement that the gain is NVIDIA-specific. 4. **The head commit's new heap pipelines fail as a pair.** `createPushOnlyHeapPipeline` now runs inside the same `try` as the classic dispatch-argument and mesh-argument pipelines (`Recorder.cpp` `RecordDispatchArguments` / `RecordMeshArguments`). If creating the heap variant throws, `dispatchArgumentState` / `meshArgumentState` becomes negative, and the classic argument check is lost too. The header says the variant is "null … when the driver refuses it", so if `createPushOnlyHeapPipeline` returns null instead of throwing, this is fine. I did not trace every refusal path to confirm. ## Not verified - None of the GPU-heap code paths ran here. lavapipe from Mesa 26.1.6 has no `VK_EXT_descriptor_heap`, so the `_gpu_heap` / `_heap` variants, the heap slot tests, the table-stage reuse test and the push-only heap pass test (including the dispatch-argument case this head adds) all skipped. The validation comparison therefore covers only the non-heap paths. The heap-mode validation results in the description and discussion (NVIDIA 615.x/595.99, RADV 26.2.6) are the authors' and testers' reports. - I did not check slot lifetime (slots are freed when their owner is destroyed, relying on batches keeping owners alive), stale `VkImageView` handle reuse within one owner's slot key, or the ring chunk wrap logic on hardware. I read them only. - No title runs or performance captures. ## To get this to a good state - Update the description: version gate → extension revision, and per-kind slots → shared pool. - Drop the non-debt comments listed above. - Ideally, attach a heap-path test run on a device with `VK_EXT_descriptor_heap` for the exact final head (for example Mesa ≥ 26.2 lavapipe, which the author reports exposes the extension), including `agc_driver_push_only_heap_passes`. - Consider refreshing the performance pair on the current head. <!-- anyps5-bots job=2666 head=4353aabe1ab0c831a01a9c020d08f1a5b46f9f62 -->
XairRrR commented 2026-11-03 17:16:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T17:16:36Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

78079485cc (GPU-heap guest buffers and the flattened SRT through ring descriptors) and c9bac36abb (dispatch-limit axis, null on a throw, comment removal) resolve my four earlier points, but the new ring-descriptor writer adds thread_local objects with destructors to the AGC module, which breaks the project's Windows thread-local rule.

What changed since my last review

  • 78079485cc: a new heapBufferDescriptors target flag (in the cache key and in serialization version 55). GPU-mode stages declare the per-draw buffer array and SRT buffer again. The pipeline maps them over a run of storage buffer descriptors written into the shader-data ring (VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_PUSH_INDEX_EXT). Heap shader data is now read as uvec4. APS5_NO_HEAP_DATA_UNIFORM and its ENVIRONMENT.md row are removed.
  • c9bac36abb:
    • RunDispatchArguments puts the oversized count on the lowest-limit axis.
    • createPushOnlyHeapPipeline returns null when creating the pipeline throws.
    • The non-debt comments in Recorder.hpp, HeapTemplateBudget.hpp and PushOnlyHeapPasses.cpp are removed.
  • Description: the gate now reads as the extension revision, and the capacity as the shared pool of 233415 slots.

What I ran

Head c9bac36abbd92237d776a094769386e2b8ce74a2, main 1e658521a0a599872612bb91949311e2956b5283, merged --no-ff (tree 75992bc462734abda3a69df9ac03f8f276c264ad). Debian 13 VM, 32 vCPU Xeon Gold 6136, GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6, LLVM 19), no GPU.

git diff --stat 4353aabe1ab0c831a01a9c020d08f1a5b46f9f62 c9bac36abbd92237d776a094769386e2b8ce74a2
git diff --check 1e658521a0a599872612bb91949311e2956b5283...c9bac36abbd92237d776a094769386e2b8ce74a2
python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283
# build, libs, test selection and the validation-layer comparison: run by the review script
objdump -d --no-show-raw-insn -C build/core/libs/libs/libSceAgcDriver.prx   # functions that call __cxa_thread_atexit
git show 4353aabe1ab0c831a01a9c020d08f1a5b46f9f62:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
ninja -C build -j32 -l32 request_serializer_tests
ctest --test-dir build -R "^request_serializer$" --output-on-failure
git show 75992bc462734abda3a69df9ac03f8f276c264ad:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
ninja -C build -j32 -l32 request_serializer_tests agc_driver_push_only_heap_passes_tests
ctest --test-dir build -R "^(request_serializer|agc_driver_push_only_heap_passes.*|agc_shader_memory.*)$" --output-on-failure
git status --porcelain
Check Result
git diff --check clean
check_conventions.py passed
configure / build / libs ok
Tests (3938 run) 0 new failures, 0 timeouts; 9 known failures that also fail on main; guest_net_ctl's unexpected skip happens on main too
Khronos validation (884 tests, layer loaded in 883, missing in none) 0 tests with new VUID- lines
request_serializer, agc_driver_push_only_heap_passes, agc_shader_memory passed; agc_driver_push_only_heap_passes_gpu_heap skipped (no VK_EXT_descriptor_heap)

Negative control. I restored RequestSerializer.cpp from the previously reviewed head 4353aabe1a, which does not write the new heapBufferDescriptors byte. request_serializer then failed (subprocess aborted). After I restored the merged file it passed again, and git status --porcelain was empty. The changed PushOnlyHeapPasses.cpp check runs here only in its non-heap variant, which passes. The heap variant and every other ring-descriptor path skip on this lavapipe.

Previous findings

  1. Non-debt comments: Resolved. c9bac36abb removes them from Recorder.hpp, HeapTemplateBudget.hpp and PushOnlyHeapPasses.cpp. The delta adds no new comment lines.
  2. Description out of date: Resolved. It now gives the specVersion gate and the shared pool of 233415 image slots.
  3. Performance evidence predates the head: Still open (non-blocking, unchanged). The Hades II pair is still on 95e1f33742. 78079485cc changes heap-mode shader codegen and descriptor binding, which is exactly the measured path. The author's RTX 4090 MCD2 numbers and RDNA2 instruction counts are a pre-review build and not a main/head summary-line pair (author-reported). Since the heap is opt-in, I keep this non-blocking, as before.
  4. Heap argument pipelines fail as a pair: Resolved. createPushOnlyHeapPipeline (Recorder.cpp:2784 at head) now catches exceptions and returns VK_NULL_HANDLE, so a refused heap variant leaves the classic dispatch-argument and mesh-argument pipelines in place.

New findings

Blocking

  • New thread_local objects with destructors in libSceAgcDriver.prx (BindlessHeap.cpp L857-L858, core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp:857 in the merged tree).
    • BindlessHeap::RingBufferDescriptors declares thread_local std::vector<VkResourceDescriptorInfoEXT> resources; and thread_local std::vector<VkHostAddressRangeEXT> ranges;.
    • In the Linux build, RingBufferDescriptors is the only BindlessHeap function that calls __cxa_thread_atexit.
    • On MinGW this is the pattern prx_thread_local_destructors (core/libs/CMakeLists.txt:1110, tests/ThreadLocalDestructors.cmake) rejects. Such a destructor runs after emulated TLS has freed the object. oneandonlydean reported the same failure for this PR's swept-storage thread-local on the Windows run, fixed in 1607542d66.
    • The same commit already uses HostThreadLocal for the range vector in ShaderResources::ringDescriptors (ShaderResources.cpp:6449 in the merged tree). The rest of the module keeps vectors either in HostThreadLocal or behind thread_local T* slots.
    • The test registers only for MinGW, so this Linux machine cannot run it. The finding comes from the source and the Linux disassembly.
    • Fix: keep both vectors in HostThreadLocal<std::vector<…>, Tag>(), as ringDescriptors does, and rerun the Windows job.

Non-blocking

  • Ring-descriptor reuse compares only the SRT range (ShaderResources.cpp:6943 in the merged tree). A stage keeps its descriptor run when its shader data span was kept (dataKept) and the SRT range matches. The guest buffer ranges are not compared, so the run relies on equal guest words implying the same buffer addresses. This is the same assumption the address-in-shader-data path made when it kept a span, so it is not a regression. The moved-buffer path (addressedOffsets) always writes a fresh run. I did not find a check under APS5_VERIFY_GPU_HEAP that compares a kept run with a recomputed one. Adding one would cover this, as the stage data spans already have.

Not verified

  • No ring-descriptor path ran here: lavapipe 26.1.6 has no VK_EXT_descriptor_heap, so every heap-mode test skipped. The validation comparison covers only the non-heap paths.
  • The heap-mode results are author- and tester-reported and not on the exact head:
  • The NVIDIA NonWritable miscompile workaround, the RDNA2 instruction counts and the MCD2 frame numbers are author-reported.
  • I did not run the Windows build, so prx_thread_local_destructors was not run.

To get this to a good state

  • Move the two vectors in RingBufferDescriptors into HostThreadLocal and confirm prx_thread_local_destructors passes on Windows.
  • Optionally, have APS5_VERIFY_GPU_HEAP check kept ring-descriptor runs, and refresh the main/head performance pair now that heap codegen has changed.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5756564061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5756564061). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T17:16:36Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested 78079485cc (GPU-heap guest buffers and the flattened SRT through ring descriptors) and c9bac36abb (dispatch-limit axis, null on a throw, comment removal) resolve my four earlier points, but the new ring-descriptor writer adds `thread_local` objects with destructors to the AGC module, which breaks the project's Windows thread-local rule. ## What changed since my last review - **78079485cc:** a new `heapBufferDescriptors` target flag (in the cache key and in serialization version 55). GPU-mode stages declare the per-draw buffer array and SRT buffer again. The pipeline maps them over a run of storage buffer descriptors written into the shader-data ring (`VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_PUSH_INDEX_EXT`). Heap shader data is now read as `uvec4`. `APS5_NO_HEAP_DATA_UNIFORM` and its ENVIRONMENT.md row are removed. - **c9bac36abb:** - `RunDispatchArguments` puts the oversized count on the lowest-limit axis. - `createPushOnlyHeapPipeline` returns null when creating the pipeline throws. - The non-debt comments in `Recorder.hpp`, `HeapTemplateBudget.hpp` and `PushOnlyHeapPasses.cpp` are removed. - **Description:** the gate now reads as the extension revision, and the capacity as the shared pool of 233415 slots. ## What I ran Head `c9bac36abbd92237d776a094769386e2b8ce74a2`, `main` `1e658521a0a599872612bb91949311e2956b5283`, merged `--no-ff` (tree `75992bc462734abda3a69df9ac03f8f276c264ad`). Debian 13 VM, 32 vCPU Xeon Gold 6136, GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6, LLVM 19), no GPU. ``` git diff --stat 4353aabe1ab0c831a01a9c020d08f1a5b46f9f62 c9bac36abbd92237d776a094769386e2b8ce74a2 git diff --check 1e658521a0a599872612bb91949311e2956b5283...c9bac36abbd92237d776a094769386e2b8ce74a2 python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283 # build, libs, test selection and the validation-layer comparison: run by the review script objdump -d --no-show-raw-insn -C build/core/libs/libs/libSceAgcDriver.prx # functions that call __cxa_thread_atexit git show 4353aabe1ab0c831a01a9c020d08f1a5b46f9f62:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp ninja -C build -j32 -l32 request_serializer_tests ctest --test-dir build -R "^request_serializer$" --output-on-failure git show 75992bc462734abda3a69df9ac03f8f276c264ad:core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp > core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp ninja -C build -j32 -l32 request_serializer_tests agc_driver_push_only_heap_passes_tests ctest --test-dir build -R "^(request_serializer|agc_driver_push_only_heap_passes.*|agc_shader_memory.*)$" --output-on-failure git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | passed | | configure / build / `libs` | ok | | Tests (3938 run) | 0 new failures, 0 timeouts; 9 known failures that also fail on `main`; `guest_net_ctl`'s unexpected skip happens on `main` too | | Khronos validation (884 tests, layer loaded in 883, missing in none) | 0 tests with new `VUID-` lines | | `request_serializer`, `agc_driver_push_only_heap_passes`, `agc_shader_memory` | passed; `agc_driver_push_only_heap_passes_gpu_heap` skipped (no `VK_EXT_descriptor_heap`) | **Negative control.** I restored `RequestSerializer.cpp` from the previously reviewed head 4353aabe1a, which does not write the new `heapBufferDescriptors` byte. `request_serializer` then **failed** (subprocess aborted). After I restored the merged file it passed again, and `git status --porcelain` was empty. The changed `PushOnlyHeapPasses.cpp` check runs here only in its non-heap variant, which passes. The heap variant and every other ring-descriptor path skip on this lavapipe. ## Previous findings 1. **Non-debt comments: Resolved.** c9bac36abb removes them from `Recorder.hpp`, `HeapTemplateBudget.hpp` and `PushOnlyHeapPasses.cpp`. The delta adds no new comment lines. 2. **Description out of date: Resolved.** It now gives the `specVersion` gate and the shared pool of 233415 image slots. 3. **Performance evidence predates the head: Still open (non-blocking, unchanged).** The Hades II pair is still on 95e1f33742. 78079485cc changes heap-mode shader codegen and descriptor binding, which is exactly the measured path. The author's RTX 4090 MCD2 numbers and RDNA2 instruction counts are a pre-review build and not a `main`/head summary-line pair (author-reported). Since the heap is opt-in, I keep this non-blocking, as before. 4. **Heap argument pipelines fail as a pair: Resolved.** `createPushOnlyHeapPipeline` (`Recorder.cpp:2784` at head) now catches exceptions and returns `VK_NULL_HANDLE`, so a refused heap variant leaves the classic dispatch-argument and mesh-argument pipelines in place. ## New findings ### Blocking - **New `thread_local` objects with destructors in libSceAgcDriver.prx** ([BindlessHeap.cpp L857-L858](https://github.com/boykopovar/AnyPS5/blob/c9bac36abbd92237d776a094769386e2b8ce74a2/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp#L857-L858), `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp:857` in the merged tree). - `BindlessHeap::RingBufferDescriptors` declares `thread_local std::vector<VkResourceDescriptorInfoEXT> resources;` and `thread_local std::vector<VkHostAddressRangeEXT> ranges;`. - In the Linux build, `RingBufferDescriptors` is the only `BindlessHeap` function that calls `__cxa_thread_atexit`. - On MinGW this is the pattern `prx_thread_local_destructors` (`core/libs/CMakeLists.txt:1110`, `tests/ThreadLocalDestructors.cmake`) rejects. Such a destructor runs after emulated TLS has freed the object. oneandonlydean reported the same failure for this PR's swept-storage thread-local on the Windows run, fixed in 1607542d66. - The same commit already uses `HostThreadLocal` for the range vector in `ShaderResources::ringDescriptors` (`ShaderResources.cpp:6449` in the merged tree). The rest of the module keeps vectors either in `HostThreadLocal` or behind `thread_local T*` slots. - The test registers only for MinGW, so this Linux machine cannot run it. The finding comes from the source and the Linux disassembly. - Fix: keep both vectors in `HostThreadLocal<std::vector<…>, Tag>()`, as `ringDescriptors` does, and rerun the Windows job. ### Non-blocking - **Ring-descriptor reuse compares only the SRT range** (`ShaderResources.cpp:6943` in the merged tree). A stage keeps its descriptor run when its shader data span was kept (`dataKept`) and the SRT range matches. The guest buffer ranges are not compared, so the run relies on equal guest words implying the same buffer addresses. This is the same assumption the address-in-shader-data path made when it kept a span, so it is not a regression. The moved-buffer path (`addressedOffsets`) always writes a fresh run. I did not find a check under `APS5_VERIFY_GPU_HEAP` that compares a kept run with a recomputed one. Adding one would cover this, as the stage data spans already have. ## Not verified - No ring-descriptor path ran here: lavapipe 26.1.6 has no `VK_EXT_descriptor_heap`, so every heap-mode test skipped. The validation comparison covers only the non-heap paths. - The heap-mode results are author- and tester-reported and not on the exact head: - 1083/1083 with validation and 0 `VUID-` on c9bac36abb; - 599/599 on the pre-review build of 78079485cc; - savvaniss's RX 9070 XT run on 4353aabe1a. - The NVIDIA `NonWritable` miscompile workaround, the RDNA2 instruction counts and the MCD2 frame numbers are author-reported. - I did not run the Windows build, so `prx_thread_local_destructors` was not run. ## To get this to a good state - Move the two vectors in `RingBufferDescriptors` into `HostThreadLocal` and confirm `prx_thread_local_destructors` passes on Windows. - Optionally, have `APS5_VERIFY_GPU_HEAP` check kept ring-descriptor runs, and refresh the `main`/head performance pair now that heap codegen has changed. <!-- anyps5-bots job=3459 head=c9bac36abbd92237d776a094769386e2b8ce74a2 -->
XairRrR commented 2026-11-03 17:27:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T17:27:28Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

Two commits arrived since c9bac36abb: 39b8256b44 updates the GPU heap debt entry and 0720b80827 adds a tessellation-plus-geometry case to agc_driver_tessellation_submit. Neither one touches the thread_local vectors in BindlessHeap::RingBufferDescriptors, which was my blocking finding last time.

What changed since my last review

  • 39b8256b44 (docs): the APS5_GPU_HEAP entry in docs/dev/debt/libSceAgcDriver.md now names only registration-module set 0 storage images as stages that take the per-draw path. It no longer lists GDS, the fault buffer, mesh and tessellation pipelines, or compute stages without images. This matches the code I read: heapBindings in BindlessHeap.cpp maps the GDS set and the generated fault binding to pushed addresses (BindlessHeap.cpp:689-694, :840-843), and DescriptorHeapMappable takes the LDS, mesh window and scratch pool flags.
  • 0720b80827 (test): TessellationSubmit.cpp adds a second submission with VGT_SHADER_STAGES_EN 0x212d and a merged domain+geometry program. It runs only when the device has geometry limits and subgroup operations in tessellation-evaluation shaders. Its failure messages are prefixed with the path. No production file changed.
  • There are no new author comments addressed to my previous review, and the description is unchanged on the points I raised.

What I ran

Head 0720b80827d53399a0297fef2e338c868da0b93a, main 1e658521a0a599872612bb91949311e2956b5283, merged --no-ff into 1e935de09c3f4ade5afd51e59dbab8b4dbdb66de. The machine is a Debian 13 VM (32 vCPU Xeon Gold 6136) with GCC 14.2.0, a Release build with Ninja, and lavapipe (Mesa 26.1.6, LLVM 19). There is no GPU.

git diff --stat c9bac36abbd92237d776a094769386e2b8ce74a2 0720b80827d53399a0297fef2e338c868da0b93a
git diff --check 1e658521a0a599872612bb91949311e2956b5283...0720b80827d53399a0297fef2e338c868da0b93a
python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283
grep -n thread_local core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp
ctest --test-dir build -R "^agc_driver_tessellation_submit" --output-on-failure -V
git status --porcelain
Check Result
git diff --check clean
check_conventions.py passed
configure / build / libs (review script) ok
Tests (review script, 3938 run) 0 new failures, 0 timeouts. The 9 known failures also fail on main. guest_net_ctl skips for an unexpected reason on main too.
Khronos validation (884 tests; layer loaded in 883, missing in none) 0 tests with new VUID- lines
agc_driver_tessellation_submit passed. It printed "the geometry draw was skipped", so lavapipe ran the tessellation-only case.
agc_driver_tessellation_submit_gpu_heap skipped (no VK_EXT_descriptor_heap)

Negative control: none. The delta changes no production file. The new geometry case adds coverage of code that already exists, and on this lavapipe it does not run, so there is no fix to revert against it.

Previous findings

  • thread_local objects with destructors in libSceAgcDriver.prx: still open (blocking). At the head, BindlessHeap::RingBufferDescriptors still declares thread_local std::vector<VkResourceDescriptorInfoEXT> resources; and thread_local std::vector<VkHostAddressRangeEXT> ranges; (BindlessHeap.cpp L857-L858, core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp:857 in the merged tree). On MinGW, prx_thread_local_destructors rejects this pattern. The fix is unchanged: keep both vectors in HostThreadLocal<std::vector<…>, Tag>(), as ShaderResources::ringDescriptors and HeapStageMappable (HeapStages.cpp:261) already do.
  • Ring-descriptor reuse compares only the SRT range: still open (non-blocking). There is no change in the delta. No APS5_VERIFY_GPU_HEAP check compares a kept run with a recomputed one.
  • Performance evidence predates the heap codegen change: still open (non-blocking). The Hades II pair is still from 95e1f33742.
  • The comments, description and paired argument-pipeline findings were already resolved in my last review. Nothing in the delta reopens them.

New findings

Blocking

None.

Non-blocking

  • The geometry case is skipped without a mark (core/libs/prx/libSceAgcDriver/tests/execution/TessellationSubmit.cpp:271). On a device without geometry shaders or tessellation-evaluation subgroup operations, the test runs only the first case. It still exits 0 and gives the reason only in its pass line, so ctest and check_skips.py see full coverage. On lavapipe this means the new case never runs in CI, so it is exercised only on hardware testers' machines. This is acceptable for a sub-case. If the gap should be visible, a separate registration that exits 77 without geometry support would show it.

Not verified

  • I could not run the new tessellation+geometry case or any heap-mode path: lavapipe 26.1.6 lacks the geometry/subgroup combination this case needs and VK_EXT_descriptor_heap. The commit's statement that every guest stage of that draw takes the heap is author-reported.
  • I did not run the Windows build, so prx_thread_local_destructors was not run. The blocking finding comes from reading the source.

To get this to a good state

  • Move the two vectors in RingBufferDescriptors into HostThreadLocal and confirm that prx_thread_local_destructors passes on Windows.
  • Optional: add an APS5_VERIFY_GPU_HEAP check for kept ring-descriptor runs, and refresh the main/head performance pair.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5756720954 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5756720954). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T17:27:28Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested Two commits arrived since c9bac36abb: 39b8256b44 updates the GPU heap debt entry and 0720b80827 adds a tessellation-plus-geometry case to `agc_driver_tessellation_submit`. Neither one touches the `thread_local` vectors in `BindlessHeap::RingBufferDescriptors`, which was my blocking finding last time. ## What changed since my last review - **39b8256b44 (docs):** the `APS5_GPU_HEAP` entry in `docs/dev/debt/libSceAgcDriver.md` now names only registration-module set 0 storage images as stages that take the per-draw path. It no longer lists GDS, the fault buffer, mesh and tessellation pipelines, or compute stages without images. This matches the code I read: `heapBindings` in `BindlessHeap.cpp` maps the GDS set and the generated fault binding to pushed addresses (`BindlessHeap.cpp:689-694`, `:840-843`), and `DescriptorHeapMappable` takes the LDS, mesh window and scratch pool flags. - **0720b80827 (test):** `TessellationSubmit.cpp` adds a second submission with `VGT_SHADER_STAGES_EN` 0x212d and a merged domain+geometry program. It runs only when the device has geometry limits and subgroup operations in tessellation-evaluation shaders. Its failure messages are prefixed with the path. No production file changed. - There are no new author comments addressed to my previous review, and the description is unchanged on the points I raised. ## What I ran Head `0720b80827d53399a0297fef2e338c868da0b93a`, `main` `1e658521a0a599872612bb91949311e2956b5283`, merged `--no-ff` into `1e935de09c3f4ade5afd51e59dbab8b4dbdb66de`. The machine is a Debian 13 VM (32 vCPU Xeon Gold 6136) with GCC 14.2.0, a Release build with Ninja, and lavapipe (Mesa 26.1.6, LLVM 19). There is no GPU. ``` git diff --stat c9bac36abbd92237d776a094769386e2b8ce74a2 0720b80827d53399a0297fef2e338c868da0b93a git diff --check 1e658521a0a599872612bb91949311e2956b5283...0720b80827d53399a0297fef2e338c868da0b93a python3 tools/check_conventions.py --base 1e658521a0a599872612bb91949311e2956b5283 grep -n thread_local core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp ctest --test-dir build -R "^agc_driver_tessellation_submit" --output-on-failure -V git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | passed | | configure / build / `libs` (review script) | ok | | Tests (review script, 3938 run) | 0 new failures, 0 timeouts. The 9 known failures also fail on `main`. `guest_net_ctl` skips for an unexpected reason on `main` too. | | Khronos validation (884 tests; layer loaded in 883, missing in none) | 0 tests with new `VUID-` lines | | `agc_driver_tessellation_submit` | passed. It printed "the geometry draw was skipped", so lavapipe ran the tessellation-only case. | | `agc_driver_tessellation_submit_gpu_heap` | skipped (no `VK_EXT_descriptor_heap`) | **Negative control:** none. The delta changes no production file. The new geometry case adds coverage of code that already exists, and on this lavapipe it does not run, so there is no fix to revert against it. ## Previous findings - **`thread_local` objects with destructors in libSceAgcDriver.prx: still open (blocking).** At the head, `BindlessHeap::RingBufferDescriptors` still declares `thread_local std::vector<VkResourceDescriptorInfoEXT> resources;` and `thread_local std::vector<VkHostAddressRangeEXT> ranges;` ([BindlessHeap.cpp L857-L858](https://github.com/boykopovar/AnyPS5/blob/0720b80827d53399a0297fef2e338c868da0b93a/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp#L857-L858), `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp:857` in the merged tree). On MinGW, `prx_thread_local_destructors` rejects this pattern. The fix is unchanged: keep both vectors in `HostThreadLocal<std::vector<…>, Tag>()`, as `ShaderResources::ringDescriptors` and `HeapStageMappable` (`HeapStages.cpp:261`) already do. - **Ring-descriptor reuse compares only the SRT range: still open (non-blocking).** There is no change in the delta. No `APS5_VERIFY_GPU_HEAP` check compares a kept run with a recomputed one. - **Performance evidence predates the heap codegen change: still open (non-blocking).** The Hades II pair is still from 95e1f33742. - The comments, description and paired argument-pipeline findings were already resolved in my last review. Nothing in the delta reopens them. ## New findings ### Blocking None. ### Non-blocking - **The geometry case is skipped without a mark** (`core/libs/prx/libSceAgcDriver/tests/execution/TessellationSubmit.cpp:271`). On a device without geometry shaders or tessellation-evaluation subgroup operations, the test runs only the first case. It still exits 0 and gives the reason only in its pass line, so ctest and `check_skips.py` see full coverage. On lavapipe this means the new case never runs in CI, so it is exercised only on hardware testers' machines. This is acceptable for a sub-case. If the gap should be visible, a separate registration that exits 77 without geometry support would show it. ## Not verified - I could not run the new tessellation+geometry case or any heap-mode path: lavapipe 26.1.6 lacks the geometry/subgroup combination this case needs and `VK_EXT_descriptor_heap`. The commit's statement that every guest stage of that draw takes the heap is author-reported. - I did not run the Windows build, so `prx_thread_local_destructors` was not run. The blocking finding comes from reading the source. ## To get this to a good state - Move the two vectors in `RingBufferDescriptors` into `HostThreadLocal` and confirm that `prx_thread_local_destructors` passes on Windows. - Optional: add an `APS5_VERIFY_GPU_HEAP` check for kept ring-descriptor runs, and refresh the `main`/head performance pair. <!-- anyps5-bots job=3478 head=0720b80827d53399a0297fef2e338c868da0b93a -->
XairRrR commented 2026-11-03 21:08:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T21:08:38Z.

Review: DISMISSED


Re-checked — changes still requested

The new commits fix my blocking thread_local finding (63fe18f7f7), add a verify check for kept ring-descriptor runs, split out the geometry registration and route three more classic binds through the wrapper (09391147a4). The merge of main 086c0686c8 (30a84aa975) also routes main's new passes through the heap-tracking wrappers. One classic bind still bypasses the wrapper: the first-sample copy.

What changed since my last review

  • 63fe18f7f7:
    • BindlessHeap::RingBufferDescriptors keeps its two scratch vectors in HostThreadLocal.
    • Under APS5_VERIFY_GPU_HEAP, a stage whose inputs and descriptor run would have been kept recomputes the run and throws if it would bind other buffers.
    • agc_driver_tessellation_submit_geometry (and _gpu_heap) are now separate registrations that exit 77 without geometry support.
  • 30a84aa975 (merge of main 086c0686c8):
    • Resolves conflicts in VulkanDevice.cpp, Recompiler.cpp and SpirvRuntimeBuffer.cpp.
    • Adds a CmdPushDescriptorSet wrapper, and moves main's depth-to-storage and staged-merge passes onto the wrappers.
  • 09391147a4: the mesh window, pixel-function LDS and scratch-pool set binds go through CmdBindDescriptorSets.
  • Author reply (2026-11-03 20:50): addresses all three of my previous points. Their runs (1104/1104 in both modes on an RTX 4090, 0 VUID-) are author-reported.

What I ran

Head 09391147a4b1f23eec010bb8da3b0b0be3cc4e34, main 086c0686c8adff3ee648fdbe34e0b0b647e1d511, merged --no-ff into 8a6fa086aa583fd6b00a5a9b75dce8feb443c676. The machine is a Debian 13 VM (32 vCPU Xeon Gold 6136) with GCC 14.2.0, a Release build with Ninja, and lavapipe (Mesa 26.1.6, LLVM 19). There is no GPU.

git diff --check 086c0686c8adff3ee648fdbe34e0b0b647e1d511...09391147a4b1f23eec010bb8da3b0b0be3cc4e34
python3 tools/check_conventions.py --base 086c0686c8adff3ee648fdbe34e0b0b647e1d511
git show 63fe18f7f7 09391147a4
ctest --test-dir build -R "^agc_driver_tessellation_submit" --output-on-failure
python3 tools/check_skips.py build/ctest.xml
env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -V -R "^agc_driver_image_gather_volume$"
grep -rn "PFN_vkCmdBindDescriptorSets\|PFN_vkCmdPushConstants\|PFN_vkCmdPushDescriptorSet" core/libs/prx/libSceAgcDriver --include=*.cpp
git status --porcelain
Check Result
git diff --check clean
check_conventions.py passed
configure / build / libs (review script) ok
Tests (review script, 3960 run) 0 new failures and 0 timeouts. The 9 known failures also fail on the baseline main. guest_net_ctl also skips for an unexpected reason on the baseline main.
agc_driver_tessellation_submit* agc_driver_tessellation_submit passes. _gpu_heap, _geometry and _geometry_gpu_heap skip (exit 77), and check_skips.py accepts these skips.
Khronos validation (897 tests; layer loaded in 896, missing in none) One test is flagged with new VUIDs: agc_driver_image_gather_volume. This is not the PR's (see below).
agc_driver_image_gather_volume VUIDs
Validation Error: [ VUID-VkSamplerCreateInfo-addressModeU-parameter ] | MessageID = 0x3fcec07
vkCreateSampler(): pCreateInfo->addressModeU (VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE) requires the extensions VK_KHR_sampler_mirror_clamp_to_edge.

Validation flagged this test only because the baseline (1e658521a0) predates it. It came to main with e92ec413c9, and the PR doesn't change it. The address modes come from main's GuestSamplerResource.cpp. No file in this PR's diff mentions MIRROR_CLAMP, sampler_mirror_clamp or samplerMirrorClampToEdge, and nothing on either side enables the extension. So this comes from main, not from the PR. I did not build main to confirm it.

Negative control: none. The changed test is a registration split, and its new cases skip on lavapipe. The new verify check only runs with VK_EXT_descriptor_heap, which lavapipe lacks. The author reports that forcing the check to throw failed 220 of 1081 tests, so the check is reached (author-reported).

Previous findings

  • thread_local objects with destructors in RingBufferDescriptors (blocking): Resolved. Both vectors are now HostThreadLocal<std::vector<…>, Tag>() (BindlessHeap.cpp L858-L861). This is the same pattern as ShaderResources::ringDescriptors. prx_thread_local_destructors still needs a Windows run.
  • Ring-descriptor reuse compares only the SRT range (non-blocking): Resolved. Under verify mode, writeHeapStage now sends a stage with unchanged inputs and a held run through ringDescriptors. That function keeps the run only when every buffer range matches, and the stage throws if the run's first index or ranges changed (ShaderResources.cpp L6980).
  • Geometry case skipped without a mark (non-blocking): Resolved. It is now its own registration, which exits 77. lavapipe reports it as skipped, and check_skips.py accepts the skip.
  • Performance evidence predates the heap codegen change (non-blocking): Still open. The Hades II pair is still from 95e1f33742, which predates 78079485cc (ring descriptors).

New findings

Blocking

  • The first-sample copy binds a descriptor set outside the heap tracker (core/libs/prx/libSceAgcDriver/Graphics/src/FirstSampleCopy.cpp:247, L240-L248).
    • What happens: FirstSampleCopy::Record records vkCmdBindDescriptorSets directly into the active recorder's command buffer through RecordUncounted. ShaderResources::resolveImageBinding reaches this path (ShaderResources.cpp:5378) whenever a stage reads sample 0 of a 2D MSAA texture, which can happen while a heap draw captures its resources.
    • Why it breaks: BindDescriptorHeaps skips the bind when its boundHeaps set already lists the command buffer. Only the wrappers (BindlessHeap.cpp:1072) and NoteCommandBufferBegun remove a command buffer from that set. So in a sequence of heap draw, first-sample copy, heap draw in one command buffer, the second draw runs in classic descriptor mode without its heaps.
    • Same bug class: 30a84aa975 fixed this for the depth-to-storage and staged-merge passes, where the author reports that agc_driver_depth_storage_dispatch and two related tests failed in heap mode. 09391147a4's message says routing its three binds "keeps every classic bind visible to it", but this one is still outside.
    • Evidence: this comes from reading the source. lavapipe cannot run heap mode.
    • Fix: record it through Graphics::CmdBindDescriptorSets(context, commands, VK_PIPELINE_BIND_POINT_GRAPHICS, pipelineLayout, 0, 1, &set, <site>). Ideally, add a _gpu_heap case that draws twice from the heap with a sample-0 read of a multisampled target in the second draw. After the fix, the grep above finds no direct classic binds outside BindlessHeap.cpp and Resources.cpp's function table.

Non-blocking

None.

Not verified

  • Heap-mode behaviour: lavapipe 26.1.6 has no VK_EXT_descriptor_heap. The verify check, the merge's heap rebinds and the geometry cases did not run here.
  • The Windows build and prx_thread_local_destructors: I could not run them here.
  • I did not build or run agc_driver_image_gather_volume on main. I attribute its VUIDs to main from the source only.

To get this to a good state

  • Route FirstSampleCopy.cpp:247 through CmdBindDescriptorSets, ideally with a heap-mode test that covers it.
  • Get a Windows run of prx_thread_local_destructors on this head.
  • Optional: refresh the main/head performance pair after 78079485cc.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5759494067 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5759494067). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T21:08:38Z. **Review:** DISMISSED --- # Re-checked — changes still requested The new commits fix my blocking `thread_local` finding (63fe18f7f7), add a verify check for kept ring-descriptor runs, split out the geometry registration and route three more classic binds through the wrapper (09391147a4). The merge of `main` 086c0686c8 (30a84aa975) also routes `main`'s new passes through the heap-tracking wrappers. One classic bind still bypasses the wrapper: the first-sample copy. ## What changed since my last review - **63fe18f7f7:** - `BindlessHeap::RingBufferDescriptors` keeps its two scratch vectors in `HostThreadLocal`. - Under `APS5_VERIFY_GPU_HEAP`, a stage whose inputs and descriptor run would have been kept recomputes the run and throws if it would bind other buffers. - `agc_driver_tessellation_submit_geometry` (and `_gpu_heap`) are now separate registrations that exit 77 without geometry support. - **30a84aa975 (merge of `main` 086c0686c8):** - Resolves conflicts in `VulkanDevice.cpp`, `Recompiler.cpp` and `SpirvRuntimeBuffer.cpp`. - Adds a `CmdPushDescriptorSet` wrapper, and moves `main`'s depth-to-storage and staged-merge passes onto the wrappers. - **09391147a4:** the mesh window, pixel-function LDS and scratch-pool set binds go through `CmdBindDescriptorSets`. - **Author reply (2026-11-03 20:50):** addresses all three of my previous points. Their runs (1104/1104 in both modes on an RTX 4090, 0 `VUID-`) are author-reported. ## What I ran Head `09391147a4b1f23eec010bb8da3b0b0be3cc4e34`, `main` `086c0686c8adff3ee648fdbe34e0b0b647e1d511`, merged `--no-ff` into `8a6fa086aa583fd6b00a5a9b75dce8feb443c676`. The machine is a Debian 13 VM (32 vCPU Xeon Gold 6136) with GCC 14.2.0, a Release build with Ninja, and lavapipe (Mesa 26.1.6, LLVM 19). There is no GPU. ``` git diff --check 086c0686c8adff3ee648fdbe34e0b0b647e1d511...09391147a4b1f23eec010bb8da3b0b0be3cc4e34 python3 tools/check_conventions.py --base 086c0686c8adff3ee648fdbe34e0b0b647e1d511 git show 63fe18f7f7 09391147a4 ctest --test-dir build -R "^agc_driver_tessellation_submit" --output-on-failure python3 tools/check_skips.py build/ctest.xml env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -V -R "^agc_driver_image_gather_volume$" grep -rn "PFN_vkCmdBindDescriptorSets\|PFN_vkCmdPushConstants\|PFN_vkCmdPushDescriptorSet" core/libs/prx/libSceAgcDriver --include=*.cpp git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | passed | | configure / build / `libs` (review script) | ok | | Tests (review script, 3960 run) | 0 new failures and 0 timeouts. The 9 known failures also fail on the baseline `main`. `guest_net_ctl` also skips for an unexpected reason on the baseline `main`. | | `agc_driver_tessellation_submit*` | `agc_driver_tessellation_submit` passes. `_gpu_heap`, `_geometry` and `_geometry_gpu_heap` skip (exit 77), and `check_skips.py` accepts these skips. | | Khronos validation (897 tests; layer loaded in 896, missing in none) | One test is flagged with new VUIDs: `agc_driver_image_gather_volume`. This is not the PR's (see below). | <details><summary>agc_driver_image_gather_volume VUIDs</summary> ``` Validation Error: [ VUID-VkSamplerCreateInfo-addressModeU-parameter ] | MessageID = 0x3fcec07 vkCreateSampler(): pCreateInfo->addressModeU (VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE) requires the extensions VK_KHR_sampler_mirror_clamp_to_edge. ``` </details> Validation flagged this test only because the baseline (`1e658521a0`) predates it. It came to `main` with e92ec413c9, and the PR doesn't change it. The address modes come from `main`'s `GuestSamplerResource.cpp`. No file in this PR's diff mentions `MIRROR_CLAMP`, `sampler_mirror_clamp` or `samplerMirrorClampToEdge`, and nothing on either side enables the extension. So this comes from `main`, not from the PR. I did not build `main` to confirm it. **Negative control:** none. The changed test is a registration split, and its new cases skip on lavapipe. The new verify check only runs with `VK_EXT_descriptor_heap`, which lavapipe lacks. The author reports that forcing the check to throw failed 220 of 1081 tests, so the check is reached (author-reported). ## Previous findings - **`thread_local` objects with destructors in `RingBufferDescriptors` (blocking): Resolved.** Both vectors are now `HostThreadLocal<std::vector<…>, Tag>()` ([BindlessHeap.cpp L858-L861](https://github.com/boykopovar/AnyPS5/blob/09391147a4b1f23eec010bb8da3b0b0be3cc4e34/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp#L858-L861)). This is the same pattern as `ShaderResources::ringDescriptors`. `prx_thread_local_destructors` still needs a Windows run. - **Ring-descriptor reuse compares only the SRT range (non-blocking): Resolved.** Under verify mode, `writeHeapStage` now sends a stage with unchanged inputs and a held run through `ringDescriptors`. That function keeps the run only when every buffer range matches, and the stage throws if the run's first index or ranges changed ([ShaderResources.cpp L6980](https://github.com/boykopovar/AnyPS5/blob/09391147a4b1f23eec010bb8da3b0b0be3cc4e34/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L6980)). - **Geometry case skipped without a mark (non-blocking): Resolved.** It is now its own registration, which exits 77. lavapipe reports it as skipped, and `check_skips.py` accepts the skip. - **Performance evidence predates the heap codegen change (non-blocking): Still open.** The Hades II pair is still from 95e1f33742, which predates 78079485cc (ring descriptors). ## New findings ### Blocking - **The first-sample copy binds a descriptor set outside the heap tracker** (`core/libs/prx/libSceAgcDriver/Graphics/src/FirstSampleCopy.cpp:247`, [L240-L248](https://github.com/boykopovar/AnyPS5/blob/09391147a4b1f23eec010bb8da3b0b0be3cc4e34/core/libs/prx/libSceAgcDriver/Graphics/src/FirstSampleCopy.cpp#L240-L248)). - **What happens:** `FirstSampleCopy::Record` records `vkCmdBindDescriptorSets` directly into the active recorder's command buffer through `RecordUncounted`. `ShaderResources::resolveImageBinding` reaches this path (`ShaderResources.cpp:5378`) whenever a stage reads sample 0 of a 2D MSAA texture, which can happen while a heap draw captures its resources. - **Why it breaks:** `BindDescriptorHeaps` skips the bind when its `boundHeaps` set already lists the command buffer. Only the wrappers (`BindlessHeap.cpp:1072`) and `NoteCommandBufferBegun` remove a command buffer from that set. So in a sequence of heap draw, first-sample copy, heap draw in one command buffer, the second draw runs in classic descriptor mode without its heaps. - **Same bug class:** 30a84aa975 fixed this for the depth-to-storage and staged-merge passes, where the author reports that `agc_driver_depth_storage_dispatch` and two related tests failed in heap mode. 09391147a4's message says routing its three binds "keeps every classic bind visible to it", but this one is still outside. - **Evidence:** this comes from reading the source. lavapipe cannot run heap mode. - **Fix:** record it through `Graphics::CmdBindDescriptorSets(context, commands, VK_PIPELINE_BIND_POINT_GRAPHICS, pipelineLayout, 0, 1, &set, <site>)`. Ideally, add a `_gpu_heap` case that draws twice from the heap with a sample-0 read of a multisampled target in the second draw. After the fix, the grep above finds no direct classic binds outside `BindlessHeap.cpp` and `Resources.cpp`'s function table. ### Non-blocking None. ## Not verified - Heap-mode behaviour: lavapipe 26.1.6 has no `VK_EXT_descriptor_heap`. The verify check, the merge's heap rebinds and the geometry cases did not run here. - The Windows build and `prx_thread_local_destructors`: I could not run them here. - I did not build or run `agc_driver_image_gather_volume` on `main`. I attribute its VUIDs to `main` from the source only. ## To get this to a good state - Route `FirstSampleCopy.cpp:247` through `CmdBindDescriptorSets`, ideally with a heap-mode test that covers it. - Get a Windows run of `prx_thread_local_destructors` on this head. - Optional: refresh the `main`/head performance pair after 78079485cc. <!-- anyps5-bots job=3600 head=09391147a4b1f23eec010bb8da3b0b0be3cc4e34 -->
MarcZX10 commented 2026-11-14 14:14:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T14:14:19Z.

Review: COMMENTED


Review in progress — 13020 added lines in 333 files not read

The GPU heap change has a broad implementation and test surface, and this review did not cover every changed file or run checks, so a formal merge decision is not justified.

What I ran

Reviewed PR head 7addd0489e1960c3172cc3048e8f04719a328c0b using the prepared diff and repo_read.py. No tests or build checks were run.

Results

Check Result Note
Targeted source review not run Read selected heap and draw paths
Build and tests not run No commands run

Findings

Blocking

None verified in the inspected paths.

Non-blocking

The change adds a large descriptor heap and shader-recompilation implementation. A full audit of the changed lines and runtime behavior remains outstanding.

Not verified

The review folder lists 202 changed files. I read the prepared description, commits, manifest, README, and diff opening, plus selected ranges in BindlessHeap.cpp, HeapStages.cpp, Draw.cpp, and VulkanDevice.cpp. I did not read every added line in files marked reviewed by the manifest, including the full heap implementation, shader recompiler changes, tests, or presentation paths. 3rdparty/Vulkan-Headers is unsupported by the reader. No build, tests, or hardware checks were run. The author’s reported performance captures were not independently verified.

To get this to a good state

Nothing is required. Optional: complete a full review of the changed lines and run the relevant build and GPU heap tests.

Continued review (pass 2)

Changes are required before merge: complete review of the remaining added lines is needed before a formal decision can be justified.

What I ran

Reviewed selected continuation lines at head 7addd0489e1960c3172cc3048e8f04719a328c0b using repo_read.py tools. No build or tests were run.

Results

Check Result Note
Selected continuation lines passed Read and inspected
Full PR review not run Many added lines remain unread
Build and tests not run No commands executed

Findings

Blocking

None verified in the inspected continuation lines.

Non-blocking

None.

Not verified

This continuation inspected selected added lines, including CMakeLists.txt, heap stage and cache declarations, the pending range index, presentation heap mappings, and selected heap walk code and tests. The other specified continuation lines and most of the changed files remain unread; in particular, the Vulkan-Headers submodule content was not available as plain text. No build, tests, performance captures, or physical-console behavior were verified.

To get this to a good state

Complete the review of the remaining added lines at the pinned head, then rerun relevant checks before requesting a formal decision.

Continued review (pass 3)

The continuation pass is incomplete, so a formal decision is not justified; no blocking defect was verified in the lines inspected.

What I ran

Reviewed head 7addd0489e1960c3172cc3048e8f04719a328c0b using repo_read.py to read prepared review documents and selected source ranges. No tests or build were run.

Results

Check Result Note
Targeted source review not run Only selected ranges were read
Build and tests not run Not executed

Negative control

Not run; no test was executed in this pass.

Findings

Blocking

None verified in the inspected ranges.

Non-blocking

None identified in the inspected ranges.

Sources

Read review/description.md, review/manifest.json, and the beginning of review/diff.patch, plus selected ranges in core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp, and core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp.

Not verified

review/commits.md and the remainder of review/diff.patch were not read. Most continuation lines named in the request were not read; the listed files and ranges therefore remain unverified. core/libs/prx/libSceAgcDriver/Graphics/src/VulkanDevice.cpp could not be read through the available reader. No claim is made about uninspected code, performance captures, or runtime behavior.

To get this to a good state

Nothing is required for the inspected ranges. Optional: complete review of the remaining continuation lines and run relevant checks before making a formal decision.

Not verified

  • 3rdparty/Vulkan-Headers: lines 1 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/CMakeLists.txt: lines 400, 482, 513, 523-524, 783-791, 794, 798-809, 1157 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp: lines 137-142, 173 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp: lines 143 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp: lines 139, 141, 266-270, 360 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp: lines 161-162, 165 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp: lines 88 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/DispatchCache.cpp: lines 69 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp: lines 41 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp: lines 705, 711-715, 732-737, 939-969, 1188, 1261, 1263, 1267, 1438, 1441, 1448, 1452-1455 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp: lines 2, 27, 32, 37, 52 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp: lines 316, 355, 366-381, 389 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp: lines 3, 139, 154, 181 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp: lines 10, 133, 154, 361-371, 374-378, 511 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp: lines 8, 65, 72-76, 123-124, 131, 133-134, 338-340, 368-386, 398, 406 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/IndirectDraw.cpp: lines 25, 69 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/WrittenBuffers.cpp: lines 2, 21, 25, 27-28, 91, 109, 114-116, 179-181, 183, 190 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp: lines 310-312 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp: lines 343, 347-364, 366-376 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp: lines 10, 1182, 1192, 1444, 1464-1468, 1470, 1474-1485, 1487, 2084-2101, 2126, 2143, 2153, 2165-2172, 2176-2177, 2180-2201, 2304, 2308-2310 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp: lines 2769-2776, 2790-2797 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/PerformanceOverlay.cpp: lines 1, 1187 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp: lines 1, 13, 15, 17, 27-37, 44, 78, 110, 157, 304, 401, 407, 410, 413-421 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp: lines 4, 12-13, 36-42, 49, 103-104, 107, 146-147, 154, 156, 186, 210, 340, 375-376, 382, 387, 392-402, 414, 427, 434 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp: lines 510-511, 538, 551, 763, 768-771, 799, 902, 904, 908-909, 936, 956, 984, 1004, 1284, 1758, 2389-2396, 2982-2985, 4383, 4736, 4801-4803, 4897, 4900-4905, 4955-4956, 4990, 5045-5046, 5120, 5352-5353, 5356, 5660-5663, 5686, 5824, 6008-6010, 6027-6031, 6051, 6054, 6099, 6120-6130, 6133-6138, 6141-6142, 6144-6150, 6153-6155, 6157-6169, 6308, 6311-6319, 6321-6325, 6356-6365, 6371, 6384-6386, 6451, 6593, 6679-6680, 6691-6731, 6810-6813, 6835, 6890-6891, 6923 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/BdaResources.hpp: lines 31-32 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/BindlessHeap.hpp: lines 401-410 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp: lines 72-73 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp: lines 11, 57-66, 100-101, 208-247, 250-253, 306-307, 339, 542-551, 553, 555-556 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/DescriptorHeapObjects.hpp: lines 1-38 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp: lines 114, 133 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/FirstSampleCopy.hpp: lines 9, 18-19, 39 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/GpuColorTransfer.hpp: lines 35-36 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp: lines 326-327, 393-395, 594 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp: lines 23-30, 116 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp: lines 51, 68, 87, 103 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/PipelineLibrary.hpp: lines 45 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/PipelineSpecialization.hpp: lines 82-101 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/PushDataShadow.hpp: lines 1-52 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp: lines 223, 526, 910, 914-917, 929 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/ResidentMirror.hpp: lines 37 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Resources.hpp: lines 9-10 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/SampleOrder.hpp: lines 42-43, 52 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Sampler.hpp: lines 4, 9, 14, 19, 33, 36-37, 49 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp: lines 6-7, 34, 101-105, 156, 194-198, 202, 232-235, 238, 256-260, 263, 269-270, 286-287, 305, 373-374, 379, 409-429, 483, 527-532, 539, 553-555, 562, 564, 597, 640, 645-646, 765-847, 865-877, 885-886, 903, 923, 941, 955, 1008, 1027-1033, 1060, 1068-1069, 1074-1077 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp: lines 7-8, 21-26, 52, 55-112, 151 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/StagedMerge.hpp: lines 18-20 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp: lines 4, 72, 120, 270, 295 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp: lines 16-17, 53, 58, 60-61, 64-67, 91, 99-104 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp: lines 42-46, 77-80, 83-87 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureRepack.comp: lines 5-10, 13, 21-24, 27-31 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cpp: lines 9, 455-463 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp: lines 1581-1679 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/BufferAddress.cpp: lines 10-14, 17 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp: lines 412-425, 427 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp: lines 1, 31, 110-117, 146-152, 166-182, 187, 190, 207, 211, 221, 749, 1022, 1028, 1095-1096, 1710-1711, 1800, 1804, 1857, 1879, 1976, 1989, 2031-2035, 2040, 2044, 2097, 2163 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/DescriptorHeapObjects.cpp: lines 1-212 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp: lines 1-3, 131-133, 151-153, 227-228, 234-235, 266-269, 297-304, 330-338, 343-346, 352-353, 359-360, 365-368, 396, 412, 435, 699, 920-924, 1069-1074, 1124, 1145-1147, 1309, 1313-1350, 1361-1362, 1366-1378, 1380, 1382-1386, 1388, 1411, 1529-1532, 1534, 1539, 1843, 1851, 2000, 2046, 2083, 2235, 2298, 2343-2344, 2351-2352, 2359, 2369, 2372, 2374, 2728, 2763, 2765-2767, 2773, 2781-2784, 2787-2789, 2820, 2826-2827, 2965, 3000, 3003, 3112-3118, 3121-3122, 3124, 3127-3128, 3130, 3144, 3187, 3192, 3280-3281, 3332, 3492, 3538-3541, 3694-3696, 3965, 3977, 3995, 4015, 4140-4147, 4433, 4512-4520, 4522, 4524, 4551 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/FirstSampleCopy.cpp: lines 2-3, 184-188, 200, 224-247, 280 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/GpuColorTransfer.cpp: lines 1, 10, 15-26, 56-59, 74, 77, 104, 118-119, 168-177 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp: lines 7, 75, 749, 975, 1081, 1246, 1341, 3258-3261, 3685-3691, 4490, 4496, 5334, 5948, 6359-6368, 6984, 7256-7269, 7271, 7274, 7279, 7282-7284, 7289, 7293-7294, 7296-7312 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleReadback.cpp: lines 1, 8, 14-23, 37-38, 75-80, 88, 107-119, 129-130 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp: lines 4, 217, 304, 590, 918, 1536, 1643, 1655, 1661-1662 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleUpload.cpp: lines 1, 7, 12-27, 46-51, 59, 76-88, 95-96 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp: lines 6, 8, 23, 390, 404, 407-416, 420-423, 426-427, 505, 509, 513, 525, 577-587, 600-605, 607-608, 614, 626, 631, 717, 828-834, 842, 849, 1101-1109, 1111-1112, 1115 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp: lines 3, 909-911 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/PipelineLibrary.cpp: lines 116, 119, 142, 144, 153-156, 173-174, 204, 232-236, 285-292, 313-314, 321-327 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp: lines 13, 18, 678-692, 708-710, 713-726, 735, 1465, 1468, 1481, 2011, 2202, 2731, 2741, 2751, 3071, 3077, 3141, 3147, 3216, 3226, 3233, 3240-3267, 3291, 3301, 3314, 3508-3513, 3540, 3611, 4573 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp: lines 427 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp: lines 1, 56-60, 70, 72, 93-100, 138, 148, 194, 238-239, 421 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/SampleOrder.cpp: lines 1, 22, 27, 50-63, 110, 167, 188-201, 212-214, 250-255, 257-259, 280-281, 283-284, 288-293, 296, 298, 317-318, 321-343, 384, 401-404, 508-515, 519, 521-528, 592-593, 603-605, 626 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Sampler.cpp: lines 2, 29, 32-33, 49-60, 69, 107 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/ShaderAddressResources.cpp: lines 189, 204-205 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp: lines 2, 14, 27, 59-68, 1390, 1956, 1958, 2032-2035, 2050-2053, 2215, 2251-2252, 2255, 2260, 2293, 2295-2296, 2370-2391, 2427, 2443-2448, 2450, 2454, 2460-2461, 2465-2467, 2470, 2474-2476, 2484, 2488, 2491-2515, 2522, 2535-2536, 2544, 2549, 2559-2566, 2570, 2573, 2578-2581, 2584-2585, 2587, 2589, 2594, 2615-2616, 2643-2658, 2666, 2713-2716, 2718, 2801, 2815, 2819, 2822, 2824-2832, 2834, 2841-2844, 2888-2892, 2915-2922, 2943, 2965-2968, 2991, 3017, 3063-3064, 3100-3103, 3173-3174, 3179-3195, 3202-3205, 3215-3218, 3235-3247, 3255, 3326-3337, 3351-3352, 3354, 3363, 3365, 3371, 3373, 3378, 3410-3418, 3426, 3429-3430, 3902-3903, 3991, 4012-4018, 4026, 4201, 4211, 4222-4223, 4262, 4266-4268, 4343, 4367-4368, 4370, 4385-4387, 4390, 4392, 4395-4396, 4471, 4694, 4696, 4709, 4713, 4721, 4723, 4732-4734, 4736, 4748, 4761, 4765, 5047, 5056, 5077, 5080-5081, 5085-5091, 5093-5096, 5098, 5100-5101, 5105, 5248, 5257, 5264, 5266, 5335-5346, 5349, 5354, 5374-5375, 5379, 5386, 5575-5585, 5589, 5795, 5802, 5809, 5822, 5835, 5837-5838, 5840-5841, 5869-5879, 5905, 5918, 5923, 5930-5931, 5949, 5969, 5975, 5983-5984, 5987-5989, 6017, 6020, 6139, 6145, 6147, 6240-6241, 6256-6258, 6363, 6380, 6382-6383, 6389, 6391, 6394, 6413, 6428-6431, 6448, 6457, 6515, 6523, 6528, 6541, 6653, 6666, 6668, 6698, 6707, 6709, 6736, 6740, 6764-6765, 6768, 6798, 6808, 6822, 6826, 6838-6845, 6850-6860, 6905-6908, 6963, 6972-6973, 6975, 6987, 7034, 7063-7067, 7070, 7072-7073, 7075, 7078, 7081-7082, 7084, 7088, 7091, 7095, 7097, 7099, 7109, 7112-7113, 7116-7144, 7146-7147, 7164-7166, 7180, 7231-7236, 7240, 7257-7271, 7331, 7337-7339, 7345-7377, 7384, 7403, 7423, 7474-7488, 7521-7526, 7651-8475 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp: lines 45-46, 173-179, 257-261, 374, 436, 458, 468, 520-522, 585, 593, 601-610, 612-627, 638-654, 662-668, 672, 677, 712-717, 779 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/StagedMerge.cpp: lines 1, 8, 28-36, 83, 113, 115-131, 145-146, 179-185, 233, 243, 294-295, 300 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp: lines 2, 18, 35, 1502, 1827-1829, 1833, 1839-1843, 1849-1864, 1888-1893, 1896-1899, 1904, 1906-1907, 2408-2414, 2892-2893, 3382, 3929, 3932, 4295, 4297, 4540-4541, 4627, 4996, 4998, 5580-5581, 5591, 5709, 5810-5817, 5819, 5826-5827, 5844, 5849-5851, 6064-6065, 7661 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp: lines 1, 10-12, 18, 21, 51-111, 133-134, 167-174, 194, 201-206, 230-235, 237, 270-279, 299-316, 320-322, 351, 504-505, 516, 551-564, 570-573, 577-592, 605-614, 621, 655-687 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/Graphics/src/UnitShadow.cpp: lines 3, 210-211, 218-219 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp: lines 723-725, 5293 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/BindlessHeapSlots.cpp: lines 1-653 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/CollectMemoGeneration.cpp: lines 6, 246-259, 366 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/DrawPipelineStop.cpp: lines 1-60 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/Graphics.cpp: lines 6739-6778, 13949-13969, 14898-14902 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/HeapStageWordsBase.cpp: lines 1-69 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/HeapWalkReads.cpp: lines 1-67 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/Mesh.cpp: lines 1, 177-178, 195, 211 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/PresentationPass.cpp: lines 1-2, 811, 1358-1365 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/PushDataPlacements.cpp: lines 1-256 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/PushDataShadow.cpp: lines 1-88 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/Recorder.cpp: lines 21, 10199-10238, 16413-16417 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/RecycledShared.cpp: lines 1-106 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/ShaderDeviceProfile.cpp: lines 202 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp: lines 403 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp: lines 47, 447-475, 8163-8184, 8857, 8978, 9032-9036, 9047-9051, 10303, 10313-10332, 10344, 12694, 12716 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/ShaderReplayRequests.cpp: lines 13, 79-99 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/ShaderReplayTool.cmake: lines 88-154 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_address_draw_space_reuse_tests.cmake: lines 26-31 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_address_passes_tests.cmake: lines 15-18 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bda_span_reads_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bindless_images_tests.cmake: lines 1-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_buffer_atomics_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_buffer_format_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_buffer_load_store_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_compute_table_calls_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_copied_writer_copy_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_plane_partial_store_tests.cmake: lines 2-8 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_storage_dispatch_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_storage_reuse_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_dispatch_move_tests.cmake: lines 1-4 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_dispatch_overlap_tests.cmake: lines 9-12 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_cache_relocation_tests.cmake: lines 17-24 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_cache_reuse_tests.cmake: lines 18-20, 25-27, 40 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_data_hit_user_words_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_offset_indices_tests.cmake: lines 29-36 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_pushed_user_values_tests.cmake: lines 1-5 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_recapture_on_change_tests.cmake: lines 4-5 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_recipe_moved_buffer_tests.cmake: lines 1-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_relocate_user_values_tests.cmake: lines 1-4 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_unsupported_buffer_type_tests.cmake: lines 14-17 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_write_ranges_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_finisher_dispatch_order_tests.cmake: lines 1-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_finisher_hit_lookup_tests.cmake: lines 1-4 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_finisher_label_order_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_fragment_user_data_tail_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gated_dispatch_capture_tests.cmake: lines 12-15 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gpu_indirect_arguments_misaligned_writer_ahead_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gpu_indirect_arguments_written_ahead_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmake: lines 116-117, 125-126 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_compute_sample_tests.cmake: lines 1-8 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_draw_sample_tests.cmake: lines 1-20 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_embedded_sampler_tests.cmake: lines 1-6 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_ring_draw_key_tests.cmake: lines 1-6 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_slots_tests.cmake: lines 1-28 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_stage_words_tests.cmake: lines 1-13 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_capture_failure_tests.cmake: lines 1-4 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_reads_tests.cmake: lines 1-24 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_threads_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics64_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics_bitwise_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics_float_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_cache_bits_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake: lines 32-35 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_gather_one_dimensional_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_load_packed_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_border_color_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_derivatives_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_lod_clamp_tests.cmake: lines 2 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_shared_sampler_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sint8_tests.cmake: lines 12 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_srgb_load_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_array_through_volume_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_face_on_cube_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_float_rounding_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_line_through_plane_array_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_line_through_plane_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_packed_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_sint_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_unorm_rounding_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_volume_through_array_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_cache_bounds_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_reuse_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_variants_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_texel_status_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_indirect_arguments_written_ahead_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_indirect_patched_stage_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_indirect_thread_dimensions_tests.cmake: lines 9-12 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_lds_beyond_device_limit_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_draw_relocation_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_index_cache_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_provoking_vertex_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_tests.cmake: lines 15-18 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipeline_journal_tests.cmake: lines 9-10 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipeline_stop_tests.cmake: lines 1-13 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_dma_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_fill_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_metadata_pass_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_predicated_label_order_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_predication_read_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pixel_barycentric_emulation_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_graphics_tests.cmake: lines 20-23 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_presentation_pass_tests.cmake: lines 9, 26-27, 29 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_provoking_vertex_tests.cmake: lines 22-25 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_push_data_placements_tests.cmake: lines 1-23 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_push_only_heap_passes_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorded_draw_staging_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake: lines 187-191 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_rect_list_indirect_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recycled_shared_tests.cmake: lines 1-24 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_same_queue_label_wait_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sample_multisample_target_tests.cmake: lines 28 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sampled_cache_budget_tests.cmake: lines 4-5, 51-54 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_scratch_pool_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_staged_clear_sampled_read_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_cache_budget_tests.cmake: lines 23-26 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_flush_ordering_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_one_slice_alias_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_write_back_overhang_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_submit_progress_tests.cmake: lines 11, 15 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_tessellation_submit_tests.cmake: lines 1-6 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_tessellation_tests.cmake: lines 10-13 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_unimported_label_order_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_view_past_last_mip_tests.cmake: lines 1-3 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_write_data_written_ahead_tests.cmake: lines 4-7 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_pending_range_index_tests.cmake: lines 1-15 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake: lines 2 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_push_data_shadow_tests.cmake: lines 1-8 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/cmake/agc_shader_memory_tests.cmake: lines 61-66 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/AddressDrawSpaceReuse.cpp: lines 5, 10-11, 42, 68-69, 304-305, 335-336, 375, 385-390, 392, 483, 486-489, 770, 773-776, 779-798, 804, 814-819, 1061-1065, 1071-1074, 1081, 1091 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/AddressPasses.cpp: lines 1, 217, 220-222 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/BindlessImages.cpp: lines 1, 8, 61-64, 66 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/BufferAtomics.cpp: lines 1, 81, 86 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/BufferFormat.cpp: lines 1, 159, 164 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/BufferLoadStore.cpp: lines 307, 348, 350 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ColorWriteMaskDynamic.cpp: lines 239 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/CopyInputLifetime.cpp: lines 97 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DepthFastClearSubmit.cpp: lines 368, 375, 414-415, 440-441, 453-455 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DepthPlanePartialStore.cpp: lines 253-302 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DepthStorageDispatch.cpp: lines 144 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DepthStorageReuse.cpp: lines 48 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DeviceFunctionCache.cpp: lines 1-51 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp: lines 132-135, 153, 297-301, 328 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheReuse.cpp: lines 3, 321-322, 352 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawOffsetIndices.cpp: lines 401, 410, 482-483, 543-564, 734-740, 782 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawPushedUserValues.cpp: lines 1-223 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawRecipeMovedBuffer.cpp: lines 1-430 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawRelocateUserValues.cpp: lines 2, 13, 168-191, 206-209, 220, 300-301, 305-306, 310-315, 324-356, 378 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/DrawUnsupportedBufferType.cpp: lines 96 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/FinisherDispatchOrder.cpp: lines 1-172 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/FinisherHitLookup.cpp: lines 1-147 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapComputeSample.cpp: lines 1-178 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawBench.cpp: lines 1-367 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawSample.cpp: lines 41-571 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapEmbeddedSampler.cpp: lines 1-126 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapRingDrawKey.cpp: lines 1-324 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapSampleKernel.hpp: lines 1-69 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/HeapTableStageReuse.cpp: lines 1-256 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomics.cpp: lines 1, 128, 133 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomics64.cpp: lines 1, 127, 132 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomicsBitwise.cpp: lines 130, 132 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomicsFloat.cpp: lines 547-548 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageCacheBits.cpp: lines 227 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp: lines 250, 624 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageMemory.cpp: lines 362 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageSint8.cpp: lines 119 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageSrgbLoad.cpp: lines 191 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreArrayThroughVolume.cpp: lines 129 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreFaceOnCube.cpp: lines 143 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreFloatRounding.cpp: lines 316 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreLineThroughPlane.cpp: lines 149 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreLineThroughPlaneArray.cpp: lines 141 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStorePacked.cpp: lines 180 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreSint.cpp: lines 241 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreUnormRounding.cpp: lines 210 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreVolumeThroughArray.cpp: lines 129 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageTableCacheBounds.cpp: lines 10, 77-87, 256, 263-266, 462-523, 666-675 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageTableVariants.cpp: lines 3, 190, 201, 207-210, 389-420, 493 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ImageTexelStatus.cpp: lines 234 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/LazyResolvedAbi.cpp: lines 6, 564-565, 567-568 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/MemoryAccounting.cpp: lines 7, 163 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/MeshDrawRelocation.cpp: lines 2, 107, 115 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/MultisampleReadback.cpp: lines 1, 21, 36-50, 101, 255, 318, 397, 430 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp: lines 302-303, 491, 499, 509, 512, 552, 576, 578 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/MultisampledPassOrder.cpp: lines 132 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/PassBreakReasons.cpp: lines 146 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/PipelineJournal.cpp: lines 4, 20, 36, 332-370, 375, 926-931 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/PixelBarycentricEmulation.cpp: lines 2, 92, 132 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/PreparedGraphics.cpp: lines 2, 27-32, 145, 163, 167-173, 209, 231, 253, 256, 300, 362, 479, 588-604, 752 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp: lines 91, 100-101, 144, 153-154, 190 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/PushOnlyHeapPasses.cpp: lines 1-116 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/RecipeTemplateAging.cpp: lines 1-159 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp: lines 5, 12, 15, 474, 606-625, 1094, 1767 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/SampleOrder.cpp: lines 1, 66-80, 552-553, 565, 572, 653, 660, 1471, 1473, 1496, 1498, 1500, 1502 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp: lines 4-5, 606-646, 1527-1554 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ScratchPool.cpp: lines 247-249, 256, 266-271, 277-278, 282, 307, 310, 313, 341, 344, 360 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/StorageCacheBudget.cpp: lines 3, 15, 79-102, 107, 110-116, 129, 146, 148, 159-163, 176-181, 189, 227-230 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/StorageFlushOrdering.cpp: lines 208 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/StorageOneSliceAlias.cpp: lines 132 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/Tessellation.cpp: lines 1, 673-674, 724, 1222-1223 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/TessellationSubmit.cpp: lines 1-291 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/ViewPastLastMip.cpp: lines 67 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tests/execution/VulkanTestDevice.hpp: lines 20-33, 36-38 were not read; claims and findings about them are not verified.
  • core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp: lines 19-20, 60-91, 97-125, 156-168, 179, 183-184, 321, 324, 347-363 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/CMakeLists.txt: lines 256-261, 263-268, 271-272, 294-296 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/CacheKey.hpp: lines 9-11, 388-391 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp: lines 919, 966-975, 990, 1057-1073, 1077 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Deserialize.cpp: lines 233 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/HeapCacheSwitch.hpp: lines 1-79 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/DescriptorBinding.hpp: lines 42, 49-54, 64-66, 70, 73-85, 89-91, 96 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp: lines 8, 159-160 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrProgram.hpp: lines 148-150 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/IntermediateRepresentation/src/IrProgram.cpp: lines 967-984 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Optimization/include/Optimization/BindingAllocator.hpp: lines 25-31, 34 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Optimization/include/Optimization/DescriptorBindingBuilder.hpp: lines 48, 50-51, 59 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hpp: lines 65, 69-72, 75, 80 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Optimization/src/BindingAllocator.cpp: lines 16-27, 83-84, 129-132, 134-136, 174-182, 234 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp: lines 23-24, 427-428, 561, 563-564, 568, 591-593, 600, 605-606, 637, 652-658, 675-678, 711-729, 735-737, 741-745, 756-765, 858-859, 879-880, 891, 894, 914-929 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp: lines 582-596, 600 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/PipelineSpecialization.hpp: lines 40, 45-48, 53-55, 71-76 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/PushDataLayout.hpp: lines 1-268 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Recompiler.cpp: lines 2, 4-5, 28, 434-461, 464, 481-541, 544-585, 743, 783-784, 787-788, 848-850, 870-871, 884-892, 972, 980-987, 1005, 1015, 1102, 1126, 1159, 1199-1201, 1204, 1206-1208, 1212-1215, 1219-1220, 1222-1234, 1329, 1336, 1350-1358, 1397, 1446, 1460-1461, 1464, 1491, 1517, 1538, 1542-1543, 1801, 1820-1821, 1890, 2027-2033, 2051-2071, 2073-2074, 2093, 2096, 2148-2149, 2167-2171, 2187, 2205, 2228, 2233, 2420, 2422-2425, 2435, 2452-2457, 2466-2625, 2634-2669 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/Recompiler.hpp: lines 377-380, 464-467, 510-539, 750-751, 947-955, 986, 1016-1017, 1037-1047 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/RuntimeAbi.hpp: lines 12, 21-54, 66-67, 74-80, 89-122, 197 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/ShaderDiskCache.cpp: lines 90-91, 93, 95, 99, 103, 107, 109-110, 149, 483-484, 514-515, 533-541, 609-617, 684-688, 728-732, 769, 776-781, 791, 798-803, 890-891, 1001, 1010-1011, 1478 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/ShaderDiskCache.hpp: lines 16 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp: lines 47-49, 59, 61 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp: lines 44-46, 117-118, 120, 127 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp: lines 74-77, 91, 98-100, 122-130, 247-250, 252, 279 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvMemory/SpirvBufferAccess.hpp: lines 7, 13-24, 26-27, 34 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvMemory/SpirvConstants.hpp: lines 17 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvBdaFault.cpp: lines 4, 16-17, 25-26, 67-68 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvBdaLookup.cpp: lines 4, 68-76, 79-103 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp: lines 83-94, 283-285, 361-362 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp: lines 6, 106-116 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp: lines 11, 2066-2067, 2069-2073, 2081-2082, 2287-2288, 2766 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvBufferAccess.cpp: lines 6, 8, 37-236, 239-245, 271-293, 483-484, 491, 515-525 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvConstants.cpp: lines 4-5, 41-44 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp: lines 5, 7, 10, 63, 81-106, 111-113, 183-219, 232, 244-250, 268, 276-294, 321, 367 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp: lines 10, 145, 172, 499-511, 515, 522, 526-527, 532-534, 538-606, 620, 622-627, 630-634, 637-656, 659-663, 670, 692-700, 707-712, 715-720, 743, 749, 785 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp: lines 6, 1625, 1641, 1665 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp: lines 310-312, 315, 329-333 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvScratchPool.cpp: lines 55-58, 76-83 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvTypes.cpp: lines 10-18, 149-156 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp: lines 4, 970, 1971-1973, 2011, 2157, 2204 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvOptimizer.cpp: lines 178 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp: lines 6, 223-230, 233-258, 298-302, 306, 312, 320-322, 361-362, 366, 435-437, 1012-1013 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/tests/HeapTemplateBudgetTests.cpp: lines 1-77 were not read; claims and findings about them are not verified.
  • core/shader/recompiler/tests/RequestSerializerTests.cpp: lines 183-324, 347, 349-350, 373, 385, 902-903, 919, 965, 980, 1294-1299 were not read; claims and findings about them are not verified.
  • docs/dev/ARCHITECTURE.md: lines 144, 151, 155 were not read; claims and findings about them are not verified.
  • docs/dev/ENVIRONMENT.md: lines 44, 208-209, 216-217, 281, 425, 455, 467, 576 were not read; claims and findings about them are not verified.
  • docs/dev/debt/libSceAgcDriver.md: lines 380, 470 were not read; claims and findings about them are not verified.
  • docs/user/USAGE.md: lines 564, 570-573 were not read; claims and findings about them are not verified.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904819534 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5904819534). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T14:14:19Z. **Review:** COMMENTED --- # Review in progress — 13020 added lines in 333 files not read The GPU heap change has a broad implementation and test surface, and this review did not cover every changed file or run checks, so a formal merge decision is not justified. ## What I ran Reviewed PR head `7addd0489e1960c3172cc3048e8f04719a328c0b` using the prepared diff and `repo_read.py`. No tests or build checks were run. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | not run | Read selected heap and draw paths | | Build and tests | not run | No commands run | ## Findings ### Blocking None verified in the inspected paths. ### Non-blocking The change adds a large descriptor heap and shader-recompilation implementation. A full audit of the changed lines and runtime behavior remains outstanding. ## Not verified The review folder lists 202 changed files. I read the prepared description, commits, manifest, README, and diff opening, plus selected ranges in `BindlessHeap.cpp`, `HeapStages.cpp`, `Draw.cpp`, and `VulkanDevice.cpp`. I did not read every added line in files marked reviewed by the manifest, including the full heap implementation, shader recompiler changes, tests, or presentation paths. `3rdparty/Vulkan-Headers` is unsupported by the reader. No build, tests, or hardware checks were run. The author’s reported performance captures were not independently verified. ## To get this to a good state Nothing is required. Optional: complete a full review of the changed lines and run the relevant build and GPU heap tests. ## Continued review (pass 2) Changes are required before merge: complete review of the remaining added lines is needed before a formal decision can be justified. ## What I ran Reviewed selected continuation lines at head `7addd0489e1960c3172cc3048e8f04719a328c0b` using `repo_read.py` tools. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Selected continuation lines | passed | Read and inspected | | Full PR review | not run | Many added lines remain unread | | Build and tests | not run | No commands executed | ## Findings ### Blocking None verified in the inspected continuation lines. ### Non-blocking None. ## Not verified This continuation inspected selected added lines, including `CMakeLists.txt`, heap stage and cache declarations, the pending range index, presentation heap mappings, and selected heap walk code and tests. The other specified continuation lines and most of the changed files remain unread; in particular, the Vulkan-Headers submodule content was not available as plain text. No build, tests, performance captures, or physical-console behavior were verified. ## To get this to a good state Complete the review of the remaining added lines at the pinned head, then rerun relevant checks before requesting a formal decision. ## Continued review (pass 3) The continuation pass is incomplete, so a formal decision is not justified; no blocking defect was verified in the lines inspected. ## What I ran Reviewed head `7addd0489e1960c3172cc3048e8f04719a328c0b` using `repo_read.py` to read prepared review documents and selected source ranges. No tests or build were run. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | not run | Only selected ranges were read | | Build and tests | not run | Not executed | ## Negative control Not run; no test was executed in this pass. ## Findings ### Blocking None verified in the inspected ranges. ### Non-blocking None identified in the inspected ranges. ## Sources Read `review/description.md`, `review/manifest.json`, and the beginning of `review/diff.patch`, plus selected ranges in `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp`, and `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`. ## Not verified `review/commits.md` and the remainder of `review/diff.patch` were not read. Most continuation lines named in the request were not read; the listed files and ranges therefore remain unverified. `core/libs/prx/libSceAgcDriver/Graphics/src/VulkanDevice.cpp` could not be read through the available reader. No claim is made about uninspected code, performance captures, or runtime behavior. ## To get this to a good state Nothing is required for the inspected ranges. Optional: complete review of the remaining continuation lines and run relevant checks before making a formal decision. ## Not verified - `3rdparty/Vulkan-Headers`: lines 1 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/CMakeLists.txt`: lines 400, 482, 513, 523-524, 783-791, 794, 798-809, 1157 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`: lines 137-142, 173 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp`: lines 143 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`: lines 139, 141, 266-270, 360 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`: lines 161-162, 165 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp`: lines 88 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/DispatchCache.cpp`: lines 69 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp`: lines 41 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`: lines 705, 711-715, 732-737, 939-969, 1188, 1261, 1263, 1267, 1438, 1441, 1448, 1452-1455 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`: lines 2, 27, 32, 37, 52 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`: lines 316, 355, 366-381, 389 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`: lines 3, 139, 154, 181 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp`: lines 10, 133, 154, 361-371, 374-378, 511 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp`: lines 8, 65, 72-76, 123-124, 131, 133-134, 338-340, 368-386, 398, 406 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/IndirectDraw.cpp`: lines 25, 69 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/WrittenBuffers.cpp`: lines 2, 21, 25, 27-28, 91, 109, 114-116, 179-181, 183, 190 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`: lines 310-312 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp`: lines 343, 347-364, 366-376 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp`: lines 10, 1182, 1192, 1444, 1464-1468, 1470, 1474-1485, 1487, 2084-2101, 2126, 2143, 2153, 2165-2172, 2176-2177, 2180-2201, 2304, 2308-2310 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`: lines 2769-2776, 2790-2797 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/PerformanceOverlay.cpp`: lines 1, 1187 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/PresentationPass.cpp`: lines 1, 13, 15, 17, 27-37, 44, 78, 110, 157, 304, 401, 407, 410, 413-421 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/PresentationUpscaler.cpp`: lines 4, 12-13, 36-42, 49, 103-104, 107, 146-147, 154, 156, 186, 210, 340, 375-376, 382, 387, 392-402, 414, 427, 434 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`: lines 510-511, 538, 551, 763, 768-771, 799, 902, 904, 908-909, 936, 956, 984, 1004, 1284, 1758, 2389-2396, 2982-2985, 4383, 4736, 4801-4803, 4897, 4900-4905, 4955-4956, 4990, 5045-5046, 5120, 5352-5353, 5356, 5660-5663, 5686, 5824, 6008-6010, 6027-6031, 6051, 6054, 6099, 6120-6130, 6133-6138, 6141-6142, 6144-6150, 6153-6155, 6157-6169, 6308, 6311-6319, 6321-6325, 6356-6365, 6371, 6384-6386, 6451, 6593, 6679-6680, 6691-6731, 6810-6813, 6835, 6890-6891, 6923 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/BdaResources.hpp`: lines 31-32 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/BindlessHeap.hpp`: lines 401-410 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp`: lines 72-73 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`: lines 11, 57-66, 100-101, 208-247, 250-253, 306-307, 339, 542-551, 553, 555-556 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/DescriptorHeapObjects.hpp`: lines 1-38 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp`: lines 114, 133 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/FirstSampleCopy.hpp`: lines 9, 18-19, 39 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/GpuColorTransfer.hpp`: lines 35-36 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`: lines 326-327, 393-395, 594 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp`: lines 23-30, 116 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`: lines 51, 68, 87, 103 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/PipelineLibrary.hpp`: lines 45 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/PipelineSpecialization.hpp`: lines 82-101 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/PushDataShadow.hpp`: lines 1-52 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`: lines 223, 526, 910, 914-917, 929 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/ResidentMirror.hpp`: lines 37 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Resources.hpp`: lines 9-10 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/SampleOrder.hpp`: lines 42-43, 52 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Sampler.hpp`: lines 4, 9, 14, 19, 33, 36-37, 49 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`: lines 6-7, 34, 101-105, 156, 194-198, 202, 232-235, 238, 256-260, 263, 269-270, 286-287, 305, 373-374, 379, 409-429, 483, 527-532, 539, 553-555, 562, 564, 597, 640, 645-646, 765-847, 865-877, 885-886, 903, 923, 941, 955, 1008, 1027-1033, 1060, 1068-1069, 1074-1077 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp`: lines 7-8, 21-26, 52, 55-112, 151 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/StagedMerge.hpp`: lines 18-20 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`: lines 4, 72, 120, 270, 295 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp`: lines 16-17, 53, 58, 60-61, 64-67, 91, 99-104 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureDetile.comp`: lines 42-46, 77-80, 83-87 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/shaders/TextureRepack.comp`: lines 5-10, 13, 21-24, 27-31 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cpp`: lines 9, 455-463 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp`: lines 1581-1679 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/BufferAddress.cpp`: lines 10-14, 17 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp`: lines 412-425, 427 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`: lines 1, 31, 110-117, 146-152, 166-182, 187, 190, 207, 211, 221, 749, 1022, 1028, 1095-1096, 1710-1711, 1800, 1804, 1857, 1879, 1976, 1989, 2031-2035, 2040, 2044, 2097, 2163 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/DescriptorHeapObjects.cpp`: lines 1-212 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`: lines 1-3, 131-133, 151-153, 227-228, 234-235, 266-269, 297-304, 330-338, 343-346, 352-353, 359-360, 365-368, 396, 412, 435, 699, 920-924, 1069-1074, 1124, 1145-1147, 1309, 1313-1350, 1361-1362, 1366-1378, 1380, 1382-1386, 1388, 1411, 1529-1532, 1534, 1539, 1843, 1851, 2000, 2046, 2083, 2235, 2298, 2343-2344, 2351-2352, 2359, 2369, 2372, 2374, 2728, 2763, 2765-2767, 2773, 2781-2784, 2787-2789, 2820, 2826-2827, 2965, 3000, 3003, 3112-3118, 3121-3122, 3124, 3127-3128, 3130, 3144, 3187, 3192, 3280-3281, 3332, 3492, 3538-3541, 3694-3696, 3965, 3977, 3995, 4015, 4140-4147, 4433, 4512-4520, 4522, 4524, 4551 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/FirstSampleCopy.cpp`: lines 2-3, 184-188, 200, 224-247, 280 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/GpuColorTransfer.cpp`: lines 1, 10, 15-26, 56-59, 74, 77, 104, 118-119, 168-177 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`: lines 7, 75, 749, 975, 1081, 1246, 1341, 3258-3261, 3685-3691, 4490, 4496, 5334, 5948, 6359-6368, 6984, 7256-7269, 7271, 7274, 7279, 7282-7284, 7289, 7293-7294, 7296-7312 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleReadback.cpp`: lines 1, 8, 14-23, 37-38, 75-80, 88, 107-119, 129-130 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`: lines 4, 217, 304, 590, 918, 1536, 1643, 1655, 1661-1662 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleUpload.cpp`: lines 1, 7, 12-27, 46-51, 59, 76-88, 95-96 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`: lines 6, 8, 23, 390, 404, 407-416, 420-423, 426-427, 505, 509, 513, 525, 577-587, 600-605, 607-608, 614, 626, 631, 717, 828-834, 842, 849, 1101-1109, 1111-1112, 1115 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp`: lines 3, 909-911 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineLibrary.cpp`: lines 116, 119, 142, 144, 153-156, 173-174, 204, 232-236, 285-292, 313-314, 321-327 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp`: lines 13, 18, 678-692, 708-710, 713-726, 735, 1465, 1468, 1481, 2011, 2202, 2731, 2741, 2751, 3071, 3077, 3141, 3147, 3216, 3226, 3233, 3240-3267, 3291, 3301, 3314, 3508-3513, 3540, 3611, 4573 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp`: lines 427 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp`: lines 1, 56-60, 70, 72, 93-100, 138, 148, 194, 238-239, 421 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/SampleOrder.cpp`: lines 1, 22, 27, 50-63, 110, 167, 188-201, 212-214, 250-255, 257-259, 280-281, 283-284, 288-293, 296, 298, 317-318, 321-343, 384, 401-404, 508-515, 519, 521-528, 592-593, 603-605, 626 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/Sampler.cpp`: lines 2, 29, 32-33, 49-60, 69, 107 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderAddressResources.cpp`: lines 189, 204-205 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`: lines 2, 14, 27, 59-68, 1390, 1956, 1958, 2032-2035, 2050-2053, 2215, 2251-2252, 2255, 2260, 2293, 2295-2296, 2370-2391, 2427, 2443-2448, 2450, 2454, 2460-2461, 2465-2467, 2470, 2474-2476, 2484, 2488, 2491-2515, 2522, 2535-2536, 2544, 2549, 2559-2566, 2570, 2573, 2578-2581, 2584-2585, 2587, 2589, 2594, 2615-2616, 2643-2658, 2666, 2713-2716, 2718, 2801, 2815, 2819, 2822, 2824-2832, 2834, 2841-2844, 2888-2892, 2915-2922, 2943, 2965-2968, 2991, 3017, 3063-3064, 3100-3103, 3173-3174, 3179-3195, 3202-3205, 3215-3218, 3235-3247, 3255, 3326-3337, 3351-3352, 3354, 3363, 3365, 3371, 3373, 3378, 3410-3418, 3426, 3429-3430, 3902-3903, 3991, 4012-4018, 4026, 4201, 4211, 4222-4223, 4262, 4266-4268, 4343, 4367-4368, 4370, 4385-4387, 4390, 4392, 4395-4396, 4471, 4694, 4696, 4709, 4713, 4721, 4723, 4732-4734, 4736, 4748, 4761, 4765, 5047, 5056, 5077, 5080-5081, 5085-5091, 5093-5096, 5098, 5100-5101, 5105, 5248, 5257, 5264, 5266, 5335-5346, 5349, 5354, 5374-5375, 5379, 5386, 5575-5585, 5589, 5795, 5802, 5809, 5822, 5835, 5837-5838, 5840-5841, 5869-5879, 5905, 5918, 5923, 5930-5931, 5949, 5969, 5975, 5983-5984, 5987-5989, 6017, 6020, 6139, 6145, 6147, 6240-6241, 6256-6258, 6363, 6380, 6382-6383, 6389, 6391, 6394, 6413, 6428-6431, 6448, 6457, 6515, 6523, 6528, 6541, 6653, 6666, 6668, 6698, 6707, 6709, 6736, 6740, 6764-6765, 6768, 6798, 6808, 6822, 6826, 6838-6845, 6850-6860, 6905-6908, 6963, 6972-6973, 6975, 6987, 7034, 7063-7067, 7070, 7072-7073, 7075, 7078, 7081-7082, 7084, 7088, 7091, 7095, 7097, 7099, 7109, 7112-7113, 7116-7144, 7146-7147, 7164-7166, 7180, 7231-7236, 7240, 7257-7271, 7331, 7337-7339, 7345-7377, 7384, 7403, 7423, 7474-7488, 7521-7526, 7651-8475 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`: lines 45-46, 173-179, 257-261, 374, 436, 458, 468, 520-522, 585, 593, 601-610, 612-627, 638-654, 662-668, 672, 677, 712-717, 779 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/StagedMerge.cpp`: lines 1, 8, 28-36, 83, 113, 115-131, 145-146, 179-185, 233, 243, 294-295, 300 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`: lines 2, 18, 35, 1502, 1827-1829, 1833, 1839-1843, 1849-1864, 1888-1893, 1896-1899, 1904, 1906-1907, 2408-2414, 2892-2893, 3382, 3929, 3932, 4295, 4297, 4540-4541, 4627, 4996, 4998, 5580-5581, 5591, 5709, 5810-5817, 5819, 5826-5827, 5844, 5849-5851, 6064-6065, 7661 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp`: lines 1, 10-12, 18, 21, 51-111, 133-134, 167-174, 194, 201-206, 230-235, 237, 270-279, 299-316, 320-322, 351, 504-505, 516, 551-564, 570-573, 577-592, 605-614, 621, 655-687 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/Graphics/src/UnitShadow.cpp`: lines 3, 210-211, 218-219 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp`: lines 723-725, 5293 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/BindlessHeapSlots.cpp`: lines 1-653 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/CollectMemoGeneration.cpp`: lines 6, 246-259, 366 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/DrawPipelineStop.cpp`: lines 1-60 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`: lines 6739-6778, 13949-13969, 14898-14902 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/HeapStageWordsBase.cpp`: lines 1-69 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/HeapWalkReads.cpp`: lines 1-67 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/Mesh.cpp`: lines 1, 177-178, 195, 211 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/PresentationPass.cpp`: lines 1-2, 811, 1358-1365 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/PushDataPlacements.cpp`: lines 1-256 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/PushDataShadow.cpp`: lines 1-88 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`: lines 21, 10199-10238, 16413-16417 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/RecycledShared.cpp`: lines 1-106 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/ShaderDeviceProfile.cpp`: lines 202 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`: lines 403 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`: lines 47, 447-475, 8163-8184, 8857, 8978, 9032-9036, 9047-9051, 10303, 10313-10332, 10344, 12694, 12716 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/ShaderReplayRequests.cpp`: lines 13, 79-99 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/ShaderReplayTool.cmake`: lines 88-154 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_address_draw_space_reuse_tests.cmake`: lines 26-31 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_address_passes_tests.cmake`: lines 15-18 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bda_span_reads_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_bindless_images_tests.cmake`: lines 1-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_buffer_atomics_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_buffer_format_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_buffer_load_store_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_compute_table_calls_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_copied_writer_copy_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_plane_partial_store_tests.cmake`: lines 2-8 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_storage_dispatch_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_storage_reuse_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_dispatch_move_tests.cmake`: lines 1-4 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_dispatch_overlap_tests.cmake`: lines 9-12 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_cache_relocation_tests.cmake`: lines 17-24 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_cache_reuse_tests.cmake`: lines 18-20, 25-27, 40 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_data_hit_user_words_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_offset_indices_tests.cmake`: lines 29-36 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_pushed_user_values_tests.cmake`: lines 1-5 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_recapture_on_change_tests.cmake`: lines 4-5 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_recipe_moved_buffer_tests.cmake`: lines 1-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_relocate_user_values_tests.cmake`: lines 1-4 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_unsupported_buffer_type_tests.cmake`: lines 14-17 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_write_ranges_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_finisher_dispatch_order_tests.cmake`: lines 1-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_finisher_hit_lookup_tests.cmake`: lines 1-4 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_finisher_label_order_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_fragment_user_data_tail_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gated_dispatch_capture_tests.cmake`: lines 12-15 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gpu_indirect_arguments_misaligned_writer_ahead_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gpu_indirect_arguments_written_ahead_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmake`: lines 116-117, 125-126 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_compute_sample_tests.cmake`: lines 1-8 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_draw_sample_tests.cmake`: lines 1-20 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_embedded_sampler_tests.cmake`: lines 1-6 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_ring_draw_key_tests.cmake`: lines 1-6 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_slots_tests.cmake`: lines 1-28 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_stage_words_tests.cmake`: lines 1-13 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_capture_failure_tests.cmake`: lines 1-4 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_reads_tests.cmake`: lines 1-24 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_threads_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics64_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics_bitwise_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics_float_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_atomics_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_cache_bits_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake`: lines 32-35 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_gather_one_dimensional_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_load_packed_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_border_color_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_derivatives_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_lod_clamp_tests.cmake`: lines 2 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sample_shared_sampler_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_sint8_tests.cmake`: lines 12 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_srgb_load_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_array_through_volume_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_face_on_cube_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_float_rounding_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_line_through_plane_array_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_line_through_plane_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_packed_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_sint_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_unorm_rounding_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_store_volume_through_array_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_cache_bounds_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_reuse_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_variants_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_texel_status_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_indirect_arguments_written_ahead_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_indirect_patched_stage_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_indirect_thread_dimensions_tests.cmake`: lines 9-12 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_lds_beyond_device_limit_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_draw_relocation_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_index_cache_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_provoking_vertex_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_mesh_tests.cmake`: lines 15-18 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipeline_journal_tests.cmake`: lines 9-10 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipeline_stop_tests.cmake`: lines 1-13 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_dma_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_fill_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_metadata_pass_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_predicated_label_order_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pipelined_predication_read_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pixel_barycentric_emulation_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_graphics_tests.cmake`: lines 20-23 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_presentation_pass_tests.cmake`: lines 9, 26-27, 29 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_provoking_vertex_tests.cmake`: lines 22-25 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_push_data_placements_tests.cmake`: lines 1-23 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_push_only_heap_passes_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorded_draw_staging_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake`: lines 187-191 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_rect_list_indirect_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recycled_shared_tests.cmake`: lines 1-24 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_same_queue_label_wait_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sample_multisample_target_tests.cmake`: lines 28 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sampled_cache_budget_tests.cmake`: lines 4-5, 51-54 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_scratch_pool_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_staged_clear_sampled_read_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_cache_budget_tests.cmake`: lines 23-26 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_flush_ordering_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_one_slice_alias_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_storage_write_back_overhang_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_submit_progress_tests.cmake`: lines 11, 15 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_tessellation_submit_tests.cmake`: lines 1-6 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_tessellation_tests.cmake`: lines 10-13 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_unimported_label_order_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_view_past_last_mip_tests.cmake`: lines 1-3 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_write_data_written_ahead_tests.cmake`: lines 4-7 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_pending_range_index_tests.cmake`: lines 1-15 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake`: lines 2 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_push_data_shadow_tests.cmake`: lines 1-8 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/cmake/agc_shader_memory_tests.cmake`: lines 61-66 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/AddressDrawSpaceReuse.cpp`: lines 5, 10-11, 42, 68-69, 304-305, 335-336, 375, 385-390, 392, 483, 486-489, 770, 773-776, 779-798, 804, 814-819, 1061-1065, 1071-1074, 1081, 1091 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/AddressPasses.cpp`: lines 1, 217, 220-222 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/BindlessImages.cpp`: lines 1, 8, 61-64, 66 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/BufferAtomics.cpp`: lines 1, 81, 86 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/BufferFormat.cpp`: lines 1, 159, 164 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/BufferLoadStore.cpp`: lines 307, 348, 350 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ColorWriteMaskDynamic.cpp`: lines 239 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/CopyInputLifetime.cpp`: lines 97 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DepthFastClearSubmit.cpp`: lines 368, 375, 414-415, 440-441, 453-455 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DepthPlanePartialStore.cpp`: lines 253-302 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DepthStorageDispatch.cpp`: lines 144 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DepthStorageReuse.cpp`: lines 48 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DeviceFunctionCache.cpp`: lines 1-51 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp`: lines 132-135, 153, 297-301, 328 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheReuse.cpp`: lines 3, 321-322, 352 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawOffsetIndices.cpp`: lines 401, 410, 482-483, 543-564, 734-740, 782 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawPushedUserValues.cpp`: lines 1-223 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawRecipeMovedBuffer.cpp`: lines 1-430 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawRelocateUserValues.cpp`: lines 2, 13, 168-191, 206-209, 220, 300-301, 305-306, 310-315, 324-356, 378 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/DrawUnsupportedBufferType.cpp`: lines 96 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/FinisherDispatchOrder.cpp`: lines 1-172 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/FinisherHitLookup.cpp`: lines 1-147 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapComputeSample.cpp`: lines 1-178 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawBench.cpp`: lines 1-367 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawSample.cpp`: lines 41-571 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapEmbeddedSampler.cpp`: lines 1-126 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapRingDrawKey.cpp`: lines 1-324 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapSampleKernel.hpp`: lines 1-69 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/HeapTableStageReuse.cpp`: lines 1-256 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomics.cpp`: lines 1, 128, 133 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomics64.cpp`: lines 1, 127, 132 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomicsBitwise.cpp`: lines 130, 132 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageAtomicsFloat.cpp`: lines 547-548 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageCacheBits.cpp`: lines 227 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp`: lines 250, 624 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageMemory.cpp`: lines 362 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageSint8.cpp`: lines 119 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageSrgbLoad.cpp`: lines 191 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreArrayThroughVolume.cpp`: lines 129 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreFaceOnCube.cpp`: lines 143 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreFloatRounding.cpp`: lines 316 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreLineThroughPlane.cpp`: lines 149 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreLineThroughPlaneArray.cpp`: lines 141 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStorePacked.cpp`: lines 180 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreSint.cpp`: lines 241 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreUnormRounding.cpp`: lines 210 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageStoreVolumeThroughArray.cpp`: lines 129 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageTableCacheBounds.cpp`: lines 10, 77-87, 256, 263-266, 462-523, 666-675 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageTableVariants.cpp`: lines 3, 190, 201, 207-210, 389-420, 493 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ImageTexelStatus.cpp`: lines 234 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/LazyResolvedAbi.cpp`: lines 6, 564-565, 567-568 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/MemoryAccounting.cpp`: lines 7, 163 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/MeshDrawRelocation.cpp`: lines 2, 107, 115 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/MultisampleReadback.cpp`: lines 1, 21, 36-50, 101, 255, 318, 397, 430 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp`: lines 302-303, 491, 499, 509, 512, 552, 576, 578 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/MultisampledPassOrder.cpp`: lines 132 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/PassBreakReasons.cpp`: lines 146 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/PipelineJournal.cpp`: lines 4, 20, 36, 332-370, 375, 926-931 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/PixelBarycentricEmulation.cpp`: lines 2, 92, 132 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/PreparedGraphics.cpp`: lines 2, 27-32, 145, 163, 167-173, 209, 231, 253, 256, 300, 362, 479, 588-604, 752 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cpp`: lines 91, 100-101, 144, 153-154, 190 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/PushOnlyHeapPasses.cpp`: lines 1-116 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/RecipeTemplateAging.cpp`: lines 1-159 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp`: lines 5, 12, 15, 474, 606-625, 1094, 1767 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/SampleOrder.cpp`: lines 1, 66-80, 552-553, 565, 572, 653, 660, 1471, 1473, 1496, 1498, 1500, 1502 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp`: lines 4-5, 606-646, 1527-1554 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ScratchPool.cpp`: lines 247-249, 256, 266-271, 277-278, 282, 307, 310, 313, 341, 344, 360 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/StorageCacheBudget.cpp`: lines 3, 15, 79-102, 107, 110-116, 129, 146, 148, 159-163, 176-181, 189, 227-230 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/StorageFlushOrdering.cpp`: lines 208 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/StorageOneSliceAlias.cpp`: lines 132 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/Tessellation.cpp`: lines 1, 673-674, 724, 1222-1223 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/TessellationSubmit.cpp`: lines 1-291 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/ViewPastLastMip.cpp`: lines 67 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tests/execution/VulkanTestDevice.hpp`: lines 20-33, 36-38 were not read; claims and findings about them are not verified. - `core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp`: lines 19-20, 60-91, 97-125, 156-168, 179, 183-184, 321, 324, 347-363 were not read; claims and findings about them are not verified. - `core/shader/recompiler/CMakeLists.txt`: lines 256-261, 263-268, 271-272, 294-296 were not read; claims and findings about them are not verified. - `core/shader/recompiler/CacheKey.hpp`: lines 9-11, 388-391 were not read; claims and findings about them are not verified. - `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`: lines 919, 966-975, 990, 1057-1073, 1077 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Deserialize.cpp`: lines 233 were not read; claims and findings about them are not verified. - `core/shader/recompiler/HeapCacheSwitch.hpp`: lines 1-79 were not read; claims and findings about them are not verified. - `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/DescriptorBinding.hpp`: lines 42, 49-54, 64-66, 70, 73-85, 89-91, 96 were not read; claims and findings about them are not verified. - `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp`: lines 8, 159-160 were not read; claims and findings about them are not verified. - `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrProgram.hpp`: lines 148-150 were not read; claims and findings about them are not verified. - `core/shader/recompiler/IntermediateRepresentation/src/IrProgram.cpp`: lines 967-984 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Optimization/include/Optimization/BindingAllocator.hpp`: lines 25-31, 34 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Optimization/include/Optimization/DescriptorBindingBuilder.hpp`: lines 48, 50-51, 59 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hpp`: lines 65, 69-72, 75, 80 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Optimization/src/BindingAllocator.cpp`: lines 16-27, 83-84, 129-132, 134-136, 174-182, 234 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`: lines 23-24, 427-428, 561, 563-564, 568, 591-593, 600, 605-606, 637, 652-658, 675-678, 711-729, 735-737, 741-745, 756-765, 858-859, 879-880, 891, 894, 914-929 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp`: lines 582-596, 600 were not read; claims and findings about them are not verified. - `core/shader/recompiler/PipelineSpecialization.hpp`: lines 40, 45-48, 53-55, 71-76 were not read; claims and findings about them are not verified. - `core/shader/recompiler/PushDataLayout.hpp`: lines 1-268 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Recompiler.cpp`: lines 2, 4-5, 28, 434-461, 464, 481-541, 544-585, 743, 783-784, 787-788, 848-850, 870-871, 884-892, 972, 980-987, 1005, 1015, 1102, 1126, 1159, 1199-1201, 1204, 1206-1208, 1212-1215, 1219-1220, 1222-1234, 1329, 1336, 1350-1358, 1397, 1446, 1460-1461, 1464, 1491, 1517, 1538, 1542-1543, 1801, 1820-1821, 1890, 2027-2033, 2051-2071, 2073-2074, 2093, 2096, 2148-2149, 2167-2171, 2187, 2205, 2228, 2233, 2420, 2422-2425, 2435, 2452-2457, 2466-2625, 2634-2669 were not read; claims and findings about them are not verified. - `core/shader/recompiler/Recompiler.hpp`: lines 377-380, 464-467, 510-539, 750-751, 947-955, 986, 1016-1017, 1037-1047 were not read; claims and findings about them are not verified. - `core/shader/recompiler/RuntimeAbi.hpp`: lines 12, 21-54, 66-67, 74-80, 89-122, 197 were not read; claims and findings about them are not verified. - `core/shader/recompiler/ShaderDiskCache.cpp`: lines 90-91, 93, 95, 99, 103, 107, 109-110, 149, 483-484, 514-515, 533-541, 609-617, 684-688, 728-732, 769, 776-781, 791, 798-803, 890-891, 1001, 1010-1011, 1478 were not read; claims and findings about them are not verified. - `core/shader/recompiler/ShaderDiskCache.hpp`: lines 16 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp`: lines 47-49, 59, 61 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp`: lines 44-46, 117-118, 120, 127 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`: lines 74-77, 91, 98-100, 122-130, 247-250, 252, 279 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvMemory/SpirvBufferAccess.hpp`: lines 7, 13-24, 26-27, 34 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvMemory/SpirvConstants.hpp`: lines 17 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvBdaFault.cpp`: lines 4, 16-17, 25-26, 67-68 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvBdaLookup.cpp`: lines 4, 68-76, 79-103 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`: lines 83-94, 283-285, 361-362 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`: lines 6, 106-116 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp`: lines 11, 2066-2067, 2069-2073, 2081-2082, 2287-2288, 2766 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvBufferAccess.cpp`: lines 6, 8, 37-236, 239-245, 271-293, 483-484, 491, 515-525 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvConstants.cpp`: lines 4-5, 41-44 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp`: lines 5, 7, 10, 63, 81-106, 111-113, 183-219, 232, 244-250, 268, 276-294, 321, 367 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`: lines 10, 145, 172, 499-511, 515, 522, 526-527, 532-534, 538-606, 620, 622-627, 630-634, 637-656, 659-663, 670, 692-700, 707-712, 715-720, 743, 749, 785 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp`: lines 6, 1625, 1641, 1665 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp`: lines 310-312, 315, 329-333 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvScratchPool.cpp`: lines 55-58, 76-83 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvTypes.cpp`: lines 10-18, 149-156 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`: lines 4, 970, 1971-1973, 2011, 2157, 2204 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvOptimizer.cpp`: lines 178 were not read; claims and findings about them are not verified. - `core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp`: lines 6, 223-230, 233-258, 298-302, 306, 312, 320-322, 361-362, 366, 435-437, 1012-1013 were not read; claims and findings about them are not verified. - `core/shader/recompiler/tests/HeapTemplateBudgetTests.cpp`: lines 1-77 were not read; claims and findings about them are not verified. - `core/shader/recompiler/tests/RequestSerializerTests.cpp`: lines 183-324, 347, 349-350, 373, 385, 902-903, 919, 965, 980, 1294-1299 were not read; claims and findings about them are not verified. - `docs/dev/ARCHITECTURE.md`: lines 144, 151, 155 were not read; claims and findings about them are not verified. - `docs/dev/ENVIRONMENT.md`: lines 44, 208-209, 216-217, 281, 425, 455, 467, 576 were not read; claims and findings about them are not verified. - `docs/dev/debt/libSceAgcDriver.md`: lines 380, 470 were not read; claims and findings about them are not verified. - `docs/user/USAGE.md`: lines 564, 570-573 were not read; claims and findings about them are not verified.
MarcZX10 commented 2026-11-14 17:54:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T17:54:12Z.

Review: COMMENTED


Reviewed — no blocking findings, three non-blocking items

The change adds an opt-in descriptor heap path with heap-backed samplers, bindings and tests. I found no blocking defect. Three non-blocking items below need a fix.

What I ran

No build or tests were run. I checked three findings by reading the code at head 72f1ed74e2f623a4c4fc946ff8a390e48d02a808 (the file at that commit, and searches for the symbols each finding names). An automated read of the changed files covered 347 of 348 files and 17,374 of 17,375 added lines. I did not read the whole diff myself, so the rest of the code rests on that pass.

Results

Check Result Note
The three findings below, against the code passed Each holds at this head
Build and tests not run Not run here
Author-reported checks not run Not independently run

Findings

Blocking

None.

Non-blocking

  • HeapDrawBench.cpp:328: rounds accepts 0 to 2 from argv. Rounds below 3 never add to perDraw (line 351), yet the summary calls perDraw.front() and perDraw[perDraw.size() / 2] (line 360) on the empty vector. Fix: reject rounds < 3, or skip the summary when perDraw is empty.
  • HeapEmbeddedSampler.cpp:93: the mirror variant is compiled into Outputs[2], but nothing dispatches it or checks its output. Only its pipeline identity is compared. Fix: dispatch it to its own output and assert the mirrored sample.
  • TextureDetiler.cpp:563: if the heap CMASK pipeline fails after the classic one succeeded, the failure overwrites created and Check throws, so the classic pipeline is never used. Fix: keep the heap result separate, and fall back to cmaskPipeline when the heap one fails.

Sources

Not verified

  • GPU behaviour of the heap path on real hardware and drivers.
  • The performance numbers in the description.
  • Whether the device must support the sampled-image array capability for the embedded-sampler path (core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp:288). Not confirmed, so not raised as a finding.
  • The rest of the diff beyond the automated pass.

To get this to a good state

Address the three non-blocking items. Nothing blocks the change itself.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5906185136 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5906185136). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T17:54:12Z. **Review:** COMMENTED --- # Reviewed — no blocking findings, three non-blocking items The change adds an opt-in descriptor heap path with heap-backed samplers, bindings and tests. I found no blocking defect. Three non-blocking items below need a fix. ## What I ran No build or tests were run. I checked three findings by reading the code at head `72f1ed74e2f623a4c4fc946ff8a390e48d02a808` (the file at that commit, and searches for the symbols each finding names). An automated read of the changed files covered 347 of 348 files and 17,374 of 17,375 added lines. I did not read the whole diff myself, so the rest of the code rests on that pass. ## Results | Check | Result | Note | |---|---|---| | The three findings below, against the code | passed | Each holds at this head | | Build and tests | not run | Not run here | | Author-reported checks | not run | Not independently run | ## Findings ### Blocking None. ### Non-blocking - [`HeapDrawBench.cpp:328`](https://github.com/boykopovar/AnyPS5/blob/72f1ed74e2f623a4c4fc946ff8a390e48d02a808/core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawBench.cpp#L328): `rounds` accepts 0 to 2 from argv. Rounds below 3 never add to `perDraw` (line 351), yet the summary calls `perDraw.front()` and `perDraw[perDraw.size() / 2]` (line 360) on the empty vector. *Fix:* reject `rounds < 3`, or skip the summary when `perDraw` is empty. - [`HeapEmbeddedSampler.cpp:93`](https://github.com/boykopovar/AnyPS5/blob/72f1ed74e2f623a4c4fc946ff8a390e48d02a808/core/libs/prx/libSceAgcDriver/tests/execution/HeapEmbeddedSampler.cpp#L93): the `mirror` variant is compiled into `Outputs[2]`, but nothing dispatches it or checks its output. Only its pipeline identity is compared. *Fix:* dispatch it to its own output and assert the mirrored sample. - [`TextureDetiler.cpp:563`](https://github.com/boykopovar/AnyPS5/blob/72f1ed74e2f623a4c4fc946ff8a390e48d02a808/core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp#L563): if the heap CMASK pipeline fails after the classic one succeeded, the failure overwrites `created` and `Check` throws, so the classic pipeline is never used. *Fix:* keep the heap result separate, and fall back to `cmaskPipeline` when the heap one fails. ## Sources - https://github.com/boykopovar/AnyPS5/blob/72f1ed74e2f623a4c4fc946ff8a390e48d02a808/core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawBench.cpp#L351 - https://github.com/boykopovar/AnyPS5/blob/72f1ed74e2f623a4c4fc946ff8a390e48d02a808/core/libs/prx/libSceAgcDriver/tests/execution/HeapEmbeddedSampler.cpp#L111 - https://github.com/boykopovar/AnyPS5/blob/72f1ed74e2f623a4c4fc946ff8a390e48d02a808/core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp#L560 ## Not verified - GPU behaviour of the heap path on real hardware and drivers. - The performance numbers in the description. - Whether the device must support the sampled-image array capability for the embedded-sampler path (`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cpp:288`). Not confirmed, so not raised as a finding. - The rest of the diff beyond the automated pass. ## To get this to a good state Address the three non-blocking items. Nothing blocks the change itself. AI-assisted: yes
MarcZX10 commented 2026-11-15 03:36:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T03:36:43Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete because this change spans many files and most changed-file text was not inspected, so a formal approval or change request is not justified.

What I ran

  • Reviewed the prepared bundle for head 7b9806d8f4212d716b2380a24110799d9fe3cee6, base main; no tests or build commands were run.
  • Read review/description.md (lines 1–250 of 502), review/commits.md (lines 1–15 of 250), review/manifest.json (lines 1–15 of 20,414), review/diff.patch (lines 1–250 of 30,104), and review/README.md (lines 1–15 of 364). Inspected the changed-file listing.

Results

Check Result Note
Bundle inspection passed Prepared review materials read
Build and tests not run No commands run
Full changed-file audit not run Scope exceeds inspected content

Findings

Blocking

None verified in the inspected excerpts.

Non-blocking

None.

Not verified

Most changed files and most changed lines were not read, including key heap and shader implementation files; their behavior is not verified. The changed-file listing shows numerous files excluded from files/ as too large, plus one unsupported submodule entry. Performance measurements in the description are author-provided and were not independently verified. No build, tests, or runtime checks were performed.

To get this to a good state

Nothing is required. Optional: complete the audit of the changed files and run relevant checks before making a formal review decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5908864907 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5908864907). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T03:36:43Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete because this change spans many files and most changed-file text was not inspected, so a formal approval or change request is not justified. ## What I ran - Reviewed the prepared bundle for head `7b9806d8f4212d716b2380a24110799d9fe3cee6`, base `main`; no tests or build commands were run. - Read `review/description.md` (lines 1–250 of 502), `review/commits.md` (lines 1–15 of 250), `review/manifest.json` (lines 1–15 of 20,414), `review/diff.patch` (lines 1–250 of 30,104), and `review/README.md` (lines 1–15 of 364). Inspected the changed-file listing. ## Results | Check | Result | Note | |---|---|---| | Bundle inspection | passed | Prepared review materials read | | Build and tests | not run | No commands run | | Full changed-file audit | not run | Scope exceeds inspected content | ## Findings ### Blocking None verified in the inspected excerpts. ### Non-blocking None. ## Not verified Most changed files and most changed lines were not read, including key heap and shader implementation files; their behavior is not verified. The changed-file listing shows numerous files excluded from `files/` as too large, plus one unsupported submodule entry. Performance measurements in the description are author-provided and were not independently verified. No build, tests, or runtime checks were performed. ## To get this to a good state Nothing is required. Optional: complete the audit of the changed files and run relevant checks before making a formal review decision.
MarcZX10 commented 2026-11-15 06:34:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T06:34:33Z.

Review: COMMENTED


Reviewed — comments

This review is incomplete: the change spans many files, and I could not inspect the changed code in enough depth to support a formal decision.

What I ran

Read the prepared description, manifest, and the opening portion of the diff for head 91cf658f1f817e526e7f1153d0399d152b065434. No tests or builds were run.

Results

Check Result Note
Change inspection not run Full review not completed
Tests not run No commands available through the reader

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The diff and changed files were not read in full. The prepared description and manifest were read; only the opening portion of diff.patch was read. The changed Vulkan-Headers submodule and numerous files excluded from the review folder were not inspected. In particular, implementation correctness, security, performance, and test coverage remain unverified.

To get this to a good state

Complete the targeted review of the changed implementation and tests before making a merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5909451835 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5909451835). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T06:34:33Z. **Review:** COMMENTED --- # Reviewed — comments This review is incomplete: the change spans many files, and I could not inspect the changed code in enough depth to support a formal decision. ## What I ran Read the prepared description, manifest, and the opening portion of the diff for head `91cf658f1f817e526e7f1153d0399d152b065434`. No tests or builds were run. ## Results | Check | Result | Note | |---|---|---| | Change inspection | not run | Full review not completed | | Tests | not run | No commands available through the reader | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The diff and changed files were not read in full. The prepared description and manifest were read; only the opening portion of `diff.patch` was read. The changed Vulkan-Headers submodule and numerous files excluded from the review folder were not inspected. In particular, implementation correctness, security, performance, and test coverage remain unverified. ## To get this to a good state Complete the targeted review of the changed implementation and tests before making a merge decision.
MarcZX10 commented 2026-11-15 18:33:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T18:33:49Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected heap and dispatch paths show no verified blocking defect; review coverage is incomplete because many changed files were excluded from the prepared bundle.

What I ran

Reviewed head c7ec10aa5e4dc510a940323a705ad39b059c7db8 using the prepared review bundle and the pinned repo_read.py reader. No build or tests were run.

Results

Check Result Note
Change and diff inspection passed Prepared bundle read
Targeted code review passed Heap lifecycle and dispatch paths
Build and tests not run No commands run

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

The manifest contains many changed files not included in the prepared bundle, including core descriptor heap, shader recompiler, presentation, and test files. These were not read. The Vulkan-Headers submodule contents were also excluded. Runtime behavior, build, tests, and the performance claims in the description were not independently verified. Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp, and core/libs/prx/libSceAgcDriver/Graphics/include/BindlessHeap.hpp. Files excluded: those recorded as not included in review/manifest.json, including the Vulkan-Headers submodule.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912201501 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5912201501). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T18:33:49Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected heap and dispatch paths show no verified blocking defect; review coverage is incomplete because many changed files were excluded from the prepared bundle. ## What I ran Reviewed head `c7ec10aa5e4dc510a940323a705ad39b059c7db8` using the prepared review bundle and the pinned `repo_read.py` reader. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Change and diff inspection | passed | Prepared bundle read | | Targeted code review | passed | Heap lifecycle and dispatch paths | | Build and tests | not run | No commands run | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified The manifest contains many changed files not included in the prepared bundle, including core descriptor heap, shader recompiler, presentation, and test files. These were not read. The Vulkan-Headers submodule contents were also excluded. Runtime behavior, build, tests, and the performance claims in the description were not independently verified. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp`, and `core/libs/prx/libSceAgcDriver/Graphics/include/BindlessHeap.hpp`. Files excluded: those recorded as not included in `review/manifest.json`, including the Vulkan-Headers submodule. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-15 19:36:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T19:36:14Z.

Review: COMMENTED


Reviewed — comments

The review of d3d885a7bb8d540743dfeebff0e0a0a7c9ddaf5e is incomplete because most changed files were excluded as too large, so a merge decision is not justified.

What I ran

  • Read the prepared description, commits, manifest, diff, and review README. Used the pinned repository reader for selected implementation ranges and searches.
  • Commands: none. No tests or build were run.

Results

Check Result Note
Prepared change review not run Full changed-line coverage unavailable
Targeted source inspection passed Read selected heap, draw, dispatch, and memory paths
Tests and build not run No execution environment available

Findings

Blocking

None established from the code inspected.

Non-blocking

None.

Not verified

The review folder listed many changed files as excluded because they were too large, including core heap allocation and descriptor mapping, shader resource handling and emission, Vulkan device setup, and numerous tests. The Vulkan-Headers submodule was also unavailable as text. I read selected ranges from HeapStages.cpp, Dispatch.cpp, Draw.cpp, GuestMemory.cpp, BindlessHeap.cpp, BindlessHeap.hpp, and RecycledShared.hpp; this does not cover all added lines in those files or every changed file. No tests, build, or console behavior were verified.

To get this to a good state

Nothing is required. Optional: complete review of the excluded implementation and test files before relying on this review as a merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912492409 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5912492409). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T19:36:14Z. **Review:** COMMENTED --- # Reviewed — comments The review of `d3d885a7bb8d540743dfeebff0e0a0a7c9ddaf5e` is incomplete because most changed files were excluded as too large, so a merge decision is not justified. ## What I ran - Read the prepared description, commits, manifest, diff, and review README. Used the pinned repository reader for selected implementation ranges and searches. - Commands: none. No tests or build were run. ## Results | Check | Result | Note | |---|---|---| | Prepared change review | not run | Full changed-line coverage unavailable | | Targeted source inspection | passed | Read selected heap, draw, dispatch, and memory paths | | Tests and build | not run | No execution environment available | ## Findings ### Blocking None established from the code inspected. ### Non-blocking None. ## Not verified The review folder listed many changed files as excluded because they were too large, including core heap allocation and descriptor mapping, shader resource handling and emission, Vulkan device setup, and numerous tests. The Vulkan-Headers submodule was also unavailable as text. I read selected ranges from `HeapStages.cpp`, `Dispatch.cpp`, `Draw.cpp`, `GuestMemory.cpp`, `BindlessHeap.cpp`, `BindlessHeap.hpp`, and `RecycledShared.hpp`; this does not cover all added lines in those files or every changed file. No tests, build, or console behavior were verified. ## To get this to a good state Nothing is required. Optional: complete review of the excluded implementation and test files before relying on this review as a merge decision.
MarcZX10 commented 2026-11-15 19:42:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T19:42:50Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete because the change spans many files whose added lines and behavior were not inspected.

What I ran

Read the prepared PR bundle for head 46454e1523d4faa76395008f30eb4167a86be2fd; no tests or build commands were run.

Results

Check Result Note
Prepared bundle review not run Only selected portions were inspected
Tests and build not run No commands were run

Findings

Blocking

None identified in the portions inspected.

Non-blocking

  • Complete the review of the changed files before treating this as a merge decision. The change covers substantial GPU heap, shader, and Vulkan device code that was not inspected here.

Not verified

Read: review/description.md lines 1–200 of 502, review/commits.md lines 1–30 of 250, review/README.md lines 1–200 of 368, review/manifest.json lines 1–200 of 20,946, review/diff.patch lines 1–200 and 1,200–1,450 of 30,740, and core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp lines 1–220 of 802. The description, commit list, manifest, diff, and changed source files were not read in full. Many changed files were not inspected, including files listed by the manifest as excluded from the review folder because they were too large; the Vulkan-Headers submodule was also unavailable as plain text. No tests, build, merged-preview check, negative control, or physical-console behavior were verified.

To get this to a good state

Nothing is required. The optional point above is to complete the review before relying on it as a merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912518820 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5912518820). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T19:42:50Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete because the change spans many files whose added lines and behavior were not inspected. ## What I ran Read the prepared PR bundle for head `46454e1523d4faa76395008f30eb4167a86be2fd`; no tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Prepared bundle review | not run | Only selected portions were inspected | | Tests and build | not run | No commands were run | ## Findings ### Blocking None identified in the portions inspected. ### Non-blocking - Complete the review of the changed files before treating this as a merge decision. The change covers substantial GPU heap, shader, and Vulkan device code that was not inspected here. ## Not verified Read: `review/description.md` lines 1–200 of 502, `review/commits.md` lines 1–30 of 250, `review/README.md` lines 1–200 of 368, `review/manifest.json` lines 1–200 of 20,946, `review/diff.patch` lines 1–200 and 1,200–1,450 of 30,740, and `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp` lines 1–220 of 802. The description, commit list, manifest, diff, and changed source files were not read in full. Many changed files were not inspected, including files listed by the manifest as excluded from the review folder because they were too large; the Vulkan-Headers submodule was also unavailable as plain text. No tests, build, merged-preview check, negative control, or physical-console behavior were verified. ## To get this to a good state Nothing is required. The optional point above is to complete the review before relying on it as a merge decision.
MarcZX10 commented 2026-11-15 20:08:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T20:08:46Z.

Review: COMMENTED


Reviewed — comments

The change is large and the review is incomplete, so a formal approval is not justified.

What I ran

Reviewed the prepared diff at head d259fc13271a14eec91791ef619e6a1c600c1bd8 and read selected repository files through repo_read.py. No build or tests were run. The review folder’s files.json was not available through the reader.

Results

Check Result Note
Prepared diff inspection not run Read only the first 400 lines
Targeted source inspection passed Selected heap, stage, and range-index code
Tests and build not run No commands were run

Negative control

Not run.

Findings

Blocking

None identified in the portions read. This is not a conclusion about files that were not inspected.

Non-blocking

None.

Sources

Read review/description.md, review/commits.md, review/manifest.json, and the beginning of review/diff.patch; selected source ranges in BindlessHeap.cpp, HeapStages.cpp, PendingRangeIndex.hpp, and HeapTemplateBudget.hpp.

Not verified

The rest of the 30,740-line diff, most changed files, build behavior, test behavior, and runtime behavior were not verified. files.json was unavailable, so the set of files marked reviewed could not be checked. The Vulkan-Headers submodule content was not read.

To get this to a good state

Nothing is required. Optional: complete the review of the remaining changed files and run the relevant build and tests before making a formal decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912648045 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5912648045). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T20:08:46Z. **Review:** COMMENTED --- # Reviewed — comments The change is large and the review is incomplete, so a formal approval is not justified. ## What I ran Reviewed the prepared diff at head `d259fc13271a14eec91791ef619e6a1c600c1bd8` and read selected repository files through `repo_read.py`. No build or tests were run. The review folder’s `files.json` was not available through the reader. ## Results | Check | Result | Note | |---|---|---| | Prepared diff inspection | not run | Read only the first 400 lines | | Targeted source inspection | passed | Selected heap, stage, and range-index code | | Tests and build | not run | No commands were run | ## Negative control Not run. ## Findings ### Blocking None identified in the portions read. This is not a conclusion about files that were not inspected. ### Non-blocking None. ## Sources Read `review/description.md`, `review/commits.md`, `review/manifest.json`, and the beginning of `review/diff.patch`; selected source ranges in `BindlessHeap.cpp`, `HeapStages.cpp`, `PendingRangeIndex.hpp`, and `HeapTemplateBudget.hpp`. ## Not verified The rest of the 30,740-line diff, most changed files, build behavior, test behavior, and runtime behavior were not verified. `files.json` was unavailable, so the set of files marked `reviewed` could not be checked. The Vulkan-Headers submodule content was not read. ## To get this to a good state Nothing is required. Optional: complete the review of the remaining changed files and run the relevant build and tests before making a formal decision.
MarcZX10 commented 2026-11-15 22:35:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T22:35:01Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Exact head d259fc13271a14eec91791ef619e6a1c600c1bd8 (base 8d2cc516245f2f4afb36a03ebc21dcbf6b9563ad): four blocking defects were verified in the source, and the change is not approvable while the hosted checks are queued.

What I ran

  • Read the diff in full through part reviews, then verified each blocking claim against the exact source at the head commit.
  • tools/check_conventions.py --base 8d2cc51, with and without the PR title and body: passed.
  • git diff --check on the diff: one blank line at EOF in core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_capture_failure_tests.cmake:4.
  • Build: libs built without errors on head and base.
  • Tests: not valid yet. The full test build did not finish (it stopped at a Windows compile error in tests/execution/UploadCacheReadOnlyFlush.cpp:177, setenv not declared). A heap-only pass on head is partial and I have not attributed its failures; I have not used it as evidence here.
  • Negative control: not run.
  • Hosted checks on this head (eligibility, report, schema, library-portability, conventions, labels, pr) were queued when I read them.

Results

Check Result Note
Whitespace (git diff --check) failed one blank line at EOF
Convention checker passed with title and body
Blocking defects (source) failed four verified, below
Build (libs) passed head and base
Full test build not run did not finish
Negative control not run needs compiled test binaries
Hosted checks not run queued at review time

Findings

Blocking

  1. Request validation is skipped on the rvalue path. Recompiler.cpp:2664: the TryCreate(RecompileRequest&&, …) overload calls RequestInputInfo, while the const& overload (line 2658) calls ValidateRequestInputs. RequestInputInfo (line 159) does not validate vertex-family V#. Smallest fix: call ValidateRequestInputs in the && overload.

  2. Split compute pipelines ignore the descriptor heap. VulkanDevice.cpp:6427: splitComputePipeline always uses objects.layout and never checks objects.descriptorHeap. For heap-mode GPU objects the layout is never created (layout creation). Reached from the workgroup-split loop when a dispatch exceeds the device limit. Heap-mode only. Smallest fix: use the heap pipeline path with stored mappings, or require(!objects.descriptorHeap) as a stopgap.

  3. A test that passes without testing anything. tests/Recorder.cpp:10510: refreshProofTests returns early with only a log line when host imports, write watching or a watched host import are unavailable. main then prints "passed" and exits 0, so agc_storage_refresh_proofs passes with nothing tested. Smallest fix: return bool and return 77 from main on false, as rewrittenBlockTests already does.

  4. Windows build break in two heap test files. HeapDrawSample.cpp:181 and HeapDrawBench.cpp:181 call std::min after an unguarded #include <windows.h> with no NOMINMAX; HeapTableWalkReuse.cpp:113 has the same problem. HeapTableStageReuse.cpp already shows the guard pattern.

  5. Three new code comments, against the repository rule. CONTRIBUTING.md says: no comments except technical debt. Added comments at Graphics/include/FirstSampleCopy.hpp, tests/execution/DrawCacheRelocation.cpp and core/shader/recompiler/HeapTemplateBudget.hpp.

Non-blocking

  • Changes that are not heap-gated (with APS5_GPU_HEAP unset): the storage DCC key mismatch now goes to the T1 refresh (ShaderResources.cpp:4065–4068, base failed at 3871), and TouchAging is called on hits (Draw.cpp:4748, VulkanDevice.cpp:6960). Serializer version 60 is written for every request (RequestSerializer.cpp:919). If these are intended, please say so in the description.
  • APS5_GPU_HEAP is presence-based. BindlessHeap.cpp:74: APS5_GPU_HEAP=0 enables the heap. docs/user/USAGE.md says =1, docs/dev/ENVIRONMENT.md documents presence. Please align the three.
  • Numeric environment variables accept invalid input silently, for example APS5_HEAP_SLOT_CAP (BindlessHeap.cpp:235): strtoul without validation, so -1 removes the cap. Repository precedent is an error that names the variable. Other numeric variables (APS5_PUSHED_BUFFER_RECORDS, APS5_EMBEDDED_SAMPLER_CAP, APS5_HEAP_TEMPLATE_MIB, APS5_VERIFY_GPU_HEAP) are reported to have the same pattern; their parsers are not yet checked.
  • HeapDrawBench has no descriptor-heap skip, unlike HeapDrawSample (line 554). With APS5_GPU_HEAP set on a device without the extension it fails instead of skipping.
  • SampledCacheBudget calls heapHeldReleaseTests before its host-import skip (SampledCacheBudget.cpp:1563–1571), so it can fail instead of skipping without host imports. The function's own checks are not read.
  • Possible binding-kind aliasing in DescriptorBindingBuilder.cpp:756–759: bindings are reduced modulo 66, and the image table bindings (264, 265) alias kinds 0 and 1. Effect not measured.
  • NoStampAfter lacks a watched guard (GuestMemory.cpp:2838). On Windows write watching is never enabled, so this path is the one that runs; correctness depends on every guest write reaching the tracker. Heap mode only.

Sources

Permalinks above, all pinned to d259fc13271a14eec91791ef619e6a1c600c1bd8.

Not verified

  • Detile bounds on the addressed and heap paths (range push constants, not buffer size; guest tiled size not traced).
  • Full test suite and the heap tests on this head (see Results).
  • Negative control (planned on a copy, not run).
  • Hosted checks, queued at review time.
  • Vulkan validity of the VK_EXT_descriptor_heap calls against the spec.
  • Whether UploadCacheReadOnlyFlush.cpp:177 also fails on base (not reached on base).
  • Whether the agc_driver_heap_ring_draw_key abort ("a partial write of a packed color target is merged...") is an unsupported case the test should expect or a bug.

To get this to a good state

  1. Fix blocking items 1–5.
  2. Fix the Windows compile error in UploadCacheReadOnlyFlush.cpp (setenv), if it also reproduces on base, as a separate change.
  3. Settle the APS5_GPU_HEAP semantics and the default-path changes, and say so in the description.
  4. Rerun the build and the heap suites on the new head, and report the result per head.

This is not an approval. The change cannot be approved while the hosted checks are queued and the blocking items above stand.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913276178 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5913276178). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T22:35:01Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Exact head `d259fc13271a14eec91791ef619e6a1c600c1bd8` (base `8d2cc516245f2f4afb36a03ebc21dcbf6b9563ad`): four blocking defects were verified in the source, and the change is not approvable while the hosted checks are queued. ## What I ran - Read the diff in full through part reviews, then verified each blocking claim against the exact source at the head commit. - `tools/check_conventions.py --base 8d2cc51`, with and without the PR title and body: passed. - `git diff --check` on the diff: one blank line at EOF in `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_heap_walk_capture_failure_tests.cmake:4`. - Build: `libs` built without errors on head and base. - Tests: not valid yet. The full test build did not finish (it stopped at a Windows compile error in `tests/execution/UploadCacheReadOnlyFlush.cpp:177`, `setenv` not declared). A heap-only pass on head is partial and I have not attributed its failures; I have not used it as evidence here. - Negative control: not run. - Hosted checks on this head (`eligibility`, `report`, `schema`, `library-portability`, `conventions`, `labels`, `pr`) were queued when I read them. ## Results | Check | Result | Note | |---|---|---| | Whitespace (`git diff --check`) | failed | one blank line at EOF | | Convention checker | passed | with title and body | | Blocking defects (source) | failed | four verified, below | | Build (`libs`) | passed | head and base | | Full test build | not run | did not finish | | Negative control | not run | needs compiled test binaries | | Hosted checks | not run | queued at review time | ## Findings ### Blocking 1. **Request validation is skipped on the rvalue path.** [Recompiler.cpp:2664](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/shader/recompiler/Recompiler.cpp#L2664): the `TryCreate(RecompileRequest&&, …)` overload calls `RequestInputInfo`, while the `const&` overload ([line 2658](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/shader/recompiler/Recompiler.cpp#L2658)) calls `ValidateRequestInputs`. `RequestInputInfo` ([line 159](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/shader/recompiler/Recompiler.cpp#L159)) does not validate vertex-family V#. Smallest fix: call `ValidateRequestInputs` in the `&&` overload. 2. **Split compute pipelines ignore the descriptor heap.** [VulkanDevice.cpp:6427](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L6427): `splitComputePipeline` always uses `objects.layout` and never checks `objects.descriptorHeap`. For heap-mode GPU objects the layout is never created ([layout creation](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L6349)). Reached from the workgroup-split loop when a dispatch exceeds the device limit. Heap-mode only. Smallest fix: use the heap pipeline path with stored mappings, or `require(!objects.descriptorHeap)` as a stopgap. 3. **A test that passes without testing anything.** [tests/Recorder.cpp:10510](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L10510): `refreshProofTests` returns early with only a log line when host imports, write watching or a watched host import are unavailable. [main](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L16944) then prints "passed" and exits 0, so `agc_storage_refresh_proofs` passes with nothing tested. Smallest fix: return `bool` and return 77 from `main` on false, as `rewrittenBlockTests` already does. 4. **Windows build break in two heap test files.** [HeapDrawSample.cpp:181](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawSample.cpp#L181) and [HeapDrawBench.cpp:181](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawBench.cpp#L181) call `std::min` after an unguarded `#include <windows.h>` with no `NOMINMAX`; [HeapTableWalkReuse.cpp:113](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/execution/HeapTableWalkReuse.cpp#L113) has the same problem. [HeapTableStageReuse.cpp](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/execution/HeapTableStageReuse.cpp#L10) already shows the guard pattern. 5. **Three new code comments, against the repository rule.** [CONTRIBUTING.md](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/CONTRIBUTING.md) says: no comments except technical debt. Added comments at `Graphics/include/FirstSampleCopy.hpp`, `tests/execution/DrawCacheRelocation.cpp` and `core/shader/recompiler/HeapTemplateBudget.hpp`. ### Non-blocking - **Changes that are not heap-gated** (with `APS5_GPU_HEAP` unset): the storage DCC key mismatch now goes to the T1 refresh ([ShaderResources.cpp:4065–4068](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L4065), base failed at 3871), and `TouchAging` is called on hits ([Draw.cpp:4748](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp#L4748), [VulkanDevice.cpp:6960](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L6960)). Serializer version 60 is written for every request ([RequestSerializer.cpp:919](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L919)). If these are intended, please say so in the description. - **`APS5_GPU_HEAP` is presence-based.** [BindlessHeap.cpp:74](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp#L74): `APS5_GPU_HEAP=0` enables the heap. `docs/user/USAGE.md` says `=1`, `docs/dev/ENVIRONMENT.md` documents presence. Please align the three. - **Numeric environment variables accept invalid input silently**, for example `APS5_HEAP_SLOT_CAP` ([BindlessHeap.cpp:235](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp#L235)): `strtoul` without validation, so `-1` removes the cap. Repository precedent is an error that names the variable. Other numeric variables (`APS5_PUSHED_BUFFER_RECORDS`, `APS5_EMBEDDED_SAMPLER_CAP`, `APS5_HEAP_TEMPLATE_MIB`, `APS5_VERIFY_GPU_HEAP`) are reported to have the same pattern; their parsers are not yet checked. - **`HeapDrawBench` has no descriptor-heap skip**, unlike `HeapDrawSample` ([line 554](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/execution/HeapDrawSample.cpp#L554)). With `APS5_GPU_HEAP` set on a device without the extension it fails instead of skipping. - **`SampledCacheBudget` calls `heapHeldReleaseTests` before its host-import skip** ([SampledCacheBudget.cpp:1563–1571](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp#L1563)), so it can fail instead of skipping without host imports. The function's own checks are not read. - **Possible binding-kind aliasing** in [DescriptorBindingBuilder.cpp:756–759](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp#L756): bindings are reduced modulo 66, and the image table bindings (264, 265) alias kinds 0 and 1. Effect not measured. - **`NoStampAfter` lacks a watched guard** ([GuestMemory.cpp:2838](https://github.com/boykopovar/AnyPS5/blob/d259fc13271a14eec91791ef619e6a1c600c1bd8/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp#L2838)). On Windows write watching is never enabled, so this path is the one that runs; correctness depends on every guest write reaching the tracker. Heap mode only. ## Sources Permalinks above, all pinned to `d259fc13271a14eec91791ef619e6a1c600c1bd8`. ## Not verified - Detile bounds on the addressed and heap paths (range push constants, not buffer size; guest tiled size not traced). - Full test suite and the heap tests on this head (see Results). - Negative control (planned on a copy, not run). - Hosted checks, queued at review time. - Vulkan validity of the `VK_EXT_descriptor_heap` calls against the spec. - Whether `UploadCacheReadOnlyFlush.cpp:177` also fails on base (not reached on base). - Whether the `agc_driver_heap_ring_draw_key` abort ("a partial write of a packed color target is merged...") is an unsupported case the test should expect or a bug. ## To get this to a good state 1. Fix blocking items 1–5. 2. Fix the Windows compile error in `UploadCacheReadOnlyFlush.cpp` (`setenv`), if it also reproduces on base, as a separate change. 3. Settle the `APS5_GPU_HEAP` semantics and the default-path changes, and say so in the description. 4. Rerun the build and the heap suites on the new head, and report the result per head. This is not an approval. The change cannot be approved while the hosted checks are queued and the blocking items above stand.
MarcZX10 commented 2026-11-15 23:22:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T23:22:31Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Head 7938e1a633: two substantiated blocking defects, one on the heap path and one on the heap-off path. Both are visible in the code at this head.

What I ran

  • Head 7938e1a633f5cafec338adad957fe5dac0949654, base 8d2cc516245f2f4afb36a03ebc21dcbf6b9563ad (merge-base). Full diff read in 14 parts (358 files, +18163/-1659), each part reviewed by a separate reviewer; the blocking items below were checked by reading the code at this head.
  • No-build checks, from the AnyPS5 checkout:
python3 tools/check_conventions.py --base upstream/main --head 7938e1a633f5cafec338adad957fe5dac0949654
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9508
  • Nothing was built and no tests were run.

Results

Check Result Note
Conventions passed at head
Precheck: diff check, ABI audit, stack and mergeability, test quality passed report says "checks incomplete" by design; no build
Precheck: build and C++ tests not run no build in this pass
Hosted CI pending conventions, labels, eligibility, library portability, intake and report queued at the time of review

Findings

Blocking

  1. CMASK error buffer has no device-address usage, but its address is queried. core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp:551 creates cmaskErrors with VK_BUFFER_USAGE_STORAGE_BUFFER_BIT only. Line 555 then calls bufferAddress(cmaskErrors->Handle()), which calls vkGetBufferDeviceAddress (:235-238). The specification requires VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT for that query, so this is a validation error and undefined behaviour on the heap path. The address is then written into the push data the heap shader dereferences. Suggested fix: add the device-address bit when DescriptorHeapEnabled(), as the other heap buffers in VulkanDevice.cpp already do.

  2. Heap-off BDA reuse predicate changed. On the path without the heap, the reuse decision used to scan the SPIR-V (ShaderStoresThroughAddresses(shader.program->spirv), BASE ShaderResources.cpp:3126). It now reads the emitter flag shader.program->bdaStores (HEAD core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:3295). The same substitution is at Execution/src/Driver/Draw/Draw.cpp:263 and Graphics/src/Draw.cpp:2270. bdaStores is set only from state.bdaWritePointerFunction != 0 (SpirvEmitter.cpp:362). The two predicates are not shown to be equivalent, and the heap-off path must not change. The test that covered the scan, tests/BdaContracts.cpp (BASE lines 213-217), has been removed. Suggested fix: keep the old predicate on the heap-off path, or show equivalence with a test that fails on a store-through-address shader that has no bdaWritePointerFunction.

Non-blocking, or pending verification

  1. Possible out-of-bounds write in walk-read copy (not yet shown reachable). readWalkWord (Execution/src/Driver/Draw/HeapStages.cpp:358) records 4-byte reads at any address without an alignment check, while readWalkWords (:376) rejects misaligned addresses. copyRangeValues (:482-492) sizes each coalesced range as (end-begin)/4 words but copies end-begin bytes, so overlapping misaligned runs can write past the allocation. I have not confirmed that a guest can produce misaligned addresses on this walk. If it can, this becomes blocking. Question for the author: can ResourceMaterializer.cpp:856 or SrtEvaluator.cpp:277 be called with a non-4-aligned address?

  2. Heap-off INDEPENDENT_SETS gate. Graphics/src/Pipeline.cpp:631 now sets VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT only when context.graphicsPipelineLibrary is true. BASE line 596 had no such gate. Gating is probably a correction, since the flag comes from VK_EXT_graphics_pipeline_library, but it changes the heap-off path on devices without that extension. Please say so in the PR description and add a test, or explain why the old behaviour was invalid.

  3. Registered image views may be stale on heap-direct stages. Execution/src/Driver/Draw/DrawCapture.cpp:369-378 resets origin, heapReadWords, capture, forgetSerial and pushOffset but not registeredViews or supplied. The early return at :376-378 never sets registeredViews, and Draw.cpp:1108 reads stageCaptures[i].registeredViews for every stage. I did not find a heap path that consumes registeredImageViews, so this is not shown to produce wrong data. Resetting the field would remove the risk.

  4. Slots released without GPU completion (checked, probably covered). Texture::release and StorageTexture::release call ReleaseHeapSlots immediately (Texture.cpp:1550, :7775), while eviction uses Retire. The textures used by in-flight draws look retained through recorder->Keep (ShaderResources.cpp:1606,4533; Texture.cpp:120). Please confirm that every release path has such a reference, or make release deferred like eviction.

  5. Submitted runs before the submit can fail. Graphics/src/Recorder.cpp:4733 tags heap retirements with the serial before vkQueueSubmit. If the submit throws, those serials never complete and waiters block. Suggested fix: call Submitted after a successful submit.

  6. Other notes (unverified or minor).

    • BindlessHeap.cpp embeddedSamplerMapping: an exhausted sampler heap throws on the draw path instead of falling back (:1213-1215).
    • CreateHeapStagePipeline (:1489-1504) does not lock the pipeline cache, unlike its neighbours.
    • tests/execution/TessellationSubmit.cpp:256-257: the heap assertion is always true when the heap is off, and the test does not set APS5_GPU_HEAP itself.
    • tests/execution/HeapRingDrawKey.cpp:100 returns ColorMemory.size() (1024 bytes) for a 65536-byte block.
    • tests/execution/DrawUnsupportedBufferType.cpp:96: the message check is skipped when APS5_VERIFY_DRAW_DATA_HITS is set.

Sources

Not verified

  • Hosted CI on this head. The Windows and Linux product jobs are skipped on this repository's PR runs, so the GPU and runtime tests were not exercised by hosted CI.
  • No build, no ctest, no GPU run. The Vulkan validation comparison the PR reports is author-reported.
  • The 175-file part 13 (tests and CMake) was only scanned by grep. Its CMake TIMEOUT 60 entries and the MinGW guard on the new heap-template-budget test are open questions.
  • Callers outside the read set for findings 3, 5, 6 and 7.
  • Whether the PR's claimed PS5 and firmware measurements hold. They are author-reported and not reproduced.

To get this to a good state

  • Fix findings 1 and 2. Both are checkable by a unit test: a device-address query on a buffer without the usage bit fails, and a store-through-address shader without bdaWritePointerFunction keeps the heap-off predicate.
  • Answer question 3 and, if it is reachable, reject misaligned walk addresses.
  • Mention the layout-flag change (finding 4) in the PR description.
  • Re-review the new head after the hosted checks finish green. I will not approve before that.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913468149 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5913468149). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T23:22:31Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Head `7938e1a633`: two substantiated blocking defects, one on the heap path and one on the heap-off path. Both are visible in the code at this head. ## What I ran - Head `7938e1a633f5cafec338adad957fe5dac0949654`, base `8d2cc516245f2f4afb36a03ebc21dcbf6b9563ad` (merge-base). Full diff read in 14 parts (358 files, +18163/-1659), each part reviewed by a separate reviewer; the blocking items below were checked by reading the code at this head. - No-build checks, from the AnyPS5 checkout: ```sh python3 tools/check_conventions.py --base upstream/main --head 7938e1a633f5cafec338adad957fe5dac0949654 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9508 ``` - Nothing was built and no tests were run. ## Results | Check | Result | Note | | --- | --- | --- | | Conventions | passed | at head | | Precheck: diff check, ABI audit, stack and mergeability, test quality | passed | report says "checks incomplete" by design; no build | | Precheck: build and C++ tests | not run | no build in this pass | | Hosted CI | pending | conventions, labels, eligibility, library portability, intake and report queued at the time of review | ## Findings **Blocking** 1. **CMASK error buffer has no device-address usage, but its address is queried.** `core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp:551` creates `cmaskErrors` with `VK_BUFFER_USAGE_STORAGE_BUFFER_BIT` only. Line 555 then calls `bufferAddress(cmaskErrors->Handle())`, which calls `vkGetBufferDeviceAddress` (`:235-238`). The specification requires `VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT` for that query, so this is a validation error and undefined behaviour on the heap path. The address is then written into the push data the heap shader dereferences. Suggested fix: add the device-address bit when `DescriptorHeapEnabled()`, as the other heap buffers in `VulkanDevice.cpp` already do. 2. **Heap-off BDA reuse predicate changed.** On the path without the heap, the reuse decision used to scan the SPIR-V (`ShaderStoresThroughAddresses(shader.program->spirv)`, BASE `ShaderResources.cpp:3126`). It now reads the emitter flag `shader.program->bdaStores` (HEAD `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:3295`). The same substitution is at `Execution/src/Driver/Draw/Draw.cpp:263` and `Graphics/src/Draw.cpp:2270`. `bdaStores` is set only from `state.bdaWritePointerFunction != 0` (`SpirvEmitter.cpp:362`). The two predicates are not shown to be equivalent, and the heap-off path must not change. The test that covered the scan, `tests/BdaContracts.cpp` (BASE lines 213-217), has been removed. Suggested fix: keep the old predicate on the heap-off path, or show equivalence with a test that fails on a store-through-address shader that has no `bdaWritePointerFunction`. **Non-blocking, or pending verification** 3. **Possible out-of-bounds write in walk-read copy (not yet shown reachable).** `readWalkWord` (`Execution/src/Driver/Draw/HeapStages.cpp:358`) records 4-byte reads at any address without an alignment check, while `readWalkWords` (`:376`) rejects misaligned addresses. `copyRangeValues` (`:482-492`) sizes each coalesced range as `(end-begin)/4` words but copies `end-begin` bytes, so overlapping misaligned runs can write past the allocation. I have not confirmed that a guest can produce misaligned addresses on this walk. If it can, this becomes blocking. Question for the author: can `ResourceMaterializer.cpp:856` or `SrtEvaluator.cpp:277` be called with a non-4-aligned address? 4. **Heap-off `INDEPENDENT_SETS` gate.** `Graphics/src/Pipeline.cpp:631` now sets `VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT` only when `context.graphicsPipelineLibrary` is true. BASE line 596 had no such gate. Gating is probably a correction, since the flag comes from `VK_EXT_graphics_pipeline_library`, but it changes the heap-off path on devices without that extension. Please say so in the PR description and add a test, or explain why the old behaviour was invalid. 5. **Registered image views may be stale on heap-direct stages.** `Execution/src/Driver/Draw/DrawCapture.cpp:369-378` resets `origin`, `heapReadWords`, `capture`, `forgetSerial` and `pushOffset` but not `registeredViews` or `supplied`. The early return at `:376-378` never sets `registeredViews`, and `Draw.cpp:1108` reads `stageCaptures[i].registeredViews` for every stage. I did not find a heap path that consumes `registeredImageViews`, so this is not shown to produce wrong data. Resetting the field would remove the risk. 6. **Slots released without GPU completion (checked, probably covered).** `Texture::release` and `StorageTexture::release` call `ReleaseHeapSlots` immediately (`Texture.cpp:1550`, `:7775`), while eviction uses `Retire`. The textures used by in-flight draws look retained through `recorder->Keep` (`ShaderResources.cpp:1606,4533`; `Texture.cpp:120`). Please confirm that every release path has such a reference, or make release deferred like eviction. 7. **`Submitted` runs before the submit can fail.** `Graphics/src/Recorder.cpp:4733` tags heap retirements with the serial before `vkQueueSubmit`. If the submit throws, those serials never complete and waiters block. Suggested fix: call `Submitted` after a successful submit. 8. **Other notes (unverified or minor).** - `BindlessHeap.cpp` `embeddedSamplerMapping`: an exhausted sampler heap throws on the draw path instead of falling back (`:1213-1215`). - `CreateHeapStagePipeline` (`:1489-1504`) does not lock the pipeline cache, unlike its neighbours. - `tests/execution/TessellationSubmit.cpp:256-257`: the heap assertion is always true when the heap is off, and the test does not set `APS5_GPU_HEAP` itself. - `tests/execution/HeapRingDrawKey.cpp:100` returns `ColorMemory.size()` (1024 bytes) for a 65536-byte block. - `tests/execution/DrawUnsupportedBufferType.cpp:96`: the message check is skipped when `APS5_VERIFY_DRAW_DATA_HITS` is set. ## Sources - TextureDetiler CMASK buffer: https://github.com/boykopovar/AnyPS5/blob/7938e1a633f5cafec338adad957fe5dac0949654/core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp#L551-L555 - BDA predicate at head: https://github.com/boykopovar/AnyPS5/blob/7938e1a633f5cafec338adad957fe5dac0949654/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L3295 - Emitter flag: https://github.com/boykopovar/AnyPS5/blob/7938e1a633f5cafec338adad957fe5dac0949654/core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp#L362 - Removed test at base: https://github.com/boykopovar/AnyPS5/blob/8d2cc516245f2f4afb36a03ebc21dcbf6b9563ad/core/libs/prx/libSceAgcDriver/tests/BdaContracts.cpp#L213-L217 - Pipeline layout flag: https://github.com/boykopovar/AnyPS5/blob/7938e1a633f5cafec338adad957fe5dac0949654/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L631 ## Not verified - Hosted CI on this head. The Windows and Linux product jobs are skipped on this repository's PR runs, so the GPU and runtime tests were not exercised by hosted CI. - No build, no ctest, no GPU run. The Vulkan validation comparison the PR reports is author-reported. - The 175-file part 13 (tests and CMake) was only scanned by grep. Its CMake `TIMEOUT 60` entries and the MinGW guard on the new heap-template-budget test are open questions. - Callers outside the read set for findings 3, 5, 6 and 7. - Whether the PR's claimed PS5 and firmware measurements hold. They are author-reported and not reproduced. ## To get this to a good state - Fix findings 1 and 2. Both are checkable by a unit test: a device-address query on a buffer without the usage bit fails, and a store-through-address shader without `bdaWritePointerFunction` keeps the heap-off predicate. - Answer question 3 and, if it is reachable, reject misaligned walk addresses. - Mention the layout-flag change (finding 4) in the PR description. - Re-review the new head after the hosted checks finish green. I will not approve before that.
MarcZX10 commented 2026-11-16 01:48:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T01:48:07Z.

Review: COMMENTED


Reviewed — comments

Changes are required before merge: complete a review of the changed heap lifetime, shader emission, and cache paths; the available inspection did not establish whether they are safe to merge.

What I ran

Read the prepared description, commit list, manifest, and selected excerpts from the diff for head e86466657ea0a92029a35d82b095e1246caa4cd0. No tests or repository commands were run; the available reader exposed file reads only, not the specified search or command execution.

Results

Check Result Note
Prepared bundle review not run Only selected excerpts inspected
Tests not run No test execution available

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The change spans 1,000+ files. The diff was only partially read, and many changed source files are excluded from the prepared bundle for size. The available reader did not provide the specified search operation, so relevant callers and full changed implementations could not be inspected. No correctness, security, performance, or regression conclusion is supported for those unread areas. Files read: review/description.md, review/commits.md, review/manifest.json, and selected ranges of review/diff.patch. Files excluded: changed files marked included: false in review/manifest.json, including the Vulkan-Headers submodule and numerous oversized source and documentation files.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5914158989 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5914158989). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T01:48:07Z. **Review:** COMMENTED --- # Reviewed — comments Changes are required before merge: complete a review of the changed heap lifetime, shader emission, and cache paths; the available inspection did not establish whether they are safe to merge. ## What I ran Read the prepared description, commit list, manifest, and selected excerpts from the diff for head `e86466657ea0a92029a35d82b095e1246caa4cd0`. No tests or repository commands were run; the available reader exposed file reads only, not the specified search or command execution. ## Results | Check | Result | Note | |---|---|---| | Prepared bundle review | not run | Only selected excerpts inspected | | Tests | not run | No test execution available | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The change spans 1,000+ files. The diff was only partially read, and many changed source files are excluded from the prepared bundle for size. The available reader did not provide the specified search operation, so relevant callers and full changed implementations could not be inspected. No correctness, security, performance, or regression conclusion is supported for those unread areas. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, and selected ranges of `review/diff.patch`. Files excluded: changed files marked `included: false` in `review/manifest.json`, including the Vulkan-Headers submodule and numerous oversized source and documentation files. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-16 03:22:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T03:22:09Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this; the points below are optional.

What I ran

Inspected the prepared diff and selected source files at head df1b5041f1d58609acd06eb98beeb2586804ce0c. No build or tests were run. repo_read.py was unavailable as a command in this environment; I used the provided reader tools instead.

Results

Check Result Note
Diff and selected source inspection passed Partial review
Build and tests not run No execution environment
Negative control not run Could not run tests

Findings

Blocking

None identified in the inspected code.

Non-blocking

  • The review is incomplete: only four changed repository files were read, out of 358 changed files. Continue with a full review before treating this as a merge recommendation.

Sources

Not verified

Read changed repository files: core/libs/prx/libSceAgcDriver/Graphics/include/PendingRangeIndex.hpp, core/libs/prx/libSceAgcDriver/tests/PendingRangeIndex.cpp, selected ranges in core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp, and selected ranges in core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp. Also read the prepared description, commit list, manifest and diff. The manifest lists 358 changed files; 354 changed files were not read. Of the 37 files whose full text was included in the review folder, only two were read in full. 3rdparty/Vulkan-Headers was excluded as unsupported; other excluded files were not inspected. No runtime behavior, build, tests, or performance claims were independently verified.

To get this to a good state

Nothing is required. Optionally, complete inspection of the remaining changed files and run relevant checks before making a merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5914675686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5914675686). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T03:22:09Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this; the points below are optional. ## What I ran Inspected the prepared diff and selected source files at head `df1b5041f1d58609acd06eb98beeb2586804ce0c`. No build or tests were run. `repo_read.py` was unavailable as a command in this environment; I used the provided reader tools instead. ## Results | Check | Result | Note | |---|---|---| | Diff and selected source inspection | passed | Partial review | | Build and tests | not run | No execution environment | | Negative control | not run | Could not run tests | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking - The review is incomplete: only four changed repository files were read, out of 358 changed files. Continue with a full review before treating this as a merge recommendation. ## Sources - [Pending range index at reviewed head](https://github.com/boykopovar/AnyPS5/blob/df1b5041f1d58609acd06eb98beeb2586804ce0c/core/libs/prx/libSceAgcDriver/Graphics/include/PendingRangeIndex.hpp) - [Bindless heap slot management at reviewed head](https://github.com/boykopovar/AnyPS5/blob/df1b5041f1d58609acd06eb98beeb2586804ce0c/core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp) - [Vulkan descriptor heap initialization at reviewed head](https://github.com/boykopovar/AnyPS5/blob/df1b5041f1d58609acd06eb98beeb2586804ce0c/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp) ## Not verified Read changed repository files: `core/libs/prx/libSceAgcDriver/Graphics/include/PendingRangeIndex.hpp`, `core/libs/prx/libSceAgcDriver/tests/PendingRangeIndex.cpp`, selected ranges in `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp`, and selected ranges in `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`. Also read the prepared description, commit list, manifest and diff. The manifest lists 358 changed files; 354 changed files were not read. Of the 37 files whose full text was included in the review folder, only two were read in full. `3rdparty/Vulkan-Headers` was excluded as unsupported; other excluded files were not inspected. No runtime behavior, build, tests, or performance claims were independently verified. ## To get this to a good state Nothing is required. Optionally, complete inspection of the remaining changed files and run relevant checks before making a merge decision.
MarcZX10 commented 2026-11-16 20:33:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T20:33:43Z.

Review: COMMENTED


Reviewed — comments

The review covered the prepared diff and selected heap implementation paths at head bb796287c4a5a445db786d28c44dffbbc40d65d1; substantial changed code and tests remain unread, so a formal approval is not justified.

What I ran

No build or tests were run. I read the prepared description, commit list, manifest, diff excerpt, and selected repository files through repo_read.py.

Results

Check Result Note
Prepared change review not run Diff is extensive; only selected paths inspected
Build and tests not run No commands run

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

The changed paths inspected were core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp (lines 1–260), core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp (lines 1–260), core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp (lines 1–180), and the listed review documents. Most changed files were not read, including the remainder of these large implementation files, tests, shader changes, and the Vulkan-Headers submodule update. The full changed-file list is in the prepared manifest; many files were excluded from files/ because they were too large, unsupported, or deleted. No build, automated tests, or console behavior was verified.

To get this to a good state

Nothing is required. For a formal decision, review the remaining changed implementation and test files and run the relevant checks on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5927124908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5927124908). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T20:33:43Z. **Review:** COMMENTED --- # Reviewed — comments The review covered the prepared diff and selected heap implementation paths at head `bb796287c4a5a445db786d28c44dffbbc40d65d1`; substantial changed code and tests remain unread, so a formal approval is not justified. ## What I ran No build or tests were run. I read the prepared description, commit list, manifest, diff excerpt, and selected repository files through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Prepared change review | not run | Diff is extensive; only selected paths inspected | | Build and tests | not run | No commands run | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified The changed paths inspected were `core/libs/prx/libSceAgcDriver/Graphics/src/BindlessHeap.cpp` (lines 1–260), `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/HeapStages.cpp` (lines 1–260), `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` (lines 1–180), and the listed review documents. Most changed files were not read, including the remainder of these large implementation files, tests, shader changes, and the Vulkan-Headers submodule update. The full changed-file list is in the prepared manifest; many files were excluded from `files/` because they were too large, unsupported, or deleted. No build, automated tests, or console behavior was verified. ## To get this to a good state Nothing is required. For a formal decision, review the remaining changed implementation and test files and run the relevant checks on this head.
MarcZX10 commented 2026-11-17 01:31:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T01:31:04Z.

Review: COMMENTED


Partly reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head 7d4214c1f1f72298f18d204218b15d6f2d6fa945, base main. No merged-preview check, no build, no tests.
  • Read description.md, commits.md, the first 40 lines of manifest.json, and the house-rule sections. Searched diff.patch by pattern and read two hunks of it (around lines 3820–3849 and 6540–6569).
  • No shell commands. I used the file read and search tools only.

Results

Check Result Note
Validation layer gate (1.4.363) passed Matches the description
No code comments added passed No added // lines in the diff
Serializer version 60 not verified No match in the diff text
Slot counts 233415 and 524231 not verified Not in the diff text
Full code audit not run 366 changed files, about 2 MB diff
Build and tests not run Author-reported only

Findings

Blocking

  • None verified.

Non-blocking

  • The file is not resolved in the diff: diff.patch:6549. GpuHeapEnabled turns the heap on for any value of APS5_GPU_HEAP except 0, so false or an empty value enables it. The commit "read APS5_GPU_HEAP=0 as off and reject malformed heap settings" says malformed values are rejected, and this check does not do that. The smallest fix is to accept only 0 and 1 and throw on anything else, as the integer helper just above it does (diff.patch:6540).

Not verified

  • Most of the diff. I read two hunks of 366 changed files. The reviewed list in files.json was not read, so this is not a full review and not an approval.
  • manifest.json marks 3rdparty/Vulkan-Headers as not plain text, so the 1.4.340 bump was not checked.
  • The Hades II figures (frame times, presents, GPU busy) were not reproduced, and their traces were not opened.
  • The test results in the description are the author's. I did not run them.
  • Whether a layer's specVersion is its release version was not checked against the Vulkan loader.
  • The slot-cap arithmetic (57 slots per binding kind, 233415, 524231) was not checked.

To get this to a good state

Nothing is required. Optional: the APS5_GPU_HEAP value check described above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5931126311 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9508#pullrequestreview-5931126311). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T01:31:04Z. **Review:** COMMENTED --- # Partly reviewed — no blocking findings Nothing blocks this; the points below are optional. **What I ran** - Head `7d4214c1f1f72298f18d204218b15d6f2d6fa945`, base `main`. No merged-preview check, no build, no tests. - Read `description.md`, `commits.md`, the first 40 lines of `manifest.json`, and the house-rule sections. Searched `diff.patch` by pattern and read two hunks of it (around lines 3820–3849 and 6540–6569). - No shell commands. I used the file read and search tools only. **Results** | Check | Result | Note | |---|---|---| | Validation layer gate (1.4.363) | passed | Matches the description | | No code comments added | passed | No added `//` lines in the diff | | Serializer version 60 | not verified | No match in the diff text | | Slot counts 233415 and 524231 | not verified | Not in the diff text | | Full code audit | not run | 366 changed files, about 2 MB diff | | Build and tests | not run | Author-reported only | **Findings** **Blocking** - None verified. **Non-blocking** - The file is not resolved in the diff: `diff.patch:6549`. `GpuHeapEnabled` turns the heap on for any value of `APS5_GPU_HEAP` except `0`, so `false` or an empty value enables it. The commit "read APS5_GPU_HEAP=0 as off and reject malformed heap settings" says malformed values are rejected, and this check does not do that. The smallest fix is to accept only `0` and `1` and throw on anything else, as the integer helper just above it does (`diff.patch:6540`). **Not verified** - Most of the diff. I read two hunks of 366 changed files. The `reviewed` list in `files.json` was not read, so this is not a full review and not an approval. - `manifest.json` marks `3rdparty/Vulkan-Headers` as not plain text, so the 1.4.340 bump was not checked. - The Hades II figures (frame times, presents, GPU busy) were not reproduced, and their traces were not opened. - The test results in the description are the author's. I did not run them. - Whether a layer's `specVersion` is its release version was not checked against the Vulkan loader. - The slot-cap arithmetic (57 slots per binding kind, 233415, 524231) was not checked. **To get this to a good state** Nothing is required. Optional: the `APS5_GPU_HEAP` value check described above.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/9508:upstream-pr/9508'
git switch 'upstream-pr/9508'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/9508'
git switch 'upstream-pr/9508'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/9508'
git switch 'upstream-pr/9508'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/9508'
git switch 'main'
git merge --squash 'upstream-pr/9508'
git switch 'main'
git merge --ff-only 'upstream-pr/9508'
git switch 'main'
git merge 'upstream-pr/9508'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9508
No description provided.