Skip to content

perf(shader): balance dense runtime image dispatch - #12299

Closed
Filip722 wants to merge 23 commits into
boykopovar:mainfrom
Filip722:perf/shader-balanced-image-dispatch
Closed

Filip722 wants to merge 23 commits into
boykopovar:mainfrom
Filip722:perf/shader-balanced-image-dispatch

Conversation

@Filip722

@Filip722 Filip722 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What

Reviewer-requested evidence remains outstanding (2026-11-07). Kept open for investigation. The November 1 captures below do not demonstrate a repeatable gain. Source inspection of main 4204951e771ee2ec2e71507e5390ee2c9b6e9238 and PR head 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6 found no runtime-selected workload eligible for the balanced-tree path: direct-image selectors are specialization constants in both registration and non-registration paths, while this PR excludes image/sampler tables. This is source analysis, not a new build, hardware test or performance capture. The requested named runtime case and repeatable matched current-main benefit are still missing; this request is not resolved.

Express distinct direct-image mode dispatch as a balanced tree while retaining #8716's switch for equivalent modes. The original motivation was a runtime selector; merged #11952 now specializes that selector, so the historical runtime-chain benefit cannot be presumed to remain on current main. The refreshed diagnostic pair below demonstrates no performance gain.

  • Dispatch dense direct-image results with a balanced tree using the existing structured-selection helper.
  • Preserve every image-mode body and invalid-selector exit. Tables, sampler guards, writes and loop continuations retain their current dispatch.
  • Keep runtime registration-module reuse; no new specialization, pipeline variant, mode-count threshold or title-specific behavior.

The production change is confined to EmitImage. In a historical standalone focused RADV robust2 GPL compilation, the loaded game fragment changed 1,911 → 1,821 native instructions and 9,104 → 8,744 code bytes, retaining 32 VGPRs, 128 SGPRs and zero spills. Static branches increase 47 → 73, while the executed first-mode path skips the membership chain and later sequential checks. This is a focused compiler observation, not exact linked-capture ISA or an elapsed-time estimate.

PR #8716 deduplicates equivalent case bodies while retaining OpSwitch. This branch incorporates its refreshed head 45998c33789b as the declared prerequisite. Current main includes #11952's direct-mode specialization; the updated comparison keeps that code and #8716 identical in both arms.

Tested

Historical integration refresh, 2026-11-01 (exact revisions below). Head 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6 incorporates pinned main 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e and refreshed prerequisite #8716 45998c33789bc84b5a07a10260ece689b1d9cbde, preserving history. Baseline 7673d25f370dae11690a3ec0ea04b061b5791118 is that same main plus the same prerequisite. Their source difference is exactly the 40-line balanced-dispatch addition; fixtures and all other sources match.

Both exact trees pass all eight focused tests: agc_shader_memory, agc_driver_depth_plane_sampling, agc_driver_image_address_dimension, agc_driver_image_plane_bias_on_single_level_volume, agc_driver_image_sample_unnormalized, agc_driver_image_table, agc_driver_pixel_implicit_derivatives, and agc_driver_prepared_graphics. Author runs used required Vulkan, shader-cache bypass and Khronos validation with verbose CTest on Radeon 760M, private RADV Mesa 26.2.6/libdrm 2.4.133, Debian 13/Linux 7.2.12-x64v3-xanmod1. Each arm verified seven actual instance/device-layer insertions and the selected private Radeon driver, with no VUIDs, synchronization hazards, missing layers or skips. The historical image-table allocation failure does not reproduce in this setup.

The requested downstream refresh retains the separate-heap-source fixture correction, both equivalent-mode switch assertions and current upstream shader changes. Main's current write-watch registrations are retained exactly; the former macOS registration workaround leaves no diff against main.

One predetermined diagnostic AB pair followed two ordinary trace-enabled warmups per arm. Mean frame time is 21.827840 → 21.911022 ms (candidate 0.083182 ms / 0.381% higher); GPU busy time is 18.841 → 18.805 ms/present. This single pair establishes neither a repeatable gain nor a regression, and supplies no renewed performance justification. No timing-based exclusions, replacements or additional pairs were collected. Both measured runs passed scene/input/focus/geometry, per-arm cache-content, loaded-library/driver and complete-trace gates.

PPSA28997 01.008.001, restored stationary camp, same copied save with resolutionIndex=6 requesting 2560×1440 internal rendering, 1920×1080 presentation, active 1152×648 Wayland client, mailbox; Ryzen 5 7640HS/Radeon 760M. Physical internal image allocation/extent was not independently verified for these builds. Both carry the identical private first-present/screenshot observer (dirty:true); no screenshots or input occurred in the timed window. Only AGC and VideoOut binary hashes differ: VideoOut's entire difference is 12 verified telemetry commit-literal bytes, with identical source and all other bytes matching.

Both original timing traces, full summaries, trace digests, protocol and provenance hashes are attached as lossless text chunks with a SHA-256-verifying decoder. Only timing evidence is public; game-derived files, saves, images, shaders, ISA, native libraries, hardware captures and console logs remain private.

Summary lines for the sole pair, baseline then candidate:

{"commit":"7673d25f370d","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"25:12"},"gpu":"AMD Radeon 760M Graphics (RADV PHOENIX)","driver":"radv Mesa 26.2.6","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 25:12","first_present":946,"ms":12005.312},"presents":550,"frame_ms":{"p50":21.871,"p90":22.309,"p99":22.823,"max":27.835},"gpu_busy_ms_per_present":18.841,"worker_busy_pct":{"queue worker 0x0":74.972},"top_phases_ms_per_frame":{"Driver.Packet":16.261,"Driver.Packet.draw":14.076,"Driver.Draw":14.039,"Driver.Draw.draw_enqueued":10.753,"Recorder.Sync":9.889,"VideoOut.Flip":4.485,"Driver.Present":4.449,"VideoOut.Flip.present":4.447},"trace_dropped":false,"trace":"aps5-trace-7673d25f370d-1142990.json.gz"}
{"commit":"12367bdb6c32","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"25:12"},"gpu":"AMD Radeon 760M Graphics (RADV PHOENIX)","driver":"radv Mesa 26.2.6","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 25:12","first_present":929,"ms":12007.24},"presents":548,"frame_ms":{"p50":21.956,"p90":22.437,"p99":23.098,"max":24.312},"gpu_busy_ms_per_present":18.805,"worker_busy_pct":{"queue worker 0x0":75.182},"top_phases_ms_per_frame":{"Driver.Packet":16.365,"Driver.Packet.draw":14.157,"Driver.Draw":14.122,"Driver.Draw.draw_enqueued":10.776,"Recorder.Sync":9.946,"VideoOut.Flip":4.481,"Driver.Present":4.447,"VideoOut.Flip.present":4.444},"trace_dropped":false,"trace":"aps5-trace-12367bdb6c32-1143997.json.gz"}

trace_digest.py summary excerpts:

**seconds 25:12** from present 946: 550 presents, frame p50 21.9 / p90 22.3 / p99 22.8 / max 27.8 ms, GPU busy 18.8 ms per present
AMD Radeon 760M Graphics (RADV PHOENIX), radv Mesa 26.2.6, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 7673d25f370d (dirty), dropped: no
**seconds 25:12** from present 929: 548 presents, frame p50 22.0 / p90 22.4 / p99 23.1 / max 24.3 ms, GPU busy 18.8 ms per present
AMD Radeon 760M Graphics (RADV PHOENIX), radv Mesa 26.2.6, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 12367bdb6c32 (dirty), dropped: no

The new selector specialization materially affects the original performance rationale. The earlier approved report below remains historical evidence for its named revisions, and is neither pooled with this pair nor relabeled as testing this head. Reviewer acceptance of the updated change and its remaining value is still open.

Historical evidence for the exact revisions named below.

Review correction on 2026-10-31: head 5e4b0682fce7c05cb6c1aa08f24948f34eaf19cf incorporates main 474030e58424fefdb65e5df9f3820810fbb4553c with a history-preserving merge. The runtime-image fixture now gives its column a separate four-dword heap source, matching ResourceTracker; no production behavior changed in this correction. This addresses jotitadev's reported interaction with #9749 without weakening nested-table validation or importing #9749 into this branch.

On current main plus the previous PR head plus #9749 (da431b6a63ca), agc_shader_memory reproduced the reported nested-image-table rejection. The four-line fixture correction makes that combined test pass, retaining the dispatch assertions. Current main and this corrected PR separately ran the same eight focused tests listed below: 7/8 pass on each, with the same existing agc_driver_image_table descriptor-allocation failure (-1000069000). Each run verified seven Radeon 760M executions and seven Khronos instance/device-layer insertions; no VUID errors, missing layers or skips. Hardware/driver: AMD Ryzen 5 7640HS / Radeon 760M, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7, Linux 7.2.12-x64v3-xanmod1. Required Vulkan and disabled shader cache were used with verbose CTest.

The full overlap scan covered 1,681 open PRs. Manual review of all 18 base-conflicted shared-file branches found no duplicate fixture correction. A real unresolved conflict with #10867 remains in the base-level sampling code inherited from #8716; #10867 changes compute derivative/LOD handling, not this dispatch mechanism. The branches will need a coordinated refresh when either lands. #8716 remains the declared prerequisite; this update does not claim that all other open PRs compose cleanly.

CI correction on 2026-10-31: head 37d4bd020c7b059abdf48c56e37add477f505409 removes the duplicate fault-test registration loop from core/libs/tests/write_watch/CMakeLists.txt (five deletions, no shader/runtime behavior change). The previous run failed on duplicate write_watch_execute-fault and write_watch_read-fault names. Local CMake configuration now succeeds and all 18 tests are registered once with their original arguments and 30-second timeouts. Both actual macOS write-watch jobs now pass on this head: Intel, Arm. Other CI jobs are tracked in that run; this does not claim new shader/GPU or gameplay validation.

No new gameplay cohort was run for this fixture correction. The measurements and trace digests below remain historical evidence for their named revisions, not a fresh-main speed claim or confirmation under the later four-pair acceptance protocol.

Historical performance evidence follows. Refreshed exact head ca770b73f881ed05979a87d4f133f5d572fad1fa incorporates main 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5, selected live for this update, using a history-preserving merge. The measured baseline is bf134c54d635e5c6d6ea73547210ea0f8e6de1fd. The declared #8716 prerequisite is identical in both arms; this isolates downstream #12299 rather than attributing the combined change to this PR.

Focused comparison: 7/8 pass on both sides; the same pre-existing image-table descriptor-allocation failure (-1000069000) remains on both sides. Tests: agc_shader_memory, agc_driver_depth_plane_sampling, agc_driver_image_address_dimension, agc_driver_image_plane_bias_on_single_level_volume, agc_driver_image_sample_unnormalized, agc_driver_image_table, agc_driver_pixel_implicit_derivatives, agc_driver_prepared_graphics. Baseline fixture overlays, if present, contain only the corresponding PR assertions. Both verbose logs verify the physical AMD Radeon760M (RADV PHOENIX) and actual Khronos validation (7 baseline / 7 candidate insertions), required Vulkan and disabled shader cache. Zero VUID errors, missing layers or skips. Release full-native libraries and focused targets build; conventions and whitespace checks pass. Driver/OS: RADV Mesa25.0.7-2+deb13u1, Debian13/Linux7.2.12-x64v3-xanmod1; Ryzen5 7640HS.

Three predeclared warmed pairs A1,B1,B2,A2,A3,B3, all audited. Mean FPS 19.89557 → 20.06535 (+0.853%); mean GPU work 46.893 → 46.480 ms/present.

Pair Order Baseline FPS PR FPS FPS change Baseline GPU ms/present PR GPU ms/present
1 AB 19.82672 20.01862 +0.968% 47.024 46.557
2 BA 19.97072 20.07031 +0.499% 46.843 46.481
3 AB 19.88926 20.10712 +1.095% 46.811 46.401

Baseline FPS range 19.82672–19.97072; candidate 20.01862–20.10712. FPS improves in 3/3 pairs and GPU work is lower in 3/3. Candidate FPS exceeds the entire baseline run range. The observed direction repeats across these samples, with no cross-title/vendor/session claim.

PPSA28997 v01.008.001 stationary camp; same copied save/seven fixed inputs, 1920×1080 internal/output, focused1152×648 Wayland client, mailbox. Each arm ran once to warm its caches, then restarted with fresh copies of its independently warmed shader/driver caches for each capture, seconds90:12. Default buffer, only permitted TRACE_SECONDS/TRACE_DIR; no other TRACE/PROFILE settings and no redirected game log. Game stdout/stderr inherited the terminal. Identical attached screenshot-signal/startup-clock observer is disclosed by dirty flags, removed from source after freezing libraries, and never committed. All50 loaded native and9 guest libraries match the frozen hashes. Scene/focus/input/cache/library/drop audits pass for every capture. No timed numerical exclusions, added repetitions, competing builds or GPU work. Setup interruptions, if any, are disclosed in the attached protocol. Screenshots remain private.

All six original lossless traces, full summaries/digests, paired results, protocol, hashes and common observer. All 43 published files and six decoded original trace hashes were verified after download. Timing-only public evidence; no game files, saves, screenshots, shaders, ISA, native libraries, hardware captures or console logs. Main remained 9624d8c at publication.

Landing order remains #8716 → #12299, with Filip722 owning the deduplication-preserving adaptation and combined validation. Acceptance and the prerequisite checklist remain external review matters. No cold-compilation benefit is claimed.

A1

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2391,"ms":12004.002},"presents":238,"frame_ms":{"p50":50.352,"p90":50.782,"p99":55.418,"max":56.144},"gpu_busy_ms_per_present":47.024,"worker_busy_pct":{"queue worker 0x0":77.987},"top_phases_ms_per_frame":{"Driver.Packet":39.186,"Driver.Packet.draw":36.071,"Driver.Draw":36.009,"Driver.Draw.draw_enqueued":31.174,"Recorder.Sync":29.449,"VideoOut.Flip":10.254,"Driver.Present":10.234,"VideoOut.Flip.present":10.202},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3102939.json.gz"}

seconds 90:12 from present 2391: 238 presents, frame p50 50.4 / p90 50.8 / p99 55.4 / max 56.1 ms, GPU busy 47.0 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2391,"ms":12004.002},"presents":238,"frame_ms":{"p50":50.352,"p90":50.782,"p99":55.418,"max":56.144},"gpu_busy_ms_per_present":47.024,"worker_busy_pct":{"queue worker 0x0":77.987},"top_phases_ms_per_frame":{"Driver.Packet":39.186,"Driver.Packet.draw":36.071,"Driver.Draw":36.009,"Driver.Draw.draw_enqueued":31.174,"Recorder.Sync":29.449,"VideoOut.Flip":10.254,"Driver.Present":10.234,"VideoOut.Flip.present":10.202},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3102939.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2562: 56.1 ms at 8636 ms: batch (gpu) 47.3, Driver.Packet (queue worker 0x0) 42.1, Driver.Packet.draw (queue worker 0x0) 38.5, Driver.Draw (queue worker 0x0) 38.5
  • present 2564: 55.6 ms at 8748 ms: batch (gpu) 48.7, Driver.Packet (queue worker 0x0) 41.1, Driver.Packet.draw (queue worker 0x0) 37.7, Driver.Draw (queue worker 0x0) 37.6
  • present 2563: 55.4 ms at 8692 ms: batch (gpu) 48.6, Driver.Packet (queue worker 0x0) 41.9, Driver.Packet.draw (queue worker 0x0) 35.8, Driver.Draw (queue worker 0x0) 35.7
  • present 2560: 54.6 ms at 8528 ms: batch (gpu) 49.6, Driver.Packet (queue worker 0x0) 40.2, Driver.Packet.draw (queue worker 0x0) 37.6, Driver.Draw (queue worker 0x0) 37.4
  • present 2551: 54.2 ms at 8071 ms: batch (gpu) 47.6, Driver.Packet (queue worker 0x0) 40.7, Driver.Packet.draw (queue worker 0x0) 38.2, Driver.Draw (queue worker 0x0) 38.1

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 37.3 (74 %) 10.7 (21 %) 2.4 9.7 Driver.Packet 37.2, Driver.EndSubmission 0.1
draw committer 36.3 (72 %) 0.0 (0 %) 14.1 3.2 Recorder.Sync 29.4, Graphics.Draw 5.0
presenter 0.4 (1 %) 9.9 (20 %) 40.1 0.1 VideoOut.Flip 10.3, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 50.3 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 50.4 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 47.0 (93 %) 0.0 (0 %) 3.5 0.0 batch 47.0

Largest slices (ms per frame, inclusive, all threads): batch 47.0, Driver.Packet 37.2, Driver.Packet.draw 35.4, Driver.Draw 35.3, Driver.Draw.draw_enqueued 30.4, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.3, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.6 ms at 8528 ms, present 2559
  • Driver.WorkerWait (queue worker 0x0) 11.4 ms at 8636 ms, present 2561
  • Driver.WorkerWait (queue worker 0x0) 11.1 ms at 8748 ms, present 2563
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 11803 ms, present 2624
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8175 ms, present 2552
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8582 ms, present 2560
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8071 ms, present 2550
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8125 ms, present 2551
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8906 ms, present 2566
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 2271 ms, present 2435

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

  • batch 2557: 14.8 ms at 8607 ms, present 2561: 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.3, Recorder.Reap (draw committer) 0.0
  • batch 2406: 14.6 ms at 8098 ms, present 2551: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.3, Graphics.Draw.draw_and_resource_release (draw committer) 1.0, Recorder.Submit (draw committer) 0.3, Graphics.Draw.validate (draw committer) 0.1
  • batch 2541: 14.6 ms at 8554 ms, present 2560: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Recorder.Submit (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 2589: 14.5 ms at 8717 ms, present 2563: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2606: 14.5 ms at 8774 ms, present 2564: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.3

B1

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2413,"ms":12038.791},"presents":241,"frame_ms":{"p50":49.940,"p90":50.515,"p99":51.156,"max":51.278},"gpu_busy_ms_per_present":46.557,"worker_busy_pct":{"queue worker 0x0":77.769},"top_phases_ms_per_frame":{"Driver.Packet":38.684,"Driver.Packet.draw":35.453,"Driver.Draw":35.384,"Driver.Draw.draw_enqueued":30.692,"Recorder.Sync":29.310,"VideoOut.Flip":10.184,"Driver.Present":10.164,"VideoOut.Flip.present":10.132},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3104541.json.gz"}

seconds 90:12 from present 2413: 241 presents, frame p50 49.9 / p90 50.5 / p99 51.2 / max 51.3 ms, GPU busy 46.6 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b7 (dirty), dropped: no

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2413,"ms":12038.791},"presents":241,"frame_ms":{"p50":49.94,"p90":50.515,"p99":51.156,"max":51.278},"gpu_busy_ms_per_present":46.557,"worker_busy_pct":{"queue worker 0x0":77.769},"top_phases_ms_per_frame":{"Driver.Packet":38.684,"Driver.Packet.draw":35.453,"Driver.Draw":35.384,"Driver.Draw.draw_enqueued":30.692,"Recorder.Sync":29.31,"VideoOut.Flip":10.184,"Driver.Present":10.164,"VideoOut.Flip.present":10.132},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3104541.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2501: 51.3 ms at 4392 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.0, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 36.1
  • present 2563: 51.2 ms at 7502 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.9, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.1
  • present 2545: 51.2 ms at 6598 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.9, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 36.0
  • present 2572: 51.1 ms at 7954 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 38.0, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.2
  • present 2580: 51.1 ms at 8354 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.8, Driver.Packet.draw (queue worker 0x0) 35.9, Driver.Draw (queue worker 0x0) 35.8

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.7 (73 %) 10.7 (21 %) 2.5 9.8 Driver.Packet 36.6, Driver.EndSubmission 0.1
draw committer 36.3 (73 %) 0.0 (0 %) 13.6 3.2 Recorder.Sync 29.3, Graphics.Draw 5.0
presenter 0.4 (1 %) 9.8 (20 %) 39.7 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 49.8 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.9 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
gpu 46.5 (93 %) 0.0 (0 %) 3.4 0.0 batch 46.5

Largest slices (ms per frame, inclusive, all threads): batch 46.5, Driver.Packet 36.6, Driver.Packet.draw 34.7, Driver.Draw 34.7, Driver.Draw.draw_enqueued 30.0, Recorder.Sync 29.3, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 9054 ms, present 2594
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 8104 ms, present 2574
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 6750 ms, present 2547
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 1453 ms, present 2441
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 100 ms, present 2414
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 4845 ms, present 2509
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5896 ms, present 2530
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5946 ms, present 2531
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 8854 ms, present 2589
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 7251 ms, present 2557

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

  • batch 2832: 14.5 ms at 9427 ms, present 2601: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2682: 14.5 ms at 8928 ms, present 2591: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Recorder.Reap (draw committer) 0.0
  • batch 1450: 14.5 ms at 4819 ms, present 2509: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 2141: 14.5 ms at 7124 ms, present 2555: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1
  • batch 2412: 14.5 ms at 8028 ms, present 2573: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.1

B2

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2410,"ms":12007.789},"presents":241,"frame_ms":{"p50":49.826,"p90":50.241,"p99":50.935,"max":51.013},"gpu_busy_ms_per_present":46.481,"worker_busy_pct":{"queue worker 0x0":77.709},"top_phases_ms_per_frame":{"Driver.Packet":38.559,"Driver.Packet.draw":35.370,"Driver.Draw":35.304,"Driver.Draw.draw_enqueued":30.758,"Recorder.Sync":29.414,"VideoOut.Flip":10.181,"Driver.Present":10.165,"VideoOut.Flip.present":10.135},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3105993.json.gz"}

seconds 90:12 from present 2410: 241 presents, frame p50 49.8 / p90 50.2 / p99 50.9 / max 51.0 ms, GPU busy 46.5 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b7 (dirty), dropped: no

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2410,"ms":12007.789},"presents":241,"frame_ms":{"p50":49.826,"p90":50.241,"p99":50.935,"max":51.013},"gpu_busy_ms_per_present":46.481,"worker_busy_pct":{"queue worker 0x0":77.709},"top_phases_ms_per_frame":{"Driver.Packet":38.559,"Driver.Packet.draw":35.37,"Driver.Draw":35.304,"Driver.Draw.draw_enqueued":30.758,"Recorder.Sync":29.414,"VideoOut.Flip":10.181,"Driver.Present":10.165,"VideoOut.Flip.present":10.135},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3105993.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2430: 51.0 ms at 998 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 35.9, Driver.Draw (queue worker 0x0) 35.8
  • present 2445: 51.0 ms at 1750 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.7, Driver.Packet.draw (queue worker 0x0) 35.4, Driver.Draw (queue worker 0x0) 35.3
  • present 2534: 50.9 ms at 6186 ms: batch (gpu) 46.3, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 35.8
  • present 2431: 50.9 ms at 1049 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 34.4, Driver.Draw (queue worker 0x0) 34.4
  • present 2632: 50.7 ms at 11059 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.2, Driver.Packet.draw (queue worker 0x0) 35.0, Driver.Draw (queue worker 0x0) 34.9

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.6 (73 %) 10.7 (22 %) 2.5 9.7 Driver.Packet 36.5, Driver.EndSubmission 0.1
draw committer 36.3 (73 %) 0.0 (0 %) 13.5 3.1 Recorder.Sync 29.4, Graphics.Draw 4.9
presenter 0.4 (1 %) 9.8 (20 %) 39.6 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 49.7 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.8 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
gpu 46.4 (93 %) 0.0 (0 %) 3.4 0.0 batch 46.4

Largest slices (ms per frame, inclusive, all threads): batch 46.4, Driver.Packet 36.5, Driver.Packet.draw 34.6, Driver.Draw 34.6, Driver.Draw.draw_enqueued 30.0, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.1 ms at 11658 ms, present 2643
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 10511 ms, present 2620
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 4842 ms, present 2506
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 10760 ms, present 2625
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 9913 ms, present 2608
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 1851 ms, present 2446
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 11059 ms, present 2631
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 4492 ms, present 2499
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 1250 ms, present 2434
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 49 ms, present 2410

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

  • batch 3472: 14.5 ms at 11532 ms, present 2641: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2450: 14.5 ms at 8143 ms, present 2573: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 3140: 14.5 ms at 10434 ms, present 2619: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 3170: 14.5 ms at 10534 ms, present 2621: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 2870: 14.5 ms at 9539 ms, present 2601: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2

A2

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12017.594},"presents":240,"frame_ms":{"p50":50.061,"p90":50.566,"p99":51.360,"max":51.447},"gpu_busy_ms_per_present":46.843,"worker_busy_pct":{"queue worker 0x0":77.861},"top_phases_ms_per_frame":{"Driver.Packet":38.827,"Driver.Packet.draw":35.709,"Driver.Draw":35.644,"Driver.Draw.draw_enqueued":31.212,"Recorder.Sync":29.724,"VideoOut.Flip":10.211,"Driver.Present":10.192,"VideoOut.Flip.present":10.161},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3107625.json.gz"}

seconds 90:12 from present 2398: 240 presents, frame p50 50.1 / p90 50.6 / p99 51.4 / max 51.4 ms, GPU busy 46.8 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12017.594},"presents":240,"frame_ms":{"p50":50.061,"p90":50.566,"p99":51.36,"max":51.447},"gpu_busy_ms_per_present":46.843,"worker_busy_pct":{"queue worker 0x0":77.861},"top_phases_ms_per_frame":{"Driver.Packet":38.827,"Driver.Packet.draw":35.709,"Driver.Draw":35.644,"Driver.Draw.draw_enqueued":31.212,"Recorder.Sync":29.724,"VideoOut.Flip":10.211,"Driver.Present":10.192,"VideoOut.Flip.present":10.161},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3107625.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2625: 51.4 ms at 11361 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.2, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.2
  • present 2421: 51.4 ms at 1148 ms: batch (gpu) 47.3, Driver.Packet (queue worker 0x0) 38.4, Driver.Packet.draw (queue worker 0x0) 37.0, Driver.Draw (queue worker 0x0) 37.0
  • present 2607: 51.4 ms at 10456 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.3, Driver.Packet.draw (queue worker 0x0) 36.7, Driver.Draw (queue worker 0x0) 36.6
  • present 2399: 51.1 ms at 50 ms: batch (gpu) 47.1, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 35.1, Driver.Draw (queue worker 0x0) 35.0
  • present 2500: 51.1 ms at 5103 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 35.6, Driver.Draw (queue worker 0x0) 35.5

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.9 (74 %) 10.7 (21 %) 2.5 9.7 Driver.Packet 36.7, Driver.EndSubmission 0.1
draw committer 36.3 (73 %) 0.0 (0 %) 13.7 3.3 Recorder.Sync 29.7, Graphics.Draw 4.7
presenter 0.4 (1 %) 9.8 (20 %) 39.8 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 50.0 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 50.0 0.4 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 46.8 (93 %) 0.0 (0 %) 3.3 0.0 batch 46.8

Largest slices (ms per frame, inclusive, all threads): batch 46.8, Driver.Packet 36.7, Driver.Packet.draw 34.9, Driver.Draw 34.9, Driver.Draw.draw_enqueued 30.5, Recorder.Sync 29.7, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 4953 ms, present 2496
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1250 ms, present 2422
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7005 ms, present 2537
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 5655 ms, present 2510
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 1199 ms, present 2421
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5004 ms, present 2497
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 11464 ms, present 2626
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 6555 ms, present 2528
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 3246 ms, present 2462
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 8446 ms, present 2566

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

  • batch 949: 14.5 ms at 3169 ms, present 2461: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0
  • batch 814: 14.5 ms at 2718 ms, present 2452: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2
  • batch 2978: 14.5 ms at 9926 ms, present 2596: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.2
  • batch 3564: 14.5 ms at 11890 ms, present 2635: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 3308: 14.5 ms at 11033 ms, present 2618: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2

A3

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12016.533},"presents":239,"frame_ms":{"p50":50.191,"p90":50.850,"p99":53.856,"max":55.817},"gpu_busy_ms_per_present":46.811,"worker_busy_pct":{"queue worker 0x0":77.925},"top_phases_ms_per_frame":{"Driver.Packet":39.022,"Driver.Packet.draw":35.811,"Driver.Draw":35.745,"Driver.Draw.draw_enqueued":30.890,"Recorder.Sync":29.431,"VideoOut.Flip":10.223,"Driver.Present":10.203,"VideoOut.Flip.present":10.170},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3109220.json.gz"}

