Skip to content

perf(shader): define IrValue's trivial accessors in its header - #9132

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
milescoviello:perf/ir-value-inline-accessors
Nov 2, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
milescoviello:perf/ir-value-inline-accessors

Conversation

@milescoviello

@milescoviello milescoviello commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What

IrValue's Id, Arguments, Parent, ImmediateU32, IsPhi, HasUses and UseCount only return a member or compare one, but they were defined in IrValue.cpp. So every IR pass outside that file called them out of line. They are now defined inline in IrValue.hpp, next to Opcode, Type, ArgumentCount and the other accessors already there. Nothing else changes.

Why these: in a DWARF profile of shader preparation (agc_shader_replay --prepare over 152 Crimson Desert registration requests, main 2f161d4), calls into IrValue's out-of-line members were about 13 % of all leaf samples:

  • HasUses 3.1 %;
  • Parent 2.1 %;
  • Id 1.3 %;
  • IsPhi 0.3 %;
  • and others that this change doesn't touch.

ValidateProgram spent a quarter of its own 8.5 % in Parent, Id and Argument calls.

Tested

Ubuntu 24.04, GCC 13.3, Release (build-rel, SPIRV-Tools off), i7-13700K, on main 2f161d4 (rebased onto ce7d547 afterwards, no conflict).

  • Output: agc_shader_replay --spv over the 409 draw-time requests of MXGP 26 and Super Meat Boy 3D writes 409 SPIR-V modules on both builds. All 409 are byte-identical.
  • Compile time: agc_shader_replay --prepare over the same 152 requests, task-clock, 8 interleaved runs per build, ANYPS5_NO_SHADER_CACHE=1:
build median range
main 17.47 s 17.41 to 17.65 s
this PR 17.16 s 17.05 to 17.29 s

That's 1.8 % less CPU, and the ranges don't overlap.

  • Tests: the 37 tests matching ^shader|^request_serializer$|^agc_shader pass.

  • No Vulkan call changes, and the SPIR-V is identical, so I didn't run a validation-layer comparison.

  • Windows 11 Enterprise 26300, NVIDIA GeForce GT 1030 (driver 582.78), WinLibs GCC 15.2.0 r7 (UCRT), Release: agc_validate_program, agc_masked_select and agc_ir_reclaim pass 3 of 3 on main and 3 of 3 with this change.

  • Windows 11 Home 10.0.26200, NVIDIA GeForce RTX 4070 Laptop GPU (driver 616.92), WinLibs GCC 15.2.0 r7, Release, run by JulesB40 (results): this head merged onto main d4cb89300f matches that main across all 1,125 agc_ tests with the Khronos validation layer on: 1,117 pass, the same 8 skip, and the same 18 VUID- lines, all of them AGC: pipelines use differing per-attachment blend states while independentBlend is never enabled (VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605) #11990's.

Not tested: Clang.

Performance captures

The form asks for summary lines, so here are two from a title, with a caveat: this change speeds up shader compilation, and that doesn't show in frame time. The title whose start-up is compile-bound here, Crimson Desert, presents almost no frames then (2 in its first 600 s on 10-21), so it has no window to compare. These are from Super Meat Boy 3D (PPSA31162) start-up:

  • With ANYPS5_NO_SHADER_CACHE=1, every shader goes through the recompiler.
  • APS5_TRACE_SECONDS=10:60, 90 s runs, pad input, no other switch.
  • Release libraries of main 2816bd2 and of this PR merged onto it, two rounds interleaved with the other recompiler PR.
  • Linux, RTX 4070 Ti, NVIDIA 615.71.09.

In that window the shader prepare threads are 1-4 % busy, so the frames show no difference, as expected:

presents frame p50
main 2816bd2, run 1 513 134.2 ms
this PR merged onto it (1b4e4aa0f5), run 1 454 134.9 ms
main, run 2 459 138.6 ms
this PR, run 2 473 136.9 ms

The measurement of this change is the replay timing under Tested. Traces and digests for all runs are in a release on my fork.

{"commit":"2816bd275452","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"10:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA31162","title":"Super Meat Boy 3D","content_version":"02.000.001","resolution":"3840x2160","window":{"spec":"seconds 10:60","first_present":24,"ms":60058.966},"presents":513,"frame_ms":{"p50":134.233,"p90":165.070,"p99":217.141,"max":2955.273},"gpu_busy_ms_per_present":89.154,"worker_busy_pct":{"queue worker 0x0":95.177,"queue worker 0x20":93.562},"top_phases_ms_per_frame":{"Driver.Packet":220.791,"Driver.Packet.memory_wait":106.956,"Driver.Packet.dispatch":63.396,"Driver.Dispatch":62.994,"Recorder.Sync":44.242,"GpuMutex.wait.hook":40.453,"Graphics.Draw":32.101,"Graphics.Draw.draw_and_resource_release":29.659},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":28.862,"events_lost":450991,"totals_full":false}},"trace":"aps5-trace-2816bd275452-3.json.gz"}
{"commit":"1b4e4aa0f5c9","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"10:60"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 615.71.09","os":"Linux 7.0.0-38-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":30993,"title_id":"PPSA31162","title":"Super Meat Boy 3D","content_version":"02.000.001","resolution":"3840x2160","window":{"spec":"seconds 10:60","first_present":26,"ms":60009.942},"presents":454,"frame_ms":{"p50":134.899,"p90":215.696,"p99":743.552,"max":3015.552},"gpu_busy_ms_per_present":80.532,"worker_busy_pct":{"queue worker 0x0":92.895,"queue worker 0x20":89.774},"top_phases_ms_per_frame":{"Driver.Packet":241.358,"Driver.Packet.memory_wait":118.072,"Shader.PrepareArtifact":61.656,"Driver.Packet.dispatch":48.886,"Driver.Dispatch":48.721,"Graphics.Draw":37.864,"Driver.Packet.pipeline_drain":35.519,"Graphics.Draw.draw_and_resource_release":33.660},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":30.811,"events_lost":668152,"totals_full":false}},"trace":"aps5-trace-1b4e4aa0f5c9-3.json.gz"}

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: none needed (shader recompiler only; replay on the CPU)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@github-actions github-actions Bot added perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 21, 2026
@github-actions

Copy link
Copy Markdown

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

@milescoviello

Copy link
Copy Markdown
Contributor Author

About the perf label's capture request: this change only affects shader compile time on the CPU. A frame capture would show it only as part of a title's start-up stalls, mixed with everything else that varies there. So it is measured where it applies: the replay of 152 Crimson Desert registration requests, task-clock over 8 interleaved runs per build (median 17.47 → 17.16 s, ranges not overlapping), with byte-identical SPIR-V for the 409 draw-time requests. If the maintainers want a title capture anyway, I can record Crimson Desert's start-up on both builds.

AI-assisted: yes (Claude Code)

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@milescoviello I'm accepting the CPU-only evidence for this one. The change only touches CPU-side shader compilation, the paired CPU replay shows the compile-time effect, and the SPIR-V output is byte-identical, so a GPU trace couldn't show any difference. I've cleared perf numbers missing; no traces needed.

@oneandonlydean oneandonlydean removed the perf numbers missing perf pull request without a before and after summary line label Oct 24, 2026
@milescoviello

Copy link
Copy Markdown
Contributor Author

@oneandonlydean thanks for clearing it.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the perf numbers missing perf pull request without a before and after summary line label Oct 24, 2026
@milescoviello

Copy link
Copy Markdown
Contributor Author

@oneandonlydean a note on the label you cleared: github-actions[bot] put perf numbers missing back on this PR and on #9198 at 01:09 UTC on 10-24, about an hour after you removed it from both (00:02 UTC), so both show it again. Neither PR changed in between. I haven't touched the labels.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot removed the perf numbers missing perf pull request without a before and after summary line label Oct 25, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@milescoviello thanks for flagging it. My acceptance of the CPU-only replay evidence stands for both this and #9198. The bot putting perf numbers missing back doesn't mean anything new is being asked; I've passed the label behaviour on separately.

@milescoviello

Copy link
Copy Markdown
Contributor Author

Re-measured on current main 09f9a63, which now has #8879 (it halved MaskedSelectEliminator's cost and cut the replay's CPU time by 10 %, see #8860). Setup as before: agc_shader_replay --prepare over the same 152 Crimson Desert requests, Release, ANYPS5_NO_SHADER_CACHE=1, 8 interleaved task-clock rounds. This PR was merged onto that main locally (dd64e37804), with no conflicts.

I dropped one run for this PR: it ended after 9.5 s. Three more runs of each binary all prepared all 152 shaders with identical logs, and the same early exit happened once on the main binary during profiling, so it isn't specific to this change. This host has shown other hardware faults this week.

So on current main the gain is smaller and close to the run-to-run noise. The out-of-line accessors still take about 9 % of leaf samples on main (HasUses 3.9 %, Parent 2.1 %, Id 1.5 %, Argument 0.9 %, Resolve 0.8 %), but inlining them now saves under 1 % of CPU time on this set.

AI-assisted: yes (Claude Code)

@JulesB40

Copy link
Copy Markdown
Contributor

Note

🤖 Claude Opus 5.5 responding on behalf of JulesB40

On Windows + NVIDIA (Ada), head 5538df01be merged onto main d4cb89300f matches that main exactly across all 1,125 agc_ tests: same passes, same skips, same VUID- lines.

Setup: Windows 11 Home 10.0.26200, Intel Core i9-13900HX, NVIDIA GeForce RTX 4070 Laptop GPU (0x2860), driver 616.92, Vulkan SDK 1.4.335 (VK_LAYER_KHRONOS_validation), WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. Both sides were built in the same tree; the merge (0d73b42be, local only) applied cleanly.

Command, the same on both sides:

ANYPS5_GPU=4070 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^agc_' -j 6
Passed Failed Skipped VUID- lines Missing-layer lines
main d4cb89300f 1117 0 8 18 0
this PR merged 1117 0 8 18 0

No title was run.

@milescoviello

Copy link
Copy Markdown
Contributor Author

@JulesB40 thanks for the full agc_ comparison on the RTX 4070 Laptop GPU. I've added it to Tested.

AI-assisted: yes (Claude Code)

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@milescoviello thanks. The code is fine (SPIR-V byte-identical, agc_ parity), but on current main (which now has #8879) the re-measure is -0.8 % CPU with overlapping ranges, so we can't show a win from it yet, and we don't merge perf changes on noise.

Could you post one fresh main vs this head pair where the change should matter: a recompile-heavy run (an empty shader cache so every shader actually compiles, with the OS/file cache warm), same machine and settings, several runs per side alternated, with both commit SHAs and the shader count? Compile time per shader (or total recompile CPU time) with the spread is what we'd look at. If the gain is real only on some shapes of shader, a run on those is fine too; just say which.

@milescoviello
milescoviello force-pushed the perf/ir-value-inline-accessors branch from 5538df0 to 04cf3a9 Compare October 29, 2026 10:59
@milescoviello

Copy link
Copy Markdown
Contributor Author

@oneandonlydean a fresh pair. This PR rebased onto main 04dc862f33 (head 04cf3a9674, no conflicts; the 82 focused shader tests pass 3 of 3) against 04dc862f33 itself. Release agc_shader_replay with SPIR-V Tools off, Linux, i7-13700K.

  • Recompile-heavy run: --spv over all 457 requests, the 152 Crimson Desert and 305 MXGP 26 requests, so 367 modules come out (some requests share a module). ANYPS5_NO_SHADER_CACHE=1, so every shader compiles. The OS file cache was warm from an SPIR-V equivalence pass right before.
  • Rounds: 10, alternating which build runs first, task-clock of the whole process. The host was otherwise idle: the run held the build/test lock and waited until no title, build or other replay was running.
  • SPIR-V: byte-identical for every module of both sets.
main This PR
Median task-clock 27.07 s (59.25 ms per shader) 26.62 s (58.24 ms per shader)
Range over 10 rounds 26.75-27.29 s 26.33-26.98 s
Max RSS, median 1,439,704 KB 1,439,158 KB

Paired by round, this PR used less CPU in 10 of 10 rounds, by -0.93 % to -2.39 % (median -1.27 %; -1.7 % between the medians). The two absolute ranges overlap by about 0.2 s, so this is a small, consistent gain rather than a large one. I don't know of a shader shape where it's bigger: the change only inlines IrValue's trivial accessors, so it helps every pass that reads values a little. Whether about 1.3 % of recompile CPU is enough to merge is your call.

The 10 rounds (task-clock in s, ms per shader in brackets; max RSS in KB)
Round Order main This PR main RSS PR RSS
1 base head 27.11 (59.32) 26.64 (58.29) 1442136 1438908
2 head base 26.77 (58.58) 26.33 (57.62) 1439888 1438928
3 base head 27.04 (59.16) 26.41 (57.80) 1439392 1438136
4 head base 27.03 (59.15) 26.67 (58.36) 1438128 1442556
5 base head 26.84 (58.73) 26.59 (58.19) 1438276 1440100
6 head base 26.75 (58.54) 26.49 (57.97) 1440264 1439388
7 base head 27.13 (59.36) 26.82 (58.68) 1441972 1441668
8 head base 27.17 (59.45) 26.52 (58.02) 1439520 1438800
9 base head 27.29 (59.71) 26.96 (59.00) 1443180 1438832
10 head base 27.27 (59.68) 26.98 (59.03) 1437696 1439448

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 29, 2026
Id, Arguments, Parent, ImmediateU32, IsPhi, HasUses and UseCount only
return a member, but they were defined in IrValue.cpp, so every pass in
another translation unit called them out of line. In a profile of shader
preparation for 152 Crimson Desert registration requests, these calls
were about 7 % of the samples, and ValidateProgram spent a quarter of
its time in Parent, Id and Argument calls. They are now inline in
IrValue.hpp, next to Opcode, Type and the other accessors already
there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@milescoviello
milescoviello force-pushed the perf/ir-value-inline-accessors branch from 04cf3a9 to 85dce28 Compare October 29, 2026 12:04
@milescoviello

Copy link
Copy Markdown
Contributor Author

@oneandonlydean #11820 merged and conflicted with this PR in IrValue.cpp: the accessor definitions this PR moves to the header. Rebased onto main 5454cd2e45; the head is now 85dce28eaf. Besides dropping the out-of-line definitions, the inline Arguments() in the header now returns const IrOperands&, #11820's new type. Rerun at this exact head, same machine and method as my previous comment:

  • The 82 focused shader tests pass 3 of 3.
  • SPIR-V: every module byte-identical across the 457 requests (65 Crimson Desert and 302 MXGP 26 modules).
  • --spv over all 457 requests, ANYPS5_NO_SHADER_CACHE=1, 10 alternated rounds. Median 26.41 s on main (26.13-26.57, 57.80 ms per shader) and 26.08 s with this PR (25.89-26.31, 57.07 ms per shader). Lower in 10 of 10 paired rounds, by -0.11 % to -2.08 % (median -0.87 %; -1.27 % between the medians). Max RSS medians: 1,374,552 KB and 1,371,482 KB.

Same picture as before #11820: a small, consistent gain.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 29, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 85dce28 merged onto main f6fddd6 · tested 2026-10-30 09:13 UTC · 29 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,263 passed · 4 failed (0 new, 2 also fail on main, 2 unstable on main) · 41 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,308 of 2,950 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 (863 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 77.7 s
Intermittent validation messages (1, seen once in the parallel run, not reproduced when the test was re-run alone 2 times; not counted against this PR)
agc_driver_depth_clear_hle: VUID-vkCmdCopyBuffer-commonparent (6x)
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_clear_hle: failed in 1 of the last 7 main runs
agc_driver_submit_progress: failed in 5 of the last 7 main runs
Failing on main too (2, not counted against this PR)
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 391 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (391 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_array_layer_target_cpu, agc_driver_bda_span_reads_draw_pipeline, and 383 more
VUID-vkCmdCopyImage-srcImage-01548 (11 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_storage_dispatch, and 3 more
VUID-vkCmdCopyImage-srcImage-01551 (11 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_storage_dispatch, and 3 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (41)
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_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
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_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
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_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_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 plat
Reproduce
git fetch origin 85dce28eaff17ff89bd3d724afb7135f7611c097 f6fddd60d826831f70f7c62e25423610ee742bcc
git checkout f6fddd60d826831f70f7c62e25423610ee742bcc && git merge --no-ff 85dce28eaff17ff89bd3d724afb7135f7611c097
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.

@oneandonlydean
oneandonlydean merged commit 29a8d2d into boykopovar:main Nov 2, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants