Skip to content

perf(shader): select the sine fallback polynomial before evaluation - #13841

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
Filip722:perf/conditional-sine-confirmed-20261031
Nov 1, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
Filip722:perf/conditional-sine-confirmed-20261031

Conversation

@Filip722

Copy link
Copy Markdown
Contributor

What

Sine fallback emission evaluates both exact polynomials before selecting one. Emit a structured selection and phi around the same pure scalar arithmetic so the driver can allocate the selected paths separately.

  • Keep the predicate, coefficient bits, NoContraction/FMA behavior and selected result unchanged.
  • Reconverge before the native-sine comparison, near-zero handling, sign fixups and later shader operations.
  • Preserve all FP modes, NaNs, signed zero, subnormals, EXEC behavior and unsupported paths.

This retains the accuracy series introduced by merged #3770 and the GCN near-zero interval from #13258. Both arms contain only scalar arithmetic, with no memory, derivative or subgroup operations; an ordered-false NaN predicate selects the same sine arm. Existing mixed-lane fixtures exercise both paths. This is independent of #13268's cosine sharing and #13826's cardinal checks.

Tested

Main 45e39c7ad16c versus candidate bb9d7516fd0f, God of War Sons of Sparta PPSA28997 v01.008.001, saved camp after Continue, 1920×1080 guest output, Wayland/mailbox. AMD Ryzen 5 7640HS / Radeon 760M integrated GPU with shared system memory, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7 / Linux 7.2.12-x64v3-xanmod1.

Mean frame time 45.671702 → 45.428081 ms. Four paired percentage reductions average 0.533272%, two-sided 95% Student-t CI [0.152620%, 0.913924%], df=3. Mean run FPS separately: 21.895417 → 22.012869.

Pair Main mean ms Candidate mean ms Reduction
1 45.623235 45.362362 0.571798%
2 45.677749 45.468568 0.457949%
3 45.742125 45.358857 0.837890%
4 45.643700 45.522538 0.265451%

Within-arm ranges: main 0.118891 ms, candidate 0.163681 ms; sample SDs 0.052055 and 0.080978 ms. Primary metric was fixed as window duration / presents per run. Order: warm A, warm B, A1, B1, B2, A2, B3, A3, A4, B4. All ten attempts valid, no exclusions, replacements or appended runs. Acceptance required positive paired mean and positive lower confidence bound; frames are not independent repetitions. Four pairs support only this tested scene/setup, with no combined or universal gain claim.

All eight traces, unchanged summaries, complete trace_digest reports, protocol, provenance hashes and measurement-hook source. Same save, scene/input route, resolution, focus/window geometry and separate warmed per-arm cache seeds; unchanged manifests in every window. Fifty native libraries and nine unique guest modules audited as full-path lists with duplicate detection and hashes through the process mount namespace, plus actual loaded RADV ICD. No drops or validation/profiling during timing; stdout stayed on a pseudo-terminal. Identical private readiness hooks operate outside timed windows and are excluded from production. VideoOut differs only in generated revision text. Trace dirty:null reflects dependency-symlink status failure; exact revisions, patch hashes and loaded-binary hashes are retained.

Three matched main/candidate/final hook-free Radeon fixtures pass: SinCosReduction, SinCosNearZero, Vop1FloatUnary, with verbose CTest, required Vulkan, no shader cache and Khronos instance/device validation. Zero skips, missing-layer warnings or VUIDs. Reused differential fixture with fresh libraries yields 29,184 bit-identical outputs across supported FP/fused settings, signed zeros, subnormals, NaNs/infinities, boundary neighbors and deterministic random inputs. Both existing unsupported denormal-mode errors remain. Existing committed mixed-lane fixtures cover the changed branch selection; no duplicate test framework added.

Unfavorable historical native evidence: the focused fragment grows 6,593 → 6,950 instructions, 35,464 → 38,376 bytes, while allocated VGPRs fall 48 → 40, without spills. Final ISA predicates both arms with unchanged branch/FMA counts: this does not establish reduced executed FMA work or actual occupancy. The earlier two-pair cohort observed about 0.584% lower mean frame time, both pairs favorable with differing magnitudes; its complete table is included as historical evidence. Fresh elapsed timing above supports the total change, not a per-instruction bottleneck claim. No other GPU was tested locally. Historical full-game vertex/index binding VUIDs remain unrelated; no clean full-game validation claim.

Full overlap scan: 1,623 open PRs, ten shared-file branches. Stale #5021 and #12324 required manual review: lane-shuffle/NaN handling and wave-scan changes respectively, no duplicate sine mechanism. #13268 changes cosine evaluation and #13826 changes the later cardinal result; no required dependency. Conventions pass. Upstream advanced to 809c7fa2dfb1 during final review with an unrelated Audio3d change; this PR retains the exact tested candidate/base, and the measured result is not transferred to that later runtime baseline. The overlap merge preview is clean.

Main/candidate summary lines and trace_digest excerpts (all runs in the bundle)
{"commit":"45e39c7ad16c","dirty":null,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"30: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 30:12","first_present":676,"ms":12044.534},"presents":264,"frame_ms":{"p50":45.573,"p90":46.222,"p99":47.379,"max":47.904},"gpu_busy_ms_per_present":42.565,"worker_busy_pct":{"queue worker 0x0":78.302},"top_phases_ms_per_frame":{"Driver.Packet":35.589,"Driver.Packet.draw":33.102,"Driver.Draw":33.064,"Driver.Draw.draw_enqueued":29.697,"Recorder.Sync":28.516,"VideoOut.Flip":9.047,"Driver.Present":9.039,"VideoOut.Flip.present":9.012},"trace_dropped":false,"trace":"aps5-trace-45e39c7ad16c-214776.json.gz"}
{"commit":"bb9d7516fd0f","dirty":null,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"30: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 30:12","first_present":668,"ms":12021.026},"presents":265,"frame_ms":{"p50":45.296,"p90":45.828,"p99":47.183,"max":47.698},"gpu_busy_ms_per_present":42.354,"worker_busy_pct":{"queue worker 0x0":78.213},"top_phases_ms_per_frame":{"Driver.Packet":35.341,"Driver.Packet.draw":32.864,"Driver.Draw":32.826,"Driver.Draw.draw_enqueued":29.222,"Recorder.Sync":28.12,"VideoOut.Flip":9.053,"Driver.Present":9.041,"VideoOut.Flip.present":9.014},"trace_dropped":false,"trace":"aps5-trace-bb9d7516fd0f-215581.json.gz"}

seconds 30:12 from present 676: 264 presents, frame p50 45.6 / p90 46.2 / p99 47.4 / max 47.9 ms, GPU busy 42.6 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 45e39c7, dropped: no

seconds 30:12 from present 668: 265 presents, frame p50 45.3 / p90 45.8 / p99 47.2 / max 47.7 ms, GPU busy 42.4 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bb9d751, dropped: no

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: AMD Radeon 760M, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7 / Linux 7.2.12-x64v3-xanmod1
  • AI-assisted: yes (Codex)

@github-actions github-actions Bot added the perf Performance change label Oct 31, 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.

Reviewed — looks good

At head bb9d7516fd0f7f3171fd5f94f4d6cd3508f29619, I found no blocking issue in the shader control-flow change, and the submitted performance artifacts are internally consistent.

What I ran

Reviewed the exact head bb9d7516fd0f7f3171fd5f94f4d6cd3508f29619. The benchmark baseline 45e39c7ad16c93871809eee8c81c3865596e883f is also the PR's merge base; the local merge preview against current main 809c7fa2dfb1b21e2b31b3114b7d51bc14ee88ab was clean. Local checks ran on Linux 6.1.0-54-amd64 with Python 3.11.2 and GCC 12.2.0 available; I did not invoke a C++ compiler or build.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13841 --no-negative-controls --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13841
git diff --check 809c7fa2dfb1b21e2b31b3114b7d51bc14ee88ab...bb9d7516fd0f7f3171fd5f94f4d6cd3508f29619
python3 tools/check_conventions.py --base 809c7fa2dfb1b21e2b31b3114b7d51bc14ee88ab --head bb9d7516fd0f7f3171fd5f94f4d6cd3508f29619 --title 'perf(shader): select the sine fallback polynomial before evaluation' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13841/pr-body.md
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13841/head-bb9d7516fd0f-99e5773c --json core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
python3 tools/trace_digest.py <trace> --summary <combined-aps5-summary.jsonl>

The precheck's isolated checkout did not contain the local-only pr_test_quality.py helper; I ran that check directly against the exact-head checkout. For the eight supplied captures, I downloaded and decoded the Gist artifacts, checked their gzip streams and SHA-256 provenance, reran trace_digest.py, and compared each result with its supplied digest. I recalculated each run's frame time from window.ms / presents, then recalculated the four paired reductions and the two-sided 95% Student-t interval.

Results

Check Result
Diff and repository conventions Passed.
Current-base merge preview Clean against 809c7fa2dfb1b21e2b31b3114b7d51bc14ee88ab.
Test-quality heuristic Passed with no findings when run directly; the precheck wrapper could not locate this workspace-only helper in its isolated checkout. No tests are changed by this PR.
Performance evidence All 8 trace digests matched their supplied reports; all 8 trace SHA-256 values matched the pinned provenance. Recalculated paired mean reduction 0.5332720943830501%; 95% df=3 interval [0.15262026696838982%, 0.9139239217977104%], consistent with the report.
Hosted CI at review time Eligibility and intake passed. Conventions, labels, and relinker jobs were pending; Linux and Windows product jobs were skipped.
Local build or GPU tests Not run. The author reports matched Radeon 760M/Khronos tests and 29,184 bit-identical outputs; I did not independently reproduce them.
Unedited outputs from checks
All conventions checks passed.
{
  "findings": [],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}
exact trace_digest matches: A1, A2, A3, A4, B1, B2, B3, B4 (8/8)
trace provenance SHA-256: all matched
window_ms/presents match A: True
window_ms/presents match B: True
paired reductions: [0.571797649159, 0.457949158977, 0.837890385567, 0.265451183829]
mean: 0.5332720943830501 95% df=3 CI: (0.15262026696838982, 0.9139239217977104)
comparison JSON consistent: True

git diff --check produced no output and exited 0. The precheck wrapper's test-quality step reported:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13841/head-bb9d7516fd0f-99e5773c/tools/pr_test_quality.py': [Errno 2] No such file or directory

The direct helper run above passed. Hosted status output immediately before posting:

conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186703945/job/124494983459
relinker (macos-latest, clang++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495409168
relinker (macos-latest, clang++, x86_64)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495409141
relinker (ubuntu-latest, g++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495409095
relinker (windows-latest, g++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495409173
relinker-asan	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495409130
labels	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/41186703953/job/124494983151
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495410914
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495410803
windows	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495410204
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124495410637
eligibility	pass	4s	https://github.com/boykopovar/AnyPS5/actions/runs/41186704000/job/124494982856
intake	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41186703898/job/124494982975

Findings

Blocking

None found.

Non-blocking

The change emits a structured selection and phi around the two pure arithmetic series. This follows the existing emitter pattern; the author reports mixed-lane fixtures and matched GPU tests. I did not independently compile the shader or rerun those GPU tests. The measured benefit is limited to the reported title, scene, machine, and four paired runs, as the PR states.

Sources

Not verified

No local C++ build, CTest, GPU execution, other-vendor GPU, or console run. The hosted product Linux and Windows jobs were skipped; relinker and conventions jobs were pending at review time. Author-reported Radeon tests and measurements were read but not independently reproduced.

@github-actions

github-actions Bot commented Oct 31, 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 5021 core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
PR 7410 core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
PR 11351 core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
PR 12324 core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp

@github-actions github-actions Bot added the shader core/shader label Oct 31, 2026
@JJenkx

JJenkx commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Windows GPU run of head bb9d7516fd, merged onto main 8f55414024 (clean merge, local only). Setup: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, Radeon RX 6700 XT with AMD proprietary driver 26.10.1 (Vulkan 1.4.315), WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON. Every test ran with the Khronos validation layer 1.4.363 (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation), ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1.

This PR changes no test files, so I picked the existing GPU execution tests that run the code it changes:

  • Tests: agc_driver_sin_cos_reduction, agc_driver_sin_cos_near_zero, agc_driver_gcn_sin_near_zero, agc_driver_vop1_float_unary and agc_driver_f16_denormal_flush.
  • Result: each passes 3 of 3 runs (--repeat until-fail:3), with no failures and no skips. The validation layer was inserted 15 times across the runs and reported no VUIDs.
  • Not done: no negative control. These tests pass on main as well, so this run shows only that the change keeps their results on this GPU.

AI-assisted: yes (Claude Code).

@jacknieland

Copy link
Copy Markdown
Contributor

NVIDIA and Intel on Windows, for head bb9d7516fd merged into main 73f4f7e06e (clean merge). The runs so far are AMD.

Host: Windows 11 Pro 26200, i7-9750H, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r7), Release, BUILD_TESTING=ON, Vulkan SDK 1.4.363.0 validation layer. Two GPUs, selected with ANYPS5_GPU: NVIDIA GeForce GTX 1650 (Turing, driver 566.41) and Intel UHD Graphics 630.

agc_driver_sin_cos_reduction, agc_driver_sin_cos_near_zero, agc_driver_gcn_sin_near_zero, agc_driver_vop1_float_unary, agc_driver_f16_denormal_flush, agc_driver_log_near_one and agc_driver_runtime_images, on main and on the merge, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:

  • All 7 pass on both GPUs, on main and on this PR, with no skips.
  • Every log has 0 VUID- lines, and none contains was not found but was requested by env var VK_INSTANCE_LAYERS.

Only these test targets were built, not the full suite, and no title was run. AI-assisted.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head bb9d751 merged onto main 73f4f7e · tested 2026-10-31 19:54 UTC · 21 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,335 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 48 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,388 of 3,072 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 (878 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_sdwa_move_selectors 43.0 s, ⚠️ agc_driver_lazy_resolved_abi_switch_set 42.7 s, ⚠️ agc_driver_graphics_maps_fallback 33.3 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_submit_progress: failed in 7 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
agc_driver_job_manager_compute_capacity: Failed in the parallel run; also passed only on retry in 198 other runs in the last 7 days
Validation IDs already present on main (3 IDs in 387 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (387 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_alpha_to_coverage, agc_driver_array_layer_target, and 379 more
VUID-vkCmdCopyImage-srcImage-01548 (12 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_plane_sampling, and 4 more
VUID-vkCmdCopyImage-srcImage-01551 (12 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_plane_sampling, and 4 more
Skipped (48)
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_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_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 plat
Reproduce
git fetch origin bb9d7516fd0f7f3171fd5f94f4d6cd3508f29619 73f4f7e06e4f210a8c6570e335fd654dc0a86134
git checkout 73f4f7e06e4f210a8c6570e335fd654dc0a86134 && git merge --no-ff bb9d7516fd0f7f3171fd5f94f4d6cd3508f29619
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.

@adriadam10 adriadam10 self-assigned this Nov 1, 2026
@adriadam10
adriadam10 merged commit 114ae14 into boykopovar:main Nov 1, 2026
13 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the diff (selection merge with single-block arms and a phi over the same pure scalar series, predicate and coefficients unchanged, currentLabel kept by EmitLabel), the perf numbers, and the Windows AMD, NVIDIA and Intel runs from the thread; merged.

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.

6 participants