seconds 90:12 from present 2398: 239 presents, frame p50 50.2 / p90 50.9 / p99 53.9 / max 55.8 ms, GPU busy 46.8 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12016.533},"presents":239,"frame_ms":{"p50":50.191,"p90":50.85,"p99":53.856,"max":55.817},"gpu_busy_ms_per_present":46.811,"worker_busy_pct":{"queue worker 0x0":77.925},"top_phases_ms_per_frame":{"Driver.Packet":39.022,"Driver.Packet.draw":35.811,"Driver.Draw":35.745,"Driver.Draw.draw_enqueued":30.89,"Recorder.Sync":29.431,"VideoOut.Flip":10.223,"Driver.Present":10.203,"VideoOut.Flip.present":10.17},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3109220.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2447: 55.8 ms at 2465 ms: batch (gpu) 48.2, Driver.Packet (queue worker 0x0) 42.0, Driver.Packet.draw (queue worker 0x0) 36.8, Driver.Draw (queue worker 0x0) 36.7
  • present 2445: 54.9 ms at 2358 ms: batch (gpu) 48.3, Driver.Packet (queue worker 0x0) 40.7, Driver.Packet.draw (queue worker 0x0) 38.3, Driver.Draw (queue worker 0x0) 38.2
  • present 2448: 53.9 ms at 2521 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 40.0, Driver.Packet.draw (queue worker 0x0) 37.3, Driver.Draw (queue worker 0x0) 37.3
  • present 2446: 52.6 ms at 2413 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 40.3, Driver.Packet.draw (queue worker 0x0) 37.3, Driver.Draw (queue worker 0x0) 37.3
  • present 2449: 52.4 ms at 2575 ms: batch (gpu) 46.9, Driver.Packet (queue worker 0x0) 39.1, Driver.Packet.draw (queue worker 0x0) 36.6, Driver.Draw (queue worker 0x0) 36.6

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 37.1 (74 %) 10.7 (21 %) 2.4 9.7 Driver.Packet 37.0, Driver.EndSubmission 0.1
draw committer 36.5 (73 %) 0.0 (0 %) 13.8 3.1 Recorder.Sync 29.4, Graphics.Draw 5.1
presenter 0.4 (1 %) 9.9 (20 %) 40.0 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 50.2 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 50.2 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.2 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 46.8 (93 %) 0.0 (0 %) 3.5 0.0 batch 46.8

Largest slices (ms per frame, inclusive, all threads): batch 46.8, Driver.Packet 37.0, Driver.Packet.draw 35.1, Driver.Draw 35.1, Driver.Draw.draw_enqueued 30.2, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.8 ms at 2358 ms, present 2444
  • Driver.WorkerWait (queue worker 0x0) 11.4 ms at 10756 ms, present 2611
  • Driver.WorkerWait (queue worker 0x0) 11.3 ms at 10402 ms, present 2604
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1505 ms, present 2427
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1405 ms, present 2425
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2521 ms, present 2447
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 402 ms, present 2405
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2575 ms, present 2448
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 3977 ms, present 2476
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2627 ms, present 2449

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

  • batch 710: 14.7 ms at 2384 ms, present 2445: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Recorder.Submit (draw committer) 0.3, Graphics.Draw.validate (draw committer) 0.0
  • batch 742: 14.6 ms at 2490 ms, present 2447: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1
  • batch 789: 14.5 ms at 2652 ms, present 2450: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 726: 14.5 ms at 2436 ms, present 2446: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 3342: 14.5 ms at 11184 ms, present 2620: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0

B3

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2411,"ms":12035.535},"presents":242,"frame_ms":{"p50":49.735,"p90":50.171,"p99":50.736,"max":50.820},"gpu_busy_ms_per_present":46.401,"worker_busy_pct":{"queue worker 0x0":77.666},"top_phases_ms_per_frame":{"Driver.Packet":38.473,"Driver.Packet.draw":35.325,"Driver.Draw":35.259,"Driver.Draw.draw_enqueued":30.565,"Recorder.Sync":29.345,"VideoOut.Flip":10.215,"Driver.Present":10.199,"VideoOut.Flip.present":10.167},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3110771.json.gz"}

seconds 90:12 from present 2411: 242 presents, frame p50 49.7 / p90 50.2 / p99 50.7 / max 50.8 ms, GPU busy 46.4 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b7 (dirty), dropped: no

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2411,"ms":12035.535},"presents":242,"frame_ms":{"p50":49.735,"p90":50.171,"p99":50.736,"max":50.82},"gpu_busy_ms_per_present":46.401,"worker_busy_pct":{"queue worker 0x0":77.666},"top_phases_ms_per_frame":{"Driver.Packet":38.473,"Driver.Packet.draw":35.325,"Driver.Draw":35.259,"Driver.Draw.draw_enqueued":30.565,"Recorder.Sync":29.345,"VideoOut.Flip":10.215,"Driver.Present":10.199,"VideoOut.Flip.present":10.167},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3110771.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2646: 50.8 ms at 11687 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.3, Driver.Packet.draw (queue worker 0x0) 34.5, Driver.Draw (queue worker 0x0) 34.4
  • present 2415: 50.8 ms at 199 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.4, Driver.Packet.draw (queue worker 0x0) 35.5, Driver.Draw (queue worker 0x0) 35.4
  • present 2435: 50.7 ms at 1194 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 35.3, Driver.Draw (queue worker 0x0) 35.2
  • present 2502: 50.5 ms at 4531 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 37.3, Driver.Packet.draw (queue worker 0x0) 35.2, Driver.Draw (queue worker 0x0) 35.1
  • present 2543: 50.5 ms at 6558 ms: batch (gpu) 46.5, Driver.Packet (queue worker 0x0) 37.4, Driver.Packet.draw (queue worker 0x0) 35.4, Driver.Draw (queue worker 0x0) 35.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.5 (73 %) 10.7 (22 %) 2.5 9.7 Driver.Packet 36.4, Driver.EndSubmission 0.1
draw committer 36.2 (73 %) 0.0 (0 %) 13.6 3.2 Recorder.Sync 29.3, Graphics.Draw 4.9
presenter 0.4 (1 %) 9.9 (20 %) 39.5 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 49.6 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.7 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 46.4 (93 %) 0.0 (0 %) 3.4 0.0 batch 46.4

Largest slices (ms per frame, inclusive, all threads): batch 46.4, Driver.Packet 36.4, Driver.Packet.draw 34.6, Driver.Draw 34.6, Driver.Draw.draw_enqueued 29.9, Recorder.Sync 29.3, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.0 ms at 3236 ms, present 2475
  • Driver.WorkerWait (queue worker 0x0) 11.0 ms at 1692 ms, present 2444
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 9850 ms, present 2608
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7605 ms, present 2563
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 199 ms, present 2414
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7006 ms, present 2551
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2190 ms, present 2454
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 10843 ms, present 2628
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 2390 ms, present 2458
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 9700 ms, present 2605

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

  • batch 125: 14.5 ms at 423 ms, present 2419: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 3446: 14.5 ms at 11412 ms, present 2640: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1
  • batch 3476: 14.5 ms at 11512 ms, present 2642: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2, Recorder.Reap (draw committer) 0.0
  • batch 2785: 14.5 ms at 9225 ms, present 2596: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.7, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2529: 14.5 ms at 8378 ms, present 2579: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0

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; perf(shader): deduplicate runtime image switch modes and base-level sample branches #8716 merged on 2026-11-02
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon760M (vendor AMD), RADV Mesa25.0.7-2+deb13u1, Debian13 / Linux7.2.12-x64v3-xanmod1; historical peer compositions below
  • AI-assisted: yes (Codex)

@github-actions github-actions Bot added the perf Performance change label Oct 28, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dispatch logic looks internally consistent on the PR base, and the performance report is unusually well scoped. I cannot finish a current-main review on this head, though: it is 18 commits behind main, and main has since changed SpirvImageEmitter.cpp (including the image-store and image-merge-phi changes in 9d6b917388 and b9d00c5d80). Please rebase/update onto current main and rerun the required focused shader tests on the updated head and its matching base; the current report explicitly excludes newer main changes, and the hosted GPU test jobs are skipped. This is needed to check the new structured dispatch against the current emitter and validation baseline.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 907 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 5021 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 5371 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 6280 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 6488 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7642 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10193 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10652 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 13928 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 13929 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 14853 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16260 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16321 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp

@github-actions github-actions Bot added the shader core/shader label Oct 28, 2026
@Filip722

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Updated onto main 3a40945e62b7 without rewriting history. Exact head: 0f90dc4f2036866971fd7fa0a3a10520fcf2eb4d.

The same eight focused fixtures ran on current main and this exact head: seven pass on each; image-table execution fails identically at descriptor allocation with Vulkan result -1000069000. Zero VUIDs, skips or missing-layer warnings; all seven GPU fixtures loaded Khronos validation and selected the Radeon 760M.

SpirvImageEmitter.cpp on refreshed main has the same Git blob (1e8a30d17e969e70f1cc61f011906e420a09cd8c) as measured base 660a0b306d87. The updated diff is still exactly the original 31-line direct-result dispatch addition. The original performance report and four trace captures remain scoped to their recorded revisions; this refresh adds correctness validation, not new FPS measurements.

Release libs and focused targets built with 12 jobs; conventions and whitespace checks pass. Paired validation used AMD Radeon 760M / RADV Mesa 25.0.7-2+deb13u1 / Debian 13 on the same machine:

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^(agc_driver_depth_plane_sampling|agc_driver_image_address_dimension|agc_driver_image_plane_bias_on_single_level_volume|agc_driver_image_sample_unnormalized|agc_driver_image_table|agc_driver_pixel_implicit_derivatives|agc_driver_prepared_graphics|agc_shader_memory)$" -V

Please re-review the updated head. @boykopovar Could you trigger full Linux/Windows CI for this revision, or link an already queued run that identifies this PR and head? I have no upstream write permission; the automatic jobs are not full product/GPU validation.

gh workflow run build.yml --repo boykopovar/AnyPS5 --ref main --field pr=12299

@adriadam10 adriadam10 self-assigned this Oct 28, 2026
@Oscar45397

Copy link
Copy Markdown
Contributor

Windows + NVIDIA run of head 0f90dc4f20, merged onto main 750cf6cf48 (clean merge, local only), compared with that main.

Setup: Windows 11 Home 26200, AMD Ryzen 9 5900X, NVIDIA GeForce RTX 3080, driver 610.88, Vulkan SDK 1.4.363 (VK_LAYER_KHRONOS_validation), WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON.

Command: the eight fixtures the Tested section names, as I mapped them to test names, 3 runs on each side, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer:

ctest --test-dir build -R '^(agc_shader_memory|agc_driver_(depth_plane_sampling|image_address_dimension|image_plane_bias_on_single_level_volume|image_sample_unnormalized|pixel_implicit_derivatives|prepared_shaders_dispatch_ahead_prewarm|image_table))$' -V
Runs Passed Failed VUID- lines Missing-layer lines Layer inserted
main 750cf6cf48 3 8 of 8 each none 0 0 every Vulkan process
this PR on that main 3 8 of 8 each none 0 0 every Vulkan process
  • agc_driver_image_table passes on both sides here, so the vkAllocateDescriptorSets -1000069000 failure in the Radeon 760M run does not reproduce on this GPU. The new branch is guarded by !tables, so that fixture probably does not reach it.
  • For "depth sampling" and "graphics prewarming" I used agc_driver_depth_plane_sampling and agc_driver_prepared_shaders_dispatch_ahead_prewarm.
  • No title or performance run.

GPUs tested: NVIDIA GeForce RTX 3080, driver 610.88, Windows 11.

AI-assisted: yes (Claude Code)

@JJenkx

JJenkx commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

A CPU-only data point from a different title, in case it's useful (no GPU or driver compile involved). I recompiled the 71 shader requests dumped with APS5_DUMP_SHADERS from Mortal Shell II (PPSA34008) with agc_shader_replay on Windows (WinLibs GCC 15.2.0, Release) and counted the SPIR-V words it reports:

arm head total SPIR-V words
main e4da19aff0 1,400,031
main + this PR 1ef2a13fa2 (merge of 0f90dc4f20) 1,404,593 (+4,562, +0.33%)

12 of the 71 requests change, and every one grows, by 72 to 823 words. Examples: the largest shader (shader_1c00b45000, 4,744 code words) goes from 210,955 to 211,727 (+772), shader_1880050d00 from 25,285 to 26,108 (+823), and shader_16005b5c00 from 5,177 to 5,660 (+483).

This doesn't contradict the native-instruction reduction in the description. It's only the SPIR-V the driver receives, so it bears on pipeline compile cost, not on execution. I haven't measured native code or compile time for these shaders, because the Windows GPU is currently paused.

AI-assisted: yes (Claude Code).

@imellag imellag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS / MoltenVK data point. Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. main doesn't run titles on macOS yet, so the base is a support branch, not main: main 750cf6cf48 + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone.

Two alternated runs per side, warm shader cache, APS5_TRACE_SUMMARY_EVERY=10:

base with the eight PRs
God of War Sons of Sparta (PPSA28997), fps from 30 s 51.5 / 51.8 51.6 / 51.8
GoW GPU ms/present, gameplay before the fight / in the fight 13.6 / 19.6 13.5 / 19.5
Planet of Lana (PPSA19450), fps from 85 s 32.2 / 32.7 32.5 / 32.6

Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here.

Focused tests below ran with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation on the same two trees; the layer was found and both logs have the same VUID- lines (12 VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, 20 VUID-vkCreateDescriptorSetLayout-support-09582, from tests that fail the same way on the base).

Interaction with #8716. The two merge without a textual conflict, but together they fail agc_shader_memory at #8716's new check: runtime image switch deduplication: OpSwitch did not cover every runtime image mode. Each one alone passes it (base + #12299: pass; base + #8716: pass; base + #8716 + #12299: fail; base + #8716 + #11952: pass). This PR turns the direct-image OpSwitch into a balanced if tree for value-returning images, which is the switch #8716 deduplicates and tests. pr_overlap can't see this, so could you and @hamb3r agree which lands first and what the second does: keep #8716's deduplication in the cases that still use OpSwitch and narrow its test to them, or drop the deduplication where this tree replaces the switch?

This PR on MoltenVK otherwise: agc_driver_depth_plane_sampling, agc_driver_image_address_dimension, agc_driver_image_sample_unnormalized and agc_driver_prepared_graphics pass on the base and with the change. agc_driver_image_table fails on both with the same VUID-vkCreateDescriptorSetLayout-support-09582, and agc_driver_image_plane_bias_on_single_level_volume fails on both (MoltenVK has no min/max reduction samplers). No GPU regression in the group.

AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)

@JJenkx

JJenkx commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Additional AMD/Linux title observation, neutral for steady gameplay FPS.

Bendy and the Dark Revival PPSA27624 v01.000.003, same office hallway/camera, 3840x2160, RX6650XT RADV Mesa26.2.4, Ryzen7950X. Baseline b217ca291c29 is main 3a2b91981651 plus the same required #6782/#6913 integration in both arms. Change dfb37f9dece0 adds only this PR's feature commit 85a741580246. Both source trees were clean.

120:30 trace window baseline change
Presents 694 688
p50 ms 40.590 41.266
p90 ms 60.497 58.727
p99 ms 65.298 65.358
GPU busy ms/present 39.418 39.330

Both ordinary exits were0, no trace drops, saves/configs restored, no remaining private game processes. Direct X11 images at105/160seconds were manually reviewed as the same coherent hallway scene. Both builds passed27/27 matched focused checks with21 actual Khronos layer insertions each, no missing-layer messages and0 VUIDs. This is one pair, so it establishes neither a steady-gameplay gain nor a repeatable regression. It does not test this PR's cold compilation-time benefit.

Both raw traces, full summary/digests, qualification receipt and screenshots, SHA-256 111ca241ee2ac36031370083633530a854a511457eed73ff9cc8085028ddeb8b.

An earlier pair is excluded because its observer was missing a dependency. One earlier candidate launch also hit the existing storage-image write-watch guard; that did not recur in this corrected pair, and I have not attributed it to this PR.

AI-assisted: yes (Codex).

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked — changes requested

The new reports add useful context, but this branch is still not based on current main, and the available gameplay comparison does not demonstrate a repeatable performance gain. The branch is 548 commits behind current main 52c09d567d2fa453494dd720fcf53a98149468e4; the reviewed code and measurements are based on older snapshots. The one Bendy comparison reports p50 increasing from 40.590 ms to 41.266 ms, p90 improving, and p99 nearly unchanged. The 71-shader SPIR-V sample grows by 0.33%, which may affect pipeline compilation but does not establish an elapsed-time regression by itself.

What I ran

  • Compared exact head 0f90dc4f2036866971fd7fa0a3a10520fcf2eb4d with current main 52c09d567d2fa453494dd720fcf53a98149468e4.
  • Ran a current-main merge preview and git diff --check.
  • Read the new SPIR-V-size and Bendy frame-time reports and the existing exact-head shader validation report.

Results

Check Result
Current-main merge preview Clean, but the branch does not contain current main
git diff --check Passed
Focused shader tests Existing report is against the earlier main 3a2b919816; hosted GPU/product jobs are skipped
Gameplay result One reported pair is neutral/slightly worse in p50; it does not establish a gain
Shader input size 71-request CPU sample grows by 0.33%; pipeline compile-time impact is unmeasured

Please update onto current main and rerun the focused shader tests and the same-scene baseline/change capture on that integrated head. The report should make the performance benefit reproducible and address the observed shader-input growth; if the updated capture remains neutral, reconsider whether the perf change is warranted. I did not run the C++ or GPU tests locally.

@Filip722

Copy link
Copy Markdown
Contributor Author

Refreshed without rewriting history: exact head e192e0c3d7e6b8ae7ffbc6984bb54c8b8a2909c8 incorporates main 4c7d275bef89d309313d16bc2bc05d37a1b50be2. Release native libraries/focused targets, conventions and diff checks pass. Matching actual-Radeon760M/Khronos/no-cache validation gives 7 passes on each side; identical pre-existing failure: agc_driver_image_table. No skips, missing-layer warnings or new per-test VUID identifiers/counts.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^(agc_shader_memory|agc_driver_depth_plane_sampling|agc_driver_image_address_dimension|agc_driver_image_plane_bias_on_single_level_volume|agc_driver_image_sample_unnormalized|agc_driver_pixel_implicit_derivatives|agc_driver_prepared_graphics|agc_driver_image_table)$' -V --timeout 30

Gameplay performance runs are postponed at the author's request during a call. The body now distinguishes completed historical captures from the pending comparison after main's later shader/pipeline merges. This is a correctness/branch update, not a new-head FPS claim or a request to dismiss outstanding performance requirements. I am holding the final re-review/full-CI follow-up until the corresponding author-owned prerequisites are complete.

The #12299 → #8716 proposal still needs @hamb3r's agreement and downstream combined validation. Standalone passes do not resolve the reported combined OpSwitch-shape assertion failure.

AI-assisted: yes (Codex).

@Filip722

Copy link
Copy Markdown
Contributor Author

@jotitadev Applied your separate-heap-source correction in 5e4b0682fce7c05cb6c1aa08f24948f34eaf19cf, retaining the dispatch assertions and nested-table rejection.

