Skip to content

build(videoout): link one SDL copy on macOS - #11119

Merged
adriadam10 merged 2 commits into
boykopovar:mainfrom
Betr0x:build/videoout-one-sdl-macos
Nov 8, 2026
Merged

adriadam10 merged 2 commits into
boykopovar:mainfrom
Betr0x:build/videoout-one-sdl-macos

Conversation

@Betr0x

@Betr0x Betr0x commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What

Follow-up to #11049, which @imellag asked me to open there. On macOS the Objective-C runtime registers SDL's classes from every copy in the process. libSceVideoOut linked its own SDL2-static next to libSceAgcDriver's, so every relinked title printed 14 Class SDL_... is implemented in both .../libSceAgcDriver.prx and .../libSceVideoOut.prx warnings, which the runtime says "may cause spurious casting failures and mysterious crashes".

On Apple, libSceVideoOut now takes SDL from libSceAgcDriver, which it already links, the same way #11049 does for libSceAudioIn and libSceAudioOut. The test executables that link both libSceVideoOut and their own SDL2-static (video_out_mouse_tests, pad_sdl_tests, video_out_hdr_probe_tests, video_out_telemetry_tests) follow: without that, pad_sdl aborts, because it attaches its virtual joysticks in its own SDL copy while VideoOut asks libSceAgcDriver's. pad_sdl_tests gets ${ANYPS5_SDL2_INCLUDE_DIR}, which it used to receive through SDL2-static.

On Linux and Windows videoOutSdl is SDL2-static, so every link line is the same as before.

Tested

Apple M4 (10-core GPU), macOS 27.0.1, Apple clang 21, x86-64 Release under Rosetta 2 (-DCMAKE_OSX_ARCHITECTURES=x86_64, Ninja, BUILD_TESTING=ON), MoltenVK 1.4.2 from the LunarG SDK 1.4.363.0. main does not build the libraries on macOS by itself, so the tree is main 3a2c51afd merged with mugurc's ci/macos-series-2 (which carries #11049's change as 63db337cd8), #10885 and #10540. Both states below are the same tree, with core/libs/prx/libSceVideoOut/CMakeLists.txt as on main and as in this PR.

main this PR
libSceVideoOut.prx 1,748,816 bytes, 837 SDL symbols defined 319,352 bytes, 0 defined, 55 imported from libSceAgcDriver
Syobon Action (PPSA47402, catalog 01.001.000), 30 s with pad input 14 duplicate class warnings 0
DriftCheck (PPSA98766, catalog 01.000.000), 20 s with pad input 14 0
video_out_mouse_tests passes, 14 warnings passes, 0
pad_sdl, video_out_telemetry*, video_out_hdr_probe output 56 warnings 0
ctest -R "video_out|audio|pad|mouse|keyboard" 97/97 pass, 25 skipped 97/97 pass, 25 skipped

Both titles were relinked with --macos --to-rosetta and driven through APS5_PAD_INPUT_FILE: Syobon Action reaches level 1 and moves, DriftCheck shows both sticks, L1+R1 and Triangle, in both states.

Validation, as CONTRIBUTING asks for VideoOut changes (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1):

  • ctest -R "video_out|pad_sdl" -V: 32/32 pass in both states, no was not found but was requested by env var VK_INSTANCE_LAYERS, no VUID-. This says little on macOS: every VideoOut test that creates a Vulkan device skips there (Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen)), and with VK_LOADER_DEBUG=layer none of the 32 inserts the layer.
  • So the two titles were run under the same variables instead. With VK_LOADER_DEBUG=layer the loader inserts VK_LAYER_KHRONOS_validation in every run; both titles log no VUID- on main and with this PR, and dump the same number of frames (8 each).

Linux and Windows: not built here; on both videoOutSdl expands to SDL2-static.

python3 tools/check_conventions.py --base origin/main passes. python3 tools/pr_overlap.py could not compare core/libs/prx/libSceVideoOut/CMakeLists.txt with #674, #5021, #7201 and #8927, which conflict with main. Of those, #674 changes the same target_link_libraries(libSceVideoOut ...) line, for its input editor; none of them changes how VideoOut gets SDL on macOS. The two were combined by hand: no merge order is needed, and whichever lands second puts #674's anyps5_input_editor anyps5_input in front of the current line and keeps ${videoOutSdl} in place of SDL2-static (details in the review reply; #674 also needs a rebase onto current main for other files).

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: build(audio): link one SDL copy on macOS #11049 (no order needed with feat(input): add native SDL input configuration with ImGui #674, combined by hand, see Tested)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Apple M4 (10-core GPU), MoltenVK 1.4.2 (LunarG SDK 1.4.363.0), macOS 27.0.1, x86-64 under Rosetta 2
  • AI-assisted: yes

🤖 Generated with Claude Code

@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 macOS SDL de-duplication approach and the reported measurements are clear. The repository overlap check could not compare this file against #674, and the PR description confirms that #674 changes the same target_link_libraries(libSceVideoOut ...) line. The current checklist declares only #11049 as a dependency. Please coordinate the merge order with #674’s author and add a Depends on: #674 entry if the line-level conflict requires an order; otherwise record that both changes were manually combined cleanly. This is the remaining workflow blocker I found.

@Betr0x

Betr0x commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Thanks. I combined the two by hand; no merge order is needed, so I haven't added Depends on: #674.

#674's head (base 9cafa33f) predates most of this file as it is on main: applying this PR's patch onto it conflicts in four hunks because the surrounding lines have changed since. The real overlap is the one target_link_libraries(libSceVideoOut ...) line, which #674 rewrites to add its input libraries, and which @oneandonlydean has already asked #674 to rebase. Whichever lands second takes the other's change on that line:

if(APPLE)
    set(videoOutSdl libSceAgcDriver)
else()
    set(videoOutSdl SDL2-static)
endif()
target_link_libraries(libSceVideoOut PRIVATE anyps5_input_editor anyps5_input libSceAgcDriver libScePad libSceUserService libSceMouse libSceKeyboard libSceIme libc libkernel decoder_png ${videoOutSdl})

i.e. #674's two input libraries in front of current main's line, with SDL2-static replaced by ${videoOutSdl}. #674's --exclude-libs ... libSDL2.a option is a GNU ld option that Apple's linker doesn't accept, so on a rebase over this PR it would sit under if(NOT APPLE), where libSDL2.a is still linked; that part is #674's to decide. I've left a note on #674 and recorded this in the description.

AI-assisted: yes

@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 author has now recorded a concrete manual resolution for the shared link line and notified #674’s author. I checked the current diff: Apple links the VideoOut and affected test targets through libSceAgcDriver, while Linux and Windows retain SDL2-static; the input libraries from #674 can be retained alongside this ${videoOutSdl} selection as shown in the follow-up. The reported Apple test/title runs and validation results cover the changed platform path. The earlier overlap coordination point is addressed; the remaining large rebase conflicts on #674 are separate from this PR.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 12863 core/libs/prx/libSceVideoOut/CMakeLists.txt L29, L69

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/libs/prx/libSceVideoOut/CMakeLists.txt

@NerfEko

NerfEko commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

@Betr0x Coordinating with #11345, as @MarcZX10 asked there. #11345 adds SDL2-static to video_out_flip_tests to fix the Linux system-deps link. This PR switches libSceVideoOut and the mouse, pad-SDL, HDR-probe and telemetry tests to ${videoOutSdl} but not video_out_flip_tests, so with both merged that test would still name SDL2-static next to libSceAgcDriver on Apple.

Proposed order: #11345 first, since it is small and independent of the macOS series. After it, this PR changes that line to

target_link_libraries(video_out_flip_tests PRIVATE libSceVideoOut libSceAgcDriver libkernel libc ${videoOutSdl})

along with the other test targets. If this PR merges first, I will rebase #11345 and use ${videoOutSdl} on that line instead. Either way the combined configuration takes libSceAgcDriver's SDL on Apple and SDL2-static elsewhere. Does that work for you?

@THEMANnt THEMANnt 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 572fa398d8e3a7a542b2ad6c02036db8b118515d. Pending review.

The VideoOut link selection is checked; native Apple verification and upstream Build authorization remain pending.

Validation: Actual submitted CMake selects libSceAgcDriver for the changed Darwin library/test links and SDL2-static on Linux/Windows; the extra pad_sdl include directory is retained. These branch checks are not macOS links or controller execution.

Scope / next step: The author reports combined-series macOS testing, which I have not independently rerun. Complete the authorized hosted Build and retain native Apple SDL/VideoOut evidence before final approval.

@jotitadev jotitadev 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.

Ran head 572fa398d on a second Apple Silicon machine, both on its own and together with #11049.

Machine: Apple M2 Max (32 GB), macOS 27.2 (26B5112a), Apple clang 21.0.0, x86_64 Release under Rosetta 2 (-DCMAKE_OSX_ARCHITECTURES=x86_64, Ninja, BUILD_TESTING=ON, Python 3.9 from Xcode).
Base: main b986c11a34 does not build the libraries on macOS by itself, so the tree is that main plus the open macOS build PRs (#10366, #7631, #10659, #10660, #11249, #11358, #10669, #10552, #7804, #10676, #11447, #11437) and #11554, plus #11705 (applied locally). Only this PR is toggled, with git merge --no-commit on top.

Copies of SDL in the built .prx files: Objective-C SDL* classes, plus SDL_ symbols defined and imported. The warnings come from a small x86_64 program that dlopens libSceAgcDriver, libSceVideoOut, libSceAudioIn and libSceAudioOut and counts is implemented in both:

base this PR #11049 this PR + #11049
libSceVideoOut.prx 13 classes, 837 defined, 1,741,768 B 0 defined, 55 imported, 312,304 B unchanged 0 defined, 55 imported
libSceAudioIn / libSceAudioOut 837 defined each unchanged 0 defined, 7 / 14 imported 0 defined, 7 / 14 imported
duplicate class warnings, all four loaded 42 28 14 0
video_out_mouse + pad_sdl output (ctest -V) 28 warnings 0 not run not run
  • pad_sdl and video_out_mouse pass 3/3 with this PR.
  • ctest -R "audio|pad|mouse|keyboard|sdl" passes 71/71, alone and together with #11049. I left out the video_out flip, HDR-probe and telemetry tests, which open windows.
  • #11049 alone passes ctest -R audio 51/51, 3/3.
  • All three states build without new failures.

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

@imellag imellag mentioned this pull request Oct 27, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 27, 2026
@Betr0x

Betr0x commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@NerfEko Works for me, either order. If #11345 lands first, I'll switch video_out_flip_tests to ${videoOutSdl} here on the next update, as you wrote it; if this one lands first, your rebase uses ${videoOutSdl} on that line. Either way Apple takes libSceAgcDriver's SDL and the other platforms keep SDL2-static.

AI-assisted: yes

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

Betr0x commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Re-measured the merged head f92e5b7c3e (main at c547deaacb + this PR) on macOS, since the merge also took main's libSceIme into pad_sdl_tests.

Setup: Apple M4, macOS 27.0.1, Apple clang 21, x86-64 Release under Rosetta 2, MoltenVK 1.4.2. main still doesn't build the libraries on macOS alone, so the tree is the merged head plus the open macOS PRs #11049, #7631, #11249, #11358, #10669, #10552, #11447, #11437, #11554, #11705 and #7804 (two small conflicts with main resolved locally). Only core/libs/prx/libSceVideoOut/CMakeLists.txt is toggled between main's version and this PR's.

main's CMakeLists this PR
libSceVideoOut.prx 1,753,672 B, 837 SDL symbols defined 320,280 B, 0 defined, 55 imported
duplicate class warnings, Syobon Action / DriftCheck 14 / 14 0 / 0
video_out_mouse_tests + pad_sdl, telemetry, HDR-probe output 14 + 56 0 + 0
ctest -R "video_out|audio|pad|mouse|keyboard|sdl" 109/110 110/110

The one failure on main's side was pad_sdl in the parallel run; on its own it passes 3/3 in both states, so it's not a difference this PR makes. Syobon Action and DriftCheck run as before. Two test programs outside this PR's files don't build on macOS with this tree and were left out: guest_memory_tests (sceKernelMunmap called with a pointer) and guest_raise_exception_tests (its SIGUSR1 constant clashes with the macro, and RaiseTestSpinUntilR12 doesn't link); this PR doesn't touch them.

AI-assisted: yes

@THEMANnt THEMANnt 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 f92e5b7c3ed4dfdc949da3fcb29709ef20eca35f — comment; validation/readiness remains incomplete.

The updated CMake retains the intended Apple SDL selection, including the newly affected HDR-probe and telemetry links. Native Apple verification remains outside my available environment.

Executed the submitted CMake conditionals with target-command recording for Darwin, Linux and Windows: all five affected targets use libSceAgcDriver for the selected Apple SDL dependency and retain SDL2-static elsewhere. The corresponding author-base branches were checked too. This evaluates real CMake control flow, but does not link Mach-O libraries, load Objective-C classes or run pad/VideoOut tests. The author’s combined-series macOS and validation-layer results remain author evidence; I did not independently rerun them. No new production defect found.

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

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head f92e5b7 merged onto main f6fddd6 · tested 2026-10-30 08:15 UTC · 12 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 ✅ 813 passed · 2 failed (0 new, 0 also fail on main, 2 unstable on main) · 8 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 823 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 (401 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 63.5 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 5 of the last 7 main runs
agc_submit_progress_no_timeline: failed in 6 of the last 7 main runs
Validation IDs already present on main (3 IDs in 125 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (125 tests): 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_bitfield_mask, agc_driver_buffer_atomic_csub, agc_driver_buffer_atomics, and 117 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
Skipped (8)
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_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
Reproduce
git fetch origin f92e5b7c3ed4dfdc949da3fcb29709ef20eca35f f6fddd60d826831f70f7c62e25423610ee742bcc
git checkout f6fddd60d826831f70f7c62e25423610ee742bcc && git merge --no-ff f92e5b7c3ed4dfdc949da3fcb29709ef20eca35f
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.

@Betr0x

Betr0x commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged current main into this branch (3428c9a471), resolving the conflict with #14215 in libSceVideoOut/CMakeLists.txt. video_out_mouse_tests keeps main's new libSceIme and links ${videoOutSdl}.

main has also added three test targets that link libSceVideoOut and SDL2-static together: video_out_dialog_input_tests, pad_identify_pad_input_tests and pad_port0_tests. On macOS that brings back the second SDL copy, so they now link ${videoOutSdl} like the others. The last two also get ${ANYPS5_SDL2_INCLUDE_DIR}, as pad_sdl_tests has. Linux and Windows still link SDL2-static.

Re-measured on macOS (Apple M4, macOS 27.0.1, x86-64 Release under Rosetta 2, MoltenVK 1.4.2). The tree was this merge plus the open macOS build PRs main still needs: #10552, #11447, #11049, #4630, #7631, #7804 and #11554. Only libSceVideoOut/CMakeLists.txt was toggled between main's version and this PR's, with a full build each time:

main's CMakeLists this PR
libSceVideoOut.prx 1,806,432 B, 837 SDL symbols defined 380,968 B, 0 defined, 58 imported
duplicate class warnings, Syobon Action 14 0
ctest -R "video_out|audio|pad|mouse|keyboard|sdl" (151 tests) 123 passed 123 passed, the same outcome for every test
  • The three re-pointed targets pass: video_out_dialog_input, pad_identify (all five entries) and pad_port0.
  • The 28 failures are the same in both states. 27 are video_out_flip_* segfaulting at the start of runTests on macOS, and audio_out2_timing isn't built there.

AI-assisted: yes

@TechLevelZero

TechLevelZero commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 3428c9a merged onto main 5299939 · tested 2026-11-06 16:35 UTC · 12 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 ✅ 1,350 passed · 3 failed (0 new, 3 also fail on main) · 3 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 1,356 of 4,210 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 (643 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 113.0 s
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_socket_options_multicast
web_library_assets
Validation IDs already present on main (9 IDs in 549 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (549 tests): agc_driver_address_draw_space_reuse, 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 541 more
VUID-VkShaderModuleCreateInfo-pCode-08737 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08739 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08741 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 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-VkPipelineShaderStageCreateInfo-module-parameter (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 (1 test): agc_driver_float16_unused_nan_payloads
Skipped (3)
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
Reproduce
git fetch origin 3428c9a471ce6e1729108d1f9b1978f340757c9e 5299939ecfa9e186e1eb457c6f4bd133bdb087c7
git checkout 5299939ecfa9e186e1eb457c6f4bd133bdb087c7 && git merge --no-ff 3428c9a471ce6e1729108d1f9b1978f340757c9e
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.

Betr0x and others added 2 commits November 8, 2026 07:17
libSceVideoOut linked its own SDL2-static next to libSceAgcDriver's. On
macOS the Objective-C runtime registers SDL's classes from every copy, so
a relinked title printed 14 "Class SDL_... is implemented in both"
warnings for libSceVideoOut against libSceAgcDriver, which the runtime
says may cause spurious casting failures and crashes.

On Apple, libSceVideoOut and the test executables that link it now take
SDL from libSceAgcDriver, which it already links, as boykopovar#11049 does for the
audio libraries. The test executables have to follow: pad_sdl attaches
its virtual joysticks in its own SDL copy and aborts when VideoOut asks
another one. Linux and Windows link as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adriadam10
adriadam10 force-pushed the build/videoout-one-sdl-macos branch from f9d18c5 to 3004cbe Compare November 8, 2026 06:19
@adriadam10
adriadam10 merged commit 08c9c86 into boykopovar:main Nov 8, 2026
12 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

The full Build failed pad_sdl on Linux ("SDL is built without HIDAPI"): the PR added ${ANYPS5_SDL2_INCLUDE_DIR} to pad_sdl_tests, pad_identify_pad_input_tests and pad_port0_tests on every platform, and on Linux that directory comes before SDL2-static's own includes, so SDL_JOYSTICK_HIDAPI was no longer defined. I pushed a commit that adds it only on Apple (videoOutSdlInclude, empty elsewhere); Linux link and include lines are as on main again. VideoOut tests pass with it, pad_sdl included. The macOS results are as reported by you and confirmed by @jotitadev on an M2 Max; merged.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants