perf(agc): take the texture detiler's Vulkan entry points from the device table #10764

Merged
milescoviello merged 3 commits from upstream-pr/10764 into main 2026-11-02 10:24:26 +00:00
milescoviello commented 2026-10-24 23:26:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-24T23:26:52Z.


What

Every detile, repack, image and CMASK dispatch of the texture detiler looked up vkUpdateDescriptorSets, vkCmdBindPipeline, vkCmdBindDescriptorSets, vkCmdPushConstants and vkCmdDispatch by name through vkGetDeviceProcAddr (Context::Function), and every descriptor set it allocated looked up vkAllocateDescriptorSets the same way. NVIDIA's vkGetDeviceProcAddr compares the name against its entry points, so this lookup cost is paid on the draw committer each time a draw creates a texture.

In Forspoken (PPSA03984) on main c8d34aa8f4, a 20 s DWARF profile of the whole process at 200 s (Linux, RTX 4070 Ti, NVIDIA 615.71.09, warm caches) put 21.7 % of all samples in vkGetDeviceProcAddr and the strcmp it calls, under TextureDetiler::Dispatch (18.3 %) and TextureDetiler::allocateFrom (3.4 %). The draw committer, which spent 82 % of its samples in ShaderResources::resolveImageBinding there, is the thread the title waits on.

How

  • TextureDetiler.cpp: the 22 per-dispatch calls in Dispatch, DispatchRepack, DispatchCmaskClear and DispatchImage take their entry points from the device's function table through Context::Resolved, as other recording paths (ShaderResources, the dispatch and draw recorders) already do. Resolved still falls back to a lookup when the context has no table.
  • TextureDetilerDescriptors.cpp: allocateFrom takes vkAllocateDescriptorSets the same way.
  • Object creation and destruction (pipelines, layouts, pools, modules) keep their one-time lookups.
  • DeviceProcLookups() (Context.hpp) is now defined in ShaderResources.cpp instead of inline, so a test executable and libSceAgcDriver count into one counter. On Windows each had its own inline thread_local copy, so the new test could not see the library's lookups (wachi35676).

Overlap (tools/pr_overlap.py, git merge-tree):

  • #10435 (ntamas94, PS4 depth HTILE) adds push.splitStride next to two vkCmdPushConstants lines this PR changes. Keeping both sides resolves it: their new line, then the Resolved call.
  • #9508 (Raghav314, the descriptor heap) splits Dispatch into an addressed path and the descriptor path, both still calling through Context::Function. Whichever lands second keeps #9508's paths and takes their calls from the table.
  • Other open PRs that touch TextureDetiler.cpp conflict with main already, so the tool couldn't compare them.

Tested

Linux (Ubuntu 26.04.1, GCC 15.2, Release, RTX 4070 Ti, NVIDIA 615.71.09) unless noted.

  • Red/green: agc_driver_graphics gains a case that gives the mock context a function table and counts DeviceProcLookups() across a second detile dispatch (after the first one built the pipeline and pool). With the test alone on main (d01680a012) it fails 3 of 3 with a detile dispatch looked up 6 Vulkan functions by name while the device's function table holds them; with this change it passes 3 of 3.
  • Red/green on Windows (after moving the counter into the library, 73165822ca; Windows 11 VM, GT 1030, driver 582.78, WinLibs GCC 15.2.0 r7): with this PR's test and main's TextureDetiler.cpp and TextureDetilerDescriptors.cpp (test/10764-red), agc_driver_graphics fails 3 of 3 with the same message as on Linux. With this head, the 9 tests pass 3 of 3, and 9 of 9 on the merge base c8d34aa8f4. On Linux the red branch fails the same way, and this head passes the 9 tests 3 of 3.
  • Windows, NVIDIA and AMD, run by wachi35676 (RTX 5070 Ti with 621.01 and an AMD Radeon RDNA2 iGPU with AMD proprietary 2026.04.17; Windows 11 10.0.26300, WinLibs GCC 15.2.0, Release): the 9 tests pass on both GPUs, on the earlier head 92e80bf347 (run) and on this head merged onto main 448450275f (re-check). Their first run found that the new case couldn't fail on Windows, because the test and the library each had their own inline counter; that is why the counter moved into the library. On this head, with main's TextureDetiler.cpp and TextureDetilerDescriptors.cpp, the case fails on both GPUs with the same message as on Linux.
  • Focused tests: the 9 tests matching ^agc_driver_graphics$|texture|tiled|detile|cmask|repack pass 3 of 3 on this head. On the Windows 11 VM (GT 1030, driver 582.78, WinLibs GCC 15.2.0 r7) the same 9 pass 3 of 3 on the merge base and on this head, with none skipped.
  • Khronos validation 1.4.363 over the same 9, each arm run as VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest -R "$R" -V -j4: 9 of 9 pass on main c8d34aa8f4 and on this head, with no layer-missing line and no VUID- message on either. Correction (10-27): only 3 of those 9 tests create a Vulkan device, so only they put the layer to work: agc_driver_cmask_fast_clear, agc_driver_image_repacked_float and agc_driver_image_volume_address_planar_texture. I counted Physical device selected per test on current main. The other six run on a test fixture's own device and never load the layer, so the clean result covers the three only.
  • Profile, Forspoken (PPSA03984 01.020.000), warm caches, 16 GB cap, 20 s of the whole process at 200 s:
    • main: __strcmp_avx2 21.7 % of all samples (plus strcmp@plt 2.3 %), from vkGetDeviceProcAddr under TextureDetiler::Dispatch (18.3 %) and TextureDetiler::allocateFrom (3.4 %).
    • This head: __strcmp_avx2 0.20 % and vkGetDeviceProcAddr 0.04 %. That run was in a lighter scene (draw commits at ~60 us), so it shows the lookups gone, not the saving in the heavier one.
  • Trace A/B, Forspoken, as the Performance report form describes (APS5_TRACE_SECONDS=130:60, no other trace or profile switch, warm, 6 runs interleaved PR/main). Traces, digests and summary lines: release on my fork.
    • Five of the six windows fell in the opening's texture-heavy stretch, where the draw committer is 92-94 % busy. Frame p50: main 11.9 / 7.2 / 8.4 s, this PR 10.2 / 8.7 s. The sixth (PR run 1) was already past that stretch at present 1204 and ran at 100.6 ms.
    • Frame time in that stretch varies with what the window happens to load more than this change can move it, so these runs show no measurable frame-time difference. I'm not claiming one.
  • Device loss, disclosed: PR trace run 3 lost the device at 207 s (compute shader 0x9009201900: AGC graphics: vkWaitForFences graphics: Vulkan result -4; the kernel logged Xid 31, an MMU fault on copy engine CE0 at an unmapped address). The same loss, at the same compute shader with the same message, happened on 10-22 on a branch that behaves like main there (my memo branch with its budget at 0). This change only changes where the same entry points are taken from. An 8-run interleaved check (4 runs each, 250 s, no trace or profile switch) lost the device once, on main: run 4 at 215 s, the same compute shader, message and Xid 31 copy-engine fault. Over the 20 runs of these three A/B sets, main and this head each lost the device once. The loss is an existing intermittent one on main, and I'm chasing it separately.

Performance captures

Forspoken (PPSA03984), the opening's texture-heavy stretch, APS5_TRACE_SECONDS=130:60, warm caches, same machine (Linux, RTX 4070 Ti, NVIDIA 615.71.09). The pair below is the closest-matched one (both windows start near present 550, both in the stretch where the draw committer is ~93 % busy); all six runs, their traces and digests are in the release on my fork. As said under Tested, frame time in this stretch moves with what each window loads, and these runs show no measurable difference.

main c8d34aa8f4 (run main-3):

{"commit":"c8d34aa8f4d8","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":545,"ms":61765.070},"presents":7,"frame_ms":{"p50":8353.530,"p90":10574.623,"p99":10574.623,"max":10574.623},"gpu_busy_ms_per_present":2721.586,"worker_busy_pct":{"queue worker 0x0":99.955,"queue worker 0x20":100.000,"queue worker 0x28":100.000},"top_phases_ms_per_frame":{"Driver.Packet":26410.875,"Driver.Packet.memory_wait":17276.406,"Graphics.Draw":8188.674,"Graphics.Draw.draw_and_resource_release":8133.743,"Resources.Complete":8127.382,"Driver.Packet.draw":7659.915,"Driver.Draw":7657.398,"Driver.Draw.draw_enqueued":7481.115},"trace_dropped":false,"trace":"aps5-trace-c8d34aa8f4d8-3.json.gz"}
tools/trace_digest.py

seconds 130:60 from present 545: 7 presents, frame p50 8353.5 / p90 10574.6 / p99 10574.6 / max 10574.6 ms, GPU busy 2721.6 ms per present
NVIDIA GeForce RTX 4070 Ti, NVIDIA 615.71.09, Linux 7.0.0-38-generic, 1920x1080, commit c8d34aa8f4, dropped: no

{"commit":"c8d34aa8f4d8","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":545,"ms":61765.07},"presents":7,"frame_ms":{"p50":8353.53,"p90":10574.623,"p99":10574.623,"max":10574.623},"gpu_busy_ms_per_present":2721.586,"worker_busy_pct":{"queue worker 0x0":99.955,"queue worker 0x20":100.0,"queue worker 0x28":100.0},"top_phases_ms_per_frame":{"Driver.Packet":26410.875,"Driver.Packet.memory_wait":17276.406,"Graphics.Draw":8188.674,"Graphics.Draw.draw_and_resource_release":8133.743,"Resources.Complete":8127.382,"Driver.Packet.draw":7659.915,"Driver.Draw":7657.398,"Driver.Draw.draw_enqueued":7481.115},"trace_dropped":false,"trace":"aps5-trace-c8d34aa8f4d8-3.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 549: 10574.6 ms at 34234 ms: Driver.Packet (queue worker 0x20) 10573.6, Driver.Packet (queue worker 0x28) 10545.0, Driver.Packet (queue worker 0x0) 10509.7, Driver.Packet.memory_wait (queue worker 0x28) 10426.9
  • present 547: 10297.1 ms at 16094 ms: Driver.Packet (queue worker 0x20) 10296.0, Driver.Packet (queue worker 0x28) 10245.3, Driver.Packet (queue worker 0x0) 10239.8, Driver.Packet.memory_wait (queue worker 0x28) 10218.4
  • present 550: 8603.4 ms at 44808 ms: Driver.Packet (queue worker 0x20) 8602.3, Driver.Packet (queue worker 0x0) 8548.4, Driver.Packet (queue worker 0x28) 8547.9, Driver.Packet.memory_wait (queue worker 0x20) 8431.2
  • present 551: 8353.5 ms at 53412 ms: Driver.Packet (queue worker 0x0) 8288.1, Driver.Packet (queue worker 0x20) 8211.8, Driver.Packet.memory_wait (queue worker 0x20) 7956.6, Graphics.Draw (draw committer) 7688.2
  • present 546: 8353.3 ms at 7741 ms: Driver.Packet (queue worker 0x28) 8353.0, Driver.Packet (queue worker 0x20) 8352.1, Driver.Packet (queue worker 0x0) 8275.7, Driver.Packet.memory_wait (queue worker 0x28) 8173.8

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 8647.6 (98 %) 112.6 (1 %) 63.4 354.9 Driver.Packet 8759.8, Driver.EndSubmission 0.3
draw committer 8165.6 (93 %) 161.5 (2 %) 496.6 119.5 Graphics.Draw 8139.8, Recorder.Submit 22.1
title 0.7 (0 %) 6.3 (0 %) 8816.6 9.8 Recorder.Sync 0.6, Shader.ResolveGraphicsAbi 0.0
queue worker 0x20 124.8 (1 %) 8677.4 (98 %) 21.3 3.8 Driver.Packet 8802.2, Driver.EndSubmission 0.0
queue worker 0x28 118.2 (1 %) 7781.6 (88 %) 923.9 1.2 Driver.Packet 7844.2, Driver.EndSubmission 55.5
presenter 1.5 (0 %) 0.0 (0 %) 8822.1 0.1 VideoOut.Flip 1.4, Driver.Present 0.1
gpu 2806.6 (32 %) 0.0 (0 %) 6016.9 0.0 batch 2806.6

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 25406.3, Driver.Packet.memory_wait 16332.3, Graphics.Draw 8140.4, Resources.Complete 8125.7, Graphics.Draw.draw_and_resource_release 8081.7, Driver.Packet.draw 7617.3, Driver.Draw 7614.5, Driver.Draw.draw_enqueued 7450.7, batch 2806.6, Driver.Packet.pipeline_drain 813.4

This PR 92e80bf347 (run pr-3):

{"commit":"92e80bf347e4","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":565,"ms":64880.961},"presents":7,"frame_ms":{"p50":8683.914,"p90":13434.869,"p99":13434.869,"max":13434.869},"gpu_busy_ms_per_present":3441.934,"worker_busy_pct":{"queue worker 0x0":99.962,"queue worker 0x20":99.800,"queue worker 0x28":83.344},"top_phases_ms_per_frame":{"Driver.Packet":26199.902,"Driver.Packet.memory_wait":16527.986,"Resources.Complete":8429.248,"Graphics.Draw":8420.208,"Graphics.Draw.draw_and_resource_release":8356.947,"Driver.Packet.draw":7717.086,"Driver.Draw":7714.371,"Driver.Draw.draw_enqueued":7531.801},"trace_dropped":false,"trace":"aps5-trace-92e80bf347e4-3.json.gz"}
tools/trace_digest.py

seconds 130:60 from present 565: 7 presents, frame p50 8683.9 / p90 13434.9 / p99 13434.9 / max 13434.9 ms, GPU busy 3441.9 ms per present
NVIDIA GeForce RTX 4070 Ti, NVIDIA 615.71.09, Linux 7.0.0-38-generic, 1920x1080, commit 92e80bf347e4, dropped: no

{"commit":"92e80bf347e4","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":565,"ms":64880.961},"presents":7,"frame_ms":{"p50":8683.914,"p90":13434.869,"p99":13434.869,"max":13434.869},"gpu_busy_ms_per_present":3441.934,"worker_busy_pct":{"queue worker 0x0":99.962,"queue worker 0x20":99.8,"queue worker 0x28":83.344},"top_phases_ms_per_frame":{"Driver.Packet":26199.902,"Driver.Packet.memory_wait":16527.986,"Resources.Complete":8429.248,"Graphics.Draw":8420.208,"Graphics.Draw.draw_and_resource_release":8356.947,"Driver.Packet.draw":7717.086,"Driver.Draw":7714.371,"Driver.Draw.draw_enqueued":7531.801},"trace_dropped":false,"trace":"aps5-trace-92e80bf347e4-3.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 571: 13434.9 ms at 51446 ms: Driver.Packet (queue worker 0x0) 13379.5, Driver.Packet (queue worker 0x20) 13306.0, Driver.Packet.memory_wait (queue worker 0x20) 12924.1, Graphics.Draw (draw committer) 12102.6
  • present 570: 12738.9 ms at 38707 ms: Driver.Packet (queue worker 0x20) 12737.6, Driver.Packet (queue worker 0x28) 12729.7, Driver.Packet (queue worker 0x0) 12674.9, Driver.Packet.memory_wait (queue worker 0x28) 12606.9
  • present 569: 9065.5 ms at 29642 ms: Driver.Packet (queue worker 0x20) 9064.6, Driver.Packet (queue worker 0x0) 8998.3, Driver.Packet (queue worker 0x28) 8992.2, Driver.Packet.memory_wait (queue worker 0x28) 8866.8
  • present 567: 8683.9 ms at 14069 ms: Driver.Packet (queue worker 0x20) 8682.7, Driver.Packet (queue worker 0x28) 8645.5, Driver.Packet (queue worker 0x0) 8626.2, Driver.Packet.memory_wait (queue worker 0x28) 8535.6
  • present 565: 8366.9 ms at 0 ms: Driver.Packet (queue worker 0x20) 8364.2, Driver.Packet (queue worker 0x0) 8306.9, Driver.Packet (queue worker 0x28) 8305.9, Driver.Packet.memory_wait (queue worker 0x28) 8164.7

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 9072.3 (98 %) 133.4 (1 %) 63.0 368.1 Driver.Packet 9205.5, Driver.EndSubmission 0.2
draw committer 8402.9 (91 %) 231.1 (2 %) 634.8 127.8 Graphics.Draw 8370.9, Recorder.Submit 31.3
title 0.2 (0 %) 0.5 (0 %) 9268.0 11.3 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.1
queue worker 0x20 186.9 (2 %) 9062.3 (98 %) 19.6 4.0 Driver.Packet 9249.1, Driver.EndSubmission 0.0
queue worker 0x28 150.4 (2 %) 7574.4 (82 %) 1543.9 1.3 Driver.Packet 7684.7, Driver.EndSubmission 40.1
presenter 1.0 (0 %) 0.0 (0 %) 9267.7 0.1 VideoOut.Flip 0.9, Driver.Present 0.1
gpu 3825.6 (41 %) 0.0 (0 %) 5443.1 0.0 batch 3825.6

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 26139.3, Driver.Packet.memory_wait 16528.0, Resources.Complete 8427.6, Graphics.Draw 8370.9, Graphics.Draw.draw_and_resource_release 8302.9, Driver.Packet.draw 7675.2, Driver.Draw 7671.9, Driver.Draw.draw_enqueued 7501.6, batch 3825.6, Driver.Packet.pipeline_drain 1063.2

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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none (it lowers the draw committer's cost in Forspoken, PPSA03984)
  • GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 615.71.09, Ubuntu 26.04.1; NVIDIA GeForce GT 1030, driver 582.78, Windows 11 VM; NVIDIA GeForce RTX 5070 Ti, driver 621.01, and AMD Radeon RDNA2 iGPU, AMD proprietary 2026.04.17, Windows 11 (wachi35676)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5000103693 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10764). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-24T23:26:52Z. --- ### What Every detile, repack, image and CMASK dispatch of the texture detiler looked up `vkUpdateDescriptorSets`, `vkCmdBindPipeline`, `vkCmdBindDescriptorSets`, `vkCmdPushConstants` and `vkCmdDispatch` by name through `vkGetDeviceProcAddr` (`Context::Function`), and every descriptor set it allocated looked up `vkAllocateDescriptorSets` the same way. NVIDIA's `vkGetDeviceProcAddr` compares the name against its entry points, so this lookup cost is paid on the draw committer each time a draw creates a texture. In Forspoken (PPSA03984) on `main` c8d34aa8f4, a 20 s DWARF profile of the whole process at 200 s (Linux, RTX 4070 Ti, NVIDIA 615.71.09, warm caches) put 21.7 % of all samples in `vkGetDeviceProcAddr` and the `strcmp` it calls, under `TextureDetiler::Dispatch` (18.3 %) and `TextureDetiler::allocateFrom` (3.4 %). The draw committer, which spent 82 % of its samples in `ShaderResources::resolveImageBinding` there, is the thread the title waits on. ### How - `TextureDetiler.cpp`: the 22 per-dispatch calls in `Dispatch`, `DispatchRepack`, `DispatchCmaskClear` and `DispatchImage` take their entry points from the device's function table through `Context::Resolved`, as other recording paths (`ShaderResources`, the dispatch and draw recorders) already do. `Resolved` still falls back to a lookup when the context has no table. - `TextureDetilerDescriptors.cpp`: `allocateFrom` takes `vkAllocateDescriptorSets` the same way. - Object creation and destruction (pipelines, layouts, pools, modules) keep their one-time lookups. - `DeviceProcLookups()` (`Context.hpp`) is now defined in `ShaderResources.cpp` instead of inline, so a test executable and `libSceAgcDriver` count into one counter. On Windows each had its own inline `thread_local` copy, so the new test could not see the library's lookups ([wachi35676](https://github.com/boykopovar/AnyPS5/pull/10764#issuecomment-6407141776)). **Overlap** (`tools/pr_overlap.py`, `git merge-tree`): - #10435 (ntamas94, PS4 depth HTILE) adds `push.splitStride` next to two `vkCmdPushConstants` lines this PR changes. Keeping both sides resolves it: their new line, then the `Resolved` call. - #9508 (Raghav314, the descriptor heap) splits `Dispatch` into an addressed path and the descriptor path, both still calling through `Context::Function`. Whichever lands second keeps #9508's paths and takes their calls from the table. - Other open PRs that touch `TextureDetiler.cpp` conflict with `main` already, so the tool couldn't compare them. ### Tested Linux (Ubuntu 26.04.1, GCC 15.2, Release, RTX 4070 Ti, NVIDIA 615.71.09) unless noted. - **Red/green:** `agc_driver_graphics` gains a case that gives the mock context a function table and counts `DeviceProcLookups()` across a second detile dispatch (after the first one built the pipeline and pool). With the test alone on `main` (`d01680a012`) it fails 3 of 3 with `a detile dispatch looked up 6 Vulkan functions by name while the device's function table holds them`; with this change it passes 3 of 3. - **Red/green on Windows** (after moving the counter into the library, 73165822ca; Windows 11 VM, GT 1030, driver 582.78, WinLibs GCC 15.2.0 r7): with this PR's test and `main`'s `TextureDetiler.cpp` and `TextureDetilerDescriptors.cpp` ([`test/10764-red`](https://github.com/milescoviello/AnyPS5/tree/test/10764-red)), `agc_driver_graphics` fails 3 of 3 with the same message as on Linux. With this head, the 9 tests pass 3 of 3, and 9 of 9 on the merge base `c8d34aa8f4`. On Linux the red branch fails the same way, and this head passes the 9 tests 3 of 3. - **Windows, NVIDIA and AMD**, run by wachi35676 (RTX 5070 Ti with 621.01 and an AMD Radeon RDNA2 iGPU with AMD proprietary 2026.04.17; Windows 11 10.0.26300, WinLibs GCC 15.2.0, Release): the 9 tests pass on both GPUs, on the earlier head `92e80bf347` ([run](https://github.com/boykopovar/AnyPS5/pull/10764#issuecomment-6407141776)) and on this head merged onto `main` `448450275f` ([re-check](https://github.com/boykopovar/AnyPS5/pull/10764#issuecomment-6468912537)). Their first run found that the new case couldn't fail on Windows, because the test and the library each had their own inline counter; that is why the counter moved into the library. On this head, with `main`'s `TextureDetiler.cpp` and `TextureDetilerDescriptors.cpp`, the case fails on both GPUs with the same message as on Linux. - **Focused tests:** the 9 tests matching `^agc_driver_graphics$|texture|tiled|detile|cmask|repack` pass 3 of 3 on this head. On the Windows 11 VM (GT 1030, driver 582.78, WinLibs GCC 15.2.0 r7) the same 9 pass 3 of 3 on the merge base and on this head, with none skipped. - **Khronos validation** 1.4.363 over the same 9, each arm run as `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest -R "$R" -V -j4`: 9 of 9 pass on `main` c8d34aa8f4 and on this head, with no layer-missing line and no `VUID-` message on either. Correction (10-27): only 3 of those 9 tests create a Vulkan device, so only they put the layer to work: `agc_driver_cmask_fast_clear`, `agc_driver_image_repacked_float` and `agc_driver_image_volume_address_planar_texture`. I counted `Physical device selected` per test on current `main`. The other six run on a test fixture's own device and never load the layer, so the clean result covers the three only. - **Profile, Forspoken (PPSA03984 01.020.000), warm caches, 16 GB cap, 20 s of the whole process at 200 s:** - `main`: `__strcmp_avx2` 21.7 % of all samples (plus `strcmp@plt` 2.3 %), from `vkGetDeviceProcAddr` under `TextureDetiler::Dispatch` (18.3 %) and `TextureDetiler::allocateFrom` (3.4 %). - This head: `__strcmp_avx2` 0.20 % and `vkGetDeviceProcAddr` 0.04 %. That run was in a lighter scene (draw commits at ~60 us), so it shows the lookups gone, not the saving in the heavier one. - **Trace A/B, Forspoken, as the Performance report form describes** (`APS5_TRACE_SECONDS=130:60`, no other trace or profile switch, warm, 6 runs interleaved PR/main). Traces, digests and summary lines: [release on my fork](https://github.com/milescoviello/AnyPS5/releases/tag/traces-detiler-device-functions). - Five of the six windows fell in the opening's texture-heavy stretch, where the draw committer is 92-94 % busy. Frame p50: `main` 11.9 / 7.2 / 8.4 s, this PR 10.2 / 8.7 s. The sixth (PR run 1) was already past that stretch at present 1204 and ran at 100.6 ms. - Frame time in that stretch varies with what the window happens to load more than this change can move it, so these runs show no measurable frame-time difference. I'm not claiming one. - **Device loss, disclosed:** PR trace run 3 lost the device at 207 s (`compute shader 0x9009201900: AGC graphics: vkWaitForFences graphics: Vulkan result -4`; the kernel logged Xid 31, an MMU fault on copy engine CE0 at an unmapped address). The same loss, at the same compute shader with the same message, happened on 10-22 on a branch that behaves like `main` there (my memo branch with its budget at 0). This change only changes where the same entry points are taken from. An 8-run interleaved check (4 runs each, 250 s, no trace or profile switch) lost the device once, on `main`: run 4 at 215 s, the same compute shader, message and Xid 31 copy-engine fault. Over the 20 runs of these three A/B sets, `main` and this head each lost the device once. The loss is an existing intermittent one on `main`, and I'm chasing it separately. ### Performance captures Forspoken (PPSA03984), the opening's texture-heavy stretch, `APS5_TRACE_SECONDS=130:60`, warm caches, same machine (Linux, RTX 4070 Ti, NVIDIA 615.71.09). The pair below is the closest-matched one (both windows start near present 550, both in the stretch where the draw committer is ~93 % busy); all six runs, their traces and digests are in the [release on my fork](https://github.com/milescoviello/AnyPS5/releases/tag/traces-detiler-device-functions). As said under Tested, frame time in this stretch moves with what each window loads, and these runs show no measurable difference. **`main` c8d34aa8f4 (run main-3):** ```json {"commit":"c8d34aa8f4d8","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":545,"ms":61765.070},"presents":7,"frame_ms":{"p50":8353.530,"p90":10574.623,"p99":10574.623,"max":10574.623},"gpu_busy_ms_per_present":2721.586,"worker_busy_pct":{"queue worker 0x0":99.955,"queue worker 0x20":100.000,"queue worker 0x28":100.000},"top_phases_ms_per_frame":{"Driver.Packet":26410.875,"Driver.Packet.memory_wait":17276.406,"Graphics.Draw":8188.674,"Graphics.Draw.draw_and_resource_release":8133.743,"Resources.Complete":8127.382,"Driver.Packet.draw":7659.915,"Driver.Draw":7657.398,"Driver.Draw.draw_enqueued":7481.115},"trace_dropped":false,"trace":"aps5-trace-c8d34aa8f4d8-3.json.gz"} ``` <details><summary>tools/trace_digest.py</summary> **seconds 130:60** from present 545: 7 presents, frame p50 8353.5 / p90 10574.6 / p99 10574.6 / max 10574.6 ms, GPU busy 2721.6 ms per present NVIDIA GeForce RTX 4070 Ti, NVIDIA 615.71.09, Linux 7.0.0-38-generic, 1920x1080, commit c8d34aa8f4d8, dropped: no ```json {"commit":"c8d34aa8f4d8","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":545,"ms":61765.07},"presents":7,"frame_ms":{"p50":8353.53,"p90":10574.623,"p99":10574.623,"max":10574.623},"gpu_busy_ms_per_present":2721.586,"worker_busy_pct":{"queue worker 0x0":99.955,"queue worker 0x20":100.0,"queue worker 0x28":100.0},"top_phases_ms_per_frame":{"Driver.Packet":26410.875,"Driver.Packet.memory_wait":17276.406,"Graphics.Draw":8188.674,"Graphics.Draw.draw_and_resource_release":8133.743,"Resources.Complete":8127.382,"Driver.Packet.draw":7659.915,"Driver.Draw":7657.398,"Driver.Draw.draw_enqueued":7481.115},"trace_dropped":false,"trace":"aps5-trace-c8d34aa8f4d8-3.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 549: 10574.6 ms at 34234 ms: Driver.Packet (queue worker 0x20) 10573.6, Driver.Packet (queue worker 0x28) 10545.0, Driver.Packet (queue worker 0x0) 10509.7, Driver.Packet.memory_wait (queue worker 0x28) 10426.9 - present 547: 10297.1 ms at 16094 ms: Driver.Packet (queue worker 0x20) 10296.0, Driver.Packet (queue worker 0x28) 10245.3, Driver.Packet (queue worker 0x0) 10239.8, Driver.Packet.memory_wait (queue worker 0x28) 10218.4 - present 550: 8603.4 ms at 44808 ms: Driver.Packet (queue worker 0x20) 8602.3, Driver.Packet (queue worker 0x0) 8548.4, Driver.Packet (queue worker 0x28) 8547.9, Driver.Packet.memory_wait (queue worker 0x20) 8431.2 - present 551: 8353.5 ms at 53412 ms: Driver.Packet (queue worker 0x0) 8288.1, Driver.Packet (queue worker 0x20) 8211.8, Driver.Packet.memory_wait (queue worker 0x20) 7956.6, Graphics.Draw (draw committer) 7688.2 - present 546: 8353.3 ms at 7741 ms: Driver.Packet (queue worker 0x28) 8353.0, Driver.Packet (queue worker 0x20) 8352.1, Driver.Packet (queue worker 0x0) 8275.7, Driver.Packet.memory_wait (queue worker 0x28) 8173.8 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 8647.6 (98 %) | 112.6 (1 %) | 63.4 | 354.9 | Driver.Packet 8759.8, Driver.EndSubmission 0.3 | | draw committer | 8165.6 (93 %) | 161.5 (2 %) | 496.6 | 119.5 | Graphics.Draw 8139.8, Recorder.Submit 22.1 | | title | 0.7 (0 %) | 6.3 (0 %) | 8816.6 | 9.8 | Recorder.Sync 0.6, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x20 | 124.8 (1 %) | 8677.4 (98 %) | 21.3 | 3.8 | Driver.Packet 8802.2, Driver.EndSubmission 0.0 | | queue worker 0x28 | 118.2 (1 %) | 7781.6 (88 %) | 923.9 | 1.2 | Driver.Packet 7844.2, Driver.EndSubmission 55.5 | | presenter | 1.5 (0 %) | 0.0 (0 %) | 8822.1 | 0.1 | VideoOut.Flip 1.4, Driver.Present 0.1 | | gpu | 2806.6 (32 %) | 0.0 (0 %) | 6016.9 | 0.0 | batch 2806.6 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 25406.3, Driver.Packet.memory_wait 16332.3, Graphics.Draw 8140.4, Resources.Complete 8125.7, Graphics.Draw.draw_and_resource_release 8081.7, Driver.Packet.draw 7617.3, Driver.Draw 7614.5, Driver.Draw.draw_enqueued 7450.7, batch 2806.6, Driver.Packet.pipeline_drain 813.4 </details> **This PR 92e80bf347 (run pr-3):** ```json {"commit":"92e80bf347e4","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":565,"ms":64880.961},"presents":7,"frame_ms":{"p50":8683.914,"p90":13434.869,"p99":13434.869,"max":13434.869},"gpu_busy_ms_per_present":3441.934,"worker_busy_pct":{"queue worker 0x0":99.962,"queue worker 0x20":99.800,"queue worker 0x28":83.344},"top_phases_ms_per_frame":{"Driver.Packet":26199.902,"Driver.Packet.memory_wait":16527.986,"Resources.Complete":8429.248,"Graphics.Draw":8420.208,"Graphics.Draw.draw_and_resource_release":8356.947,"Driver.Packet.draw":7717.086,"Driver.Draw":7714.371,"Driver.Draw.draw_enqueued":7531.801},"trace_dropped":false,"trace":"aps5-trace-92e80bf347e4-3.json.gz"} ``` <details><summary>tools/trace_digest.py</summary> **seconds 130:60** from present 565: 7 presents, frame p50 8683.9 / p90 13434.9 / p99 13434.9 / max 13434.9 ms, GPU busy 3441.9 ms per present NVIDIA GeForce RTX 4070 Ti, NVIDIA 615.71.09, Linux 7.0.0-38-generic, 1920x1080, commit 92e80bf347e4, dropped: no ```json {"commit":"92e80bf347e4","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"130:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA03984","title":"Forspoken","content_version":"01.020.000","resolution":"1920x1080","window":{"spec":"seconds 130:60","first_present":565,"ms":64880.961},"presents":7,"frame_ms":{"p50":8683.914,"p90":13434.869,"p99":13434.869,"max":13434.869},"gpu_busy_ms_per_present":3441.934,"worker_busy_pct":{"queue worker 0x0":99.962,"queue worker 0x20":99.8,"queue worker 0x28":83.344},"top_phases_ms_per_frame":{"Driver.Packet":26199.902,"Driver.Packet.memory_wait":16527.986,"Resources.Complete":8429.248,"Graphics.Draw":8420.208,"Graphics.Draw.draw_and_resource_release":8356.947,"Driver.Packet.draw":7717.086,"Driver.Draw":7714.371,"Driver.Draw.draw_enqueued":7531.801},"trace_dropped":false,"trace":"aps5-trace-92e80bf347e4-3.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 571: 13434.9 ms at 51446 ms: Driver.Packet (queue worker 0x0) 13379.5, Driver.Packet (queue worker 0x20) 13306.0, Driver.Packet.memory_wait (queue worker 0x20) 12924.1, Graphics.Draw (draw committer) 12102.6 - present 570: 12738.9 ms at 38707 ms: Driver.Packet (queue worker 0x20) 12737.6, Driver.Packet (queue worker 0x28) 12729.7, Driver.Packet (queue worker 0x0) 12674.9, Driver.Packet.memory_wait (queue worker 0x28) 12606.9 - present 569: 9065.5 ms at 29642 ms: Driver.Packet (queue worker 0x20) 9064.6, Driver.Packet (queue worker 0x0) 8998.3, Driver.Packet (queue worker 0x28) 8992.2, Driver.Packet.memory_wait (queue worker 0x28) 8866.8 - present 567: 8683.9 ms at 14069 ms: Driver.Packet (queue worker 0x20) 8682.7, Driver.Packet (queue worker 0x28) 8645.5, Driver.Packet (queue worker 0x0) 8626.2, Driver.Packet.memory_wait (queue worker 0x28) 8535.6 - present 565: 8366.9 ms at 0 ms: Driver.Packet (queue worker 0x20) 8364.2, Driver.Packet (queue worker 0x0) 8306.9, Driver.Packet (queue worker 0x28) 8305.9, Driver.Packet.memory_wait (queue worker 0x28) 8164.7 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 9072.3 (98 %) | 133.4 (1 %) | 63.0 | 368.1 | Driver.Packet 9205.5, Driver.EndSubmission 0.2 | | draw committer | 8402.9 (91 %) | 231.1 (2 %) | 634.8 | 127.8 | Graphics.Draw 8370.9, Recorder.Submit 31.3 | | title | 0.2 (0 %) | 0.5 (0 %) | 9268.0 | 11.3 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.1 | | queue worker 0x20 | 186.9 (2 %) | 9062.3 (98 %) | 19.6 | 4.0 | Driver.Packet 9249.1, Driver.EndSubmission 0.0 | | queue worker 0x28 | 150.4 (2 %) | 7574.4 (82 %) | 1543.9 | 1.3 | Driver.Packet 7684.7, Driver.EndSubmission 40.1 | | presenter | 1.0 (0 %) | 0.0 (0 %) | 9267.7 | 0.1 | VideoOut.Flip 0.9, Driver.Present 0.1 | | gpu | 3825.6 (41 %) | 0.0 (0 %) | 5443.1 | 0.0 | batch 3825.6 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 26139.3, Driver.Packet.memory_wait 16528.0, Resources.Complete 8427.6, Graphics.Draw 8370.9, Graphics.Draw.draw_and_resource_release 8302.9, Driver.Packet.draw 7675.2, Driver.Draw 7671.9, Driver.Draw.draw_enqueued 7501.6, batch 3825.6, Driver.Packet.pipeline_drain 1063.2 </details> ### 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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none (it lowers the draw committer's cost in Forspoken, PPSA03984) - [x] GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 615.71.09, Ubuntu 26.04.1; NVIDIA GeForce GT 1030, driver 582.78, Windows 11 VM; NVIDIA GeForce RTX 5070 Ti, driver 621.01, and AMD Radeon RDNA2 iGPU, AMD proprietary 2026.04.17, Windows 11 (wachi35676) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-24 23:29:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T23:29:35Z.

Review: APPROVED


Reviewed the device-function substitutions across detile, repack, CMASK clear, image dispatch, and descriptor allocation. The function-table test verifies that a warmed detile dispatch performs zero additional name lookups, and the reported Linux and Windows focused runs plus the main/change Vulkan-validation comparison cover the behavioral risk. The recorded profile isolates repeated work on the draw-committer path, so this is a concrete optimization with evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640594521 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10764#pullrequestreview-5640594521). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T23:29:35Z. **Review:** APPROVED --- Reviewed the device-function substitutions across detile, repack, CMASK clear, image dispatch, and descriptor allocation. The function-table test verifies that a warmed detile dispatch performs zero additional name lookups, and the reported Linux and Windows focused runs plus the main/change Vulkan-validation comparison cover the behavioral risk. The recorded profile isolates repeated work on the draw-committer path, so this is a concrete optimization with evidence.
MarcZX10 commented 2026-10-29 09:40:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:40:05Z.

Review: APPROVED


Re-checked — approved

The current-main rebase preserves the device-table substitutions from the previously reviewed head. It also keeps main's splitStride push-constant additions at the two detiler dispatch sites. The author reports the focused graphics/texture/detile/CMASK/repack set passing 10 tests, 3/3 runs on the rebased Linux RTX 4070 Ti build.

What I checked

  • Reviewed exact head 2705c900a2a9d93ac4106b9b0546a92fc2ee8ec0 on current main aaccd0ba39b7d40fdbf19664575a7e567d8542f7.
  • Inspected the updated device-function counter placement, texture detiler calls, descriptor allocation, and the new main-side push-constant integration.
  • Confirmed the author's report covers 10 focused tests, 3 runs each on the rebased head.
  • Hosted conventions, labels and eligibility checks are pending at the time of review; product jobs are skipped by the current workflow selection.

I did not run a local C++/GPU build or reproduce the benchmark. The exact-head focused test evidence above is author-reported. No blocking source issue found; approval covers this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695633079 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10764#pullrequestreview-5695633079). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:40:05Z. **Review:** APPROVED --- # Re-checked — approved The current-main rebase preserves the device-table substitutions from the previously reviewed head. It also keeps `main`'s `splitStride` push-constant additions at the two detiler dispatch sites. The author reports the focused graphics/texture/detile/CMASK/repack set passing 10 tests, 3/3 runs on the rebased Linux RTX 4070 Ti build. ## What I checked - Reviewed exact head `2705c900a2a9d93ac4106b9b0546a92fc2ee8ec0` on current `main` `aaccd0ba39b7d40fdbf19664575a7e567d8542f7`. - Inspected the updated device-function counter placement, texture detiler calls, descriptor allocation, and the new main-side push-constant integration. - Confirmed the author's report covers 10 focused tests, 3 runs each on the rebased head. - Hosted conventions, labels and eligibility checks are pending at the time of review; product jobs are skipped by the current workflow selection. I did not run a local C++/GPU build or reproduce the benchmark. The exact-head focused test evidence above is author-reported. No blocking source issue found; approval covers this head.
MarcZX10 commented 2026-11-01 02:35:08 +00:00 (Migrated from github.com)

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

Review: APPROVED


Re-checked — new head, looks good

The rebase keeps the previously reviewed detiler function-table change, and the additional test-link fix now uses the driver library’s shared lookup counter.

What I ran

Reviewed head 2781d72d189afdb8f314212c01ae803b1ec3e51b against the PR’s current base. Its merge preview against current main cf79276fee2f042feb6a7c71d0d6a27e9cfe2592 is clean. Environment: Debian Linux x86-64, Python 3.11.2; no local C++ or GPU build.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10764
git diff cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...2781d72d189afdb8f314212c01ae803b1ec3e51b -- core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetilerDescriptors.cpp core/libs/prx/libSceAgcDriver/tests/TextureDetiler.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake

Results

Check Result
Diff, conventions and current-main merge preview Passed.
Hosted checks Eligibility, conventions, library portability, labels, report and Windows passed; Linux and specialized build jobs were skipped.
Author-reported tests Linux full build passed; the focused allocation/graphics tests passed 6/6, and the graphics/detiler set passed 9/9 in each of three runs. I did not reproduce these locally.
Optional local ABI/test-quality helpers Unavailable in the isolated PR snapshot.

Findings

Blocking

None found in the updated head.

Non-blocking

I did not independently reproduce the build, GPU tests or performance measurement. The author reports the C++ implementation is unchanged from the previously reviewed version; the new commit fixes the standalone test’s link to the shared driver lookup counter.

Sources

Not verified

I did not run a local C++ build, GPU tests or performance capture. Linux and specialized hosted build jobs were skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5726084574 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10764#pullrequestreview-5726084574). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T02:35:08Z. **Review:** APPROVED --- # Re-checked — new head, looks good The rebase keeps the previously reviewed detiler function-table change, and the additional test-link fix now uses the driver library’s shared lookup counter. ## What I ran Reviewed head `2781d72d189afdb8f314212c01ae803b1ec3e51b` against the PR’s current base. Its merge preview against current `main` `cf79276fee2f042feb6a7c71d0d6a27e9cfe2592` is clean. Environment: Debian Linux x86-64, Python 3.11.2; no local C++ or GPU build. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 10764 git diff cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...2781d72d189afdb8f314212c01ae803b1ec3e51b -- core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetilerDescriptors.cpp core/libs/prx/libSceAgcDriver/tests/TextureDetiler.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake ``` ## Results | Check | Result | |---|---| | Diff, conventions and current-main merge preview | Passed. | | Hosted checks | Eligibility, conventions, library portability, labels, report and Windows passed; Linux and specialized build jobs were skipped. | | Author-reported tests | Linux full build passed; the focused allocation/graphics tests passed 6/6, and the graphics/detiler set passed 9/9 in each of three runs. I did not reproduce these locally. | | Optional local ABI/test-quality helpers | Unavailable in the isolated PR snapshot. | ## Findings ### Blocking None found in the updated head. ### Non-blocking I did not independently reproduce the build, GPU tests or performance measurement. The author reports the C++ implementation is unchanged from the previously reviewed version; the new commit fixes the standalone test’s link to the shared driver lookup counter. ## Sources - [Current PR diff](https://github.com/boykopovar/AnyPS5/compare/cf79276fee2f042feb6a7c71d0d6a27e9cfe2592...2781d72d189afdb8f314212c01ae803b1ec3e51b) - [Author’s exact-head build and test report](https://github.com/boykopovar/AnyPS5/pull/10764#issuecomment-6552007598) ## Not verified I did not run a local C++ build, GPU tests or performance capture. Linux and specialized hosted build jobs were skipped.
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!10764
No description provided.