I checked the retained build/test evidence: the combined tree d51635622fe31d8ef0fb7d6da00a1a7f28f8b76d (main 474030e58424 + our previous head + #9749 da431b6a63ca) fails agc_shader_memory with the reported nested-image-table error; applying the exact four-line patch now committed in this head makes it pass. This is a host-side shader test, not a GPU execution result.

Separately, the retained paired focused Radeon 760M/RADV Mesa 25.0.7 validation on main 474030e58424 and the corrected candidate records 7/8 passing on both sides, with the same existing image-table allocation failure (-1000069000), seven actual Khronos layer/device insertions per side, and no VUIDs, missing layers or skips. Those results and the existing CI limitations are in the PR description. No new gameplay measurement is claimed.

This follow-up audits the retained runs rather than claiming a new run on today's main. The fix is published; please recheck the fixture interaction. #8716 remains the prerequisite, and this does not claim its separate branch has been corrected. AI-assisted: yes (Codex).

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 5e4b068 merged onto main 8a00f9c · tested 2026-10-31 21:11 UTC · 31 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,393 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 44 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,442 of 3,085 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (924 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_lookup_log_fits_build 60.7 s, ⚠️ agc_driver_pipeline_journal 58.3 s, ⚠️ agc_driver_flat_store 47.6 s, ⚠️ agc_driver_graphics 31.4 s, ⚠️ agc_driver_graphics_maps_fallback 30.2 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 7 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_idle_store_yields
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 476 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (476 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 468 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (44)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_f
Reproduce
git fetch origin 5e4b0682fce7c05cb6c1aa08f24948f34eaf19cf 8a00f9c1cab0a4609f518eba09181cf7d9e25cb1
git checkout 8a00f9c1cab0a4609f518eba09181cf7d9e25cb1 && git merge --no-ff 5e4b0682fce7c05cb6c1aa08f24948f34eaf19cf
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@TechLevelZero

TechLevelZero commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 37d4bd0 merged onto main 3741ca9 · tested 2026-11-01 10:10 UTC · 25 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,423 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 44 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,472 of 3,121 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (929 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 83.9 s, ⚠️ agc_driver_indirect_thread_dimensions 47.9 s, ⚠️ agc_driver_interpolation_modes 46.0 s, ⚠️ agc_driver_graphics_maps_fallback 33.7 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 6 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 8 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 480 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (480 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 472 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (44)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_f
Reproduce
git fetch origin 37d4bd020c7b059abdf48c56e37add477f505409 3741ca9327246d0df81638726a986cef862b6db5
git checkout 3741ca9327246d0df81638726a986cef862b6db5 && git merge --no-ff 37d4bd020c7b059abdf48c56e37add477f505409
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@Filip722
Filip722 marked this pull request as draft November 1, 2026 20:58
@Filip722

Filip722 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

@hamb3r @jotitadev @MarcZX10 Refreshed #12299 to 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6, integrating main 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e and #8716's refreshed 45998c33789b without rewriting history. The separate-heap fixture correction and equivalent-mode assertions remain intact.

Matching baseline 7673d25f370d has the same main and #8716. Both pass all eight focused tests on Radeon 760M/private RADV 26.2.6, with required Vulkan, cache bypass and actual Khronos instance/device layers; no VUIDs, synchronization hazards, missing layers or skips. agc_driver_image_table also passes on both in this setup.

Main now contains #11952's direct-selector specialization, so I refreshed the performance evidence rather than transferring the old runtime-selector result. One predeclared warmed AB diagnostic pair gives mean 21.827840 → 21.911022 ms (candidate +0.381%), GPU 18.841 → 18.805 ms/present. Both captures passed all validity gates; no timing-based exclusions or added pairs. One pair establishes neither repeatability nor a gain/regression and supplies no renewed speed justification.

The description includes the exact revisions, both summaries and both original traces/full digests/protocol/provenance. The save requested 1440p; physical internal extent was not independently verified for these builds. Historical approved measurements retain their original scope. I have returned this PR to draft pending review of whether the remaining balanced tree is worthwhile with the specialized selector. The author-owned integration, matching focused validation and diagnostic report are complete; that is separate from reviewer acceptance.

AI-assisted: yes (Codex).

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 1, 2026
@Filip722
Filip722 marked this pull request as ready for review November 2, 2026 12:14
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 12367bd merged onto main 88e804b · tested 2026-11-02 13:41 UTC · 22 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,495 passed · 6 failed (0 new, 3 also fail on main, 3 unstable on main) · 45 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,546 of 3,234 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (970 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ agc_driver_graphics_maps_fallback 30.8 s, ⚠️ agc_driver_graphics 30.3 s
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 2 of the last 10 main runs
agc_submit_progress: failed in 8 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 8 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 495 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (495 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 487 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (45)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fps_limit: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_o
Reproduce
git fetch origin 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6 88e804b0a7df1f1ac373a9e2f72fb378d925fdd4
git checkout 88e804b0a7df1f1ac373a9e2f72fb378d925fdd4 && git merge --no-ff 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 12367bd merged onto main a4eca2a · tested 2026-11-02 23:33 UTC · 13 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,596 passed · 13 failed (0 new, 12 also fail on main, 1 unstable on main) · 53 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,662 of 3,591 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (968 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.0 s, ⚠️ agc_driver_graphics 107.3 s, ⚠️ agc_driver_image_sample_unnormalized 53.0 s, ⚠️ public_headers 48.9 s, ⚠️ agc_driver_lazy_resolved_abi 45.0 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 4 of the last 6 main runs
Failing on main too (12, not counted against this PR)
agc_driver_guest_memory_lifetime_direct
agc_driver_image_table
agc_driver_job_manager_compute_capacity
agc_driver_native_depth_bda_clear
agc_driver_native_depth_buffer_clear
agc_driver_native_depth_clears
agc_driver_native_multisample_depth
agc_idle_publish_wait
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 513 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (513 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 505 more
VUID-vkCmdCopyImage-srcImage-01548 (6 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (6 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
Skipped (53)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWind
Reproduce
git fetch origin 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6 a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8
git checkout a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8 && git merge --no-ff 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@Filip722

Filip722 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@MarcZX10 @jotitadev Please re-review the published integration, fixture correction and matched validation follow-up at head 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6.

The latest author capture remains inconclusive: candidate mean frame time +0.381%, GPU busy 18.841→18.805 ms/present, one pair. After #11952's selector specialization, it supplies no renewed performance justification. Please decide whether the remaining balanced-dispatch change is worth retaining.

Those author results are for the exact November 1 revisions in the description. Upstream has since changed the emitter and fixture, so they do not validate today's main; I am not marking a current-main review resolved. No new build or capture was run for this follow-up. The formal re-review request API returned 404 for my personal account, so I am requesting it here.

AI-assisted: yes (Codex).

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the refresh and for being upfront about the numbers. Correctness looks fine (the balanced tree is only used when no two modes are equivalent, the invalid selector still ends in OpUnreachable, and the fixture uses a separate heap source), but I can't merge it as a perf change on this evidence:

  • The only measurement on the current head is a single pair where the candidate is 0.381% slower in mean frame time (21.827840 → 21.911022 ms) with GPU busy 18.841 → 18.805 ms/present. That shows no gain.
  • #11952 now specializes the direct-image selector in registration modules, which was the case this PR targeted, so the earlier +0.85% (measured before it) no longer applies to main.
  • The earlier data points from other titles were neutral (Bendy) or showed larger SPIR-V (+0.33% words, 12 of 71 shaders grow, JJenkx).

To move it forward, please show a case that is still selected at runtime after #11952 (name the shader or fixture) and a same-scene before/after on main with tools/trace_digest.py summaries that shows a repeatable gain. Otherwise the 40 lines and 145 test lines are maintenance cost without a demonstrated benefit, and it's fine to close it. Feel free to reopen with that evidence.

@Filip722
Filip722 marked this pull request as draft November 7, 2026 21:25
@Filip722

Filip722 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@adriadam10 I traced the remaining selector paths after #11952. I have not found the runtime-selected case needed to justify a new timing batch:

  • At main 4204951e771e, the direct-image selector is a specialization constant. DescriptorBindingBuilder supplies its value for registration modules and non-registration modules.
  • The PR's balanced-tree eligibility condition requires !tables; the image-table and sampler-table paths therefore cannot supply the missing runtime workload. verifyRuntimeImageSwitchDeduplication covers retained switch behavior, not evidence of a runtime balanced-tree benefit.

This is source analysis only; I ran no new build, GPU validation or gameplay capture. The November 1 pair remains inconclusive, and the pre-#11952 gain remains historical. I corrected the description's completion claim and current-main checkbox. Keeping this open as a draft for investigation; your request for a named remaining runtime case and repeatable current-main traces is still unmet. Any new measurement needs a concrete affected workload first.

AI-assisted: yes (Codex).

@Filip722

Filip722 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Closing this PR: #11952 specializes the direct-image selector, removing the original runtime-dispatch opportunity. The post-#11952 capture did not establish a repeatable benefit, and the source investigation found no remaining runtime-selected case eligible for this balanced tree. The requested performance evidence remains unmet. Existing measurements and source analysis are preserved above; no new performance claim is made. Thanks for the review.

AI-assisted: yes (Codex).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants