Skip to content

feat(libSceVideoOut): validate ANYPS5_FULLSCREEN, restore the windowed size and hide the cursor in fullscreen - #12930

Merged
oneandonlydean merged 30 commits into
boykopovar:mainfrom
MarcZX10:feat/host-fullscreen
Nov 11, 2026
Merged

oneandonlydean merged 30 commits into
boykopovar:mainfrom
MarcZX10:feat/host-fullscreen

Conversation

@MarcZX10

@MarcZX10 MarcZX10 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What

F11 and ANYPS5_FULLSCREEN already exist on main (DisplayWindow::ToggleFullscreen, bound through InputControl::ToggleFullscreen). Gaps found and closed here:

  • ANYPS5_FULLSCREEN now has explicit spellings: 0/windowed and 1/borderless (unset and empty stay windowed). Any other non-empty value (true, yes, 2, ...) keeps its documented meaning, fullscreen, and prints a one-line warning on stderr naming the value. No value stops the game.
  • Leaving fullscreen now gives back the windowed size: HostFullscreenState remembers it on entering (or the creation size for a fullscreen start) and asks for it again only when the window did not return to it.
  • The host cursor is hidden while the window is fullscreen and no sceMouse handle is open (MouseIsOpen_nid_no_patch), shown again when a title opens one or fullscreen ends, and restored when the window is destroyed. It is only touched on a change.
  • The window operations sit behind IHostFullscreenWindow so the state machine runs without a display.

Teardown is safe for a partly built window (Destroy() guards the missing fullscreen state and never throws, a failed cursor restore is ignored).

Not offered: exclusive fullscreen (debt entry: not measured with the swapchain). ANYPS5_DISPLAY_INDEX is unchanged: the window is created centered on that display, and fullscreen goes to the display the window is on. No new key and no swapchain change: the existing surface-extent handling in VulkanDevice.cpp already covers a fullscreen transition.

Commits: parser, then its test; state machine, then its test; routing of DisplayWindow through it; cursor policy, its test, its wiring; docs (usage, environment, two debt entries, one each); window-level test on a real SDL window and its cursor check.

Overlaps with open PRs: none edit DisplayWindow.cpp except possibly through the shared files. #12569 and #12702 touch PadInput.cpp, KeyboardMouse.cpp and InputMapping (this PR touches none of them, and adds no key); #12536 touches VideoOutDriver.cpp and VulkanDevice.cpp (not touched here); #11948 touches VideoOutDriver.hpp and Output.cpp (not touched); all of them plus this PR edit core/libs/prx/libSceVideoOut/CMakeLists.txt, docs/dev/ENVIRONMENT.md, docs/user/USAGE.md and, for #11948, docs/dev/debt/libSceVideoOut.md, so expect trivial textual conflicts there.

Tested

Linux x86-64 (Debian, kernel 6.1), GCC via the repo's verify build.

  • New video_out_host_fullscreen (parser, toggle, size restore, adoption, refused transition, cursor policy over a fake window): pass.
  • New video_out_host_fullscreen_window (real SDL window: windowed, borderless, a legacy value, F11 in and out, windowed size back, SDL_ShowCursor state), configured with -DANYPS5_VIDEO_OUT_TEST_DRIVER=x11 under ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation xvfb-run -a ctest: pass. Under the default offscreen driver it skips (77) because that driver has no Vulkan window.
  • Existing video_out_flip_* (19) and video_out_telemetry*: branch 21/21 with the 2 new ones, baseline (upstream/main in a second tree) 19/19, same per-test results. VUID- lines: 0 on branch and baseline; the "layer not found" message: 0.
  • Negative controls (code broken in a scratch copy, new test fails at the intended case, restored): parser accepting anything (both tests fail), no size restore, cursor ignoring the mouse, adoption switching a fullscreen window again, Release always showing, DisplayWindow not parsing the variable (window test fails), DisplayWindow not refreshing the cursor (window test fails).
  • Not negative-controllable: the explicit size restore through a real window (Xvfb has no window manager, so SDL restores the size itself and a bypass of the state machine passes); only the fake window proves that call.
  • check_conventions.py --base upstream/main, git diff --check, public-headers audit, env_reference.py --check: clean.

NOT RUN: Windows, macOS, a desktop window manager or Wayland, a real display or hardware GPU (GPUs tested below is llvmpipe through Xvfb), multi-monitor use of ANYPS5_DISPLAY_INDEX with fullscreen, a game that opens a mouse.

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: llvmpipe via Xvfb only (Xvfb has no window manager or compositor, so the claim that the existing surface-extent handling in VulkanDevice.cpp needs no swapchain change for a fullscreen toggle is unverified on a real driver and desktop session)
  • AI-assisted: yes

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@MarcZX10 thanks. The parser, the toggle/restore state machine and the cursor policy read well, and the tests are registered. Before this can land there's one compatibility point and a few failure paths:

  1. Keep the documented ANYPS5_FULLSCREEN contract. On main, ENVIRONMENT.md and USAGE.md say the window opens fullscreen when the variable is set to "a non-empty value other than 0". With this PR any value other than 0, 1, windowed or borderless throws and the game does not start, so a user who has ANYPS5_FULLSCREEN=true (or yes, on, 2) today goes from fullscreen to a startup error. Please keep accepting those as borderless (a one-line warning naming the value is fine), and keep windowed/borderless as the new explicit spellings. If you think a hard error is better, please say why in the PR, and the docs must then call it out as a change.

  2. DisplayWindow::Destroy() can dereference a null fullscreen. create() assigns window first, then applyAppIcon, installSubclass (on Windows SDL_GetWindowWMInfo/SetWindowSubclass can fail) and the two make_unique calls can throw before fullscreen exists. VideoOutDriver.cpp (around l.696) catches that and calls window.Destroy(), which runs fullscreen->Release() on a null pointer, so a failed window creation crashes instead of reporting the error. Please make Destroy() handle every partly built state (if (fullscreen) ...), and add a failure-injection test that throws after the SDL window exists but before the fullscreen state is built.

  3. Destroy() is noexcept but can throw. Release() calls SdlHostWindow::ShowCursor, which throws through require(...) when SDL reports an error, so a failed cursor restore during teardown terminates the process and skips the rest of the cleanup. Please make teardown non-throwing (catch inside Destroy(), or let Release() ignore a failed SDL_ShowCursor(SDL_ENABLE)), with the subclass and window still released, and cover a throwing ShowCursor with the fake window.

  4. The real-window test turns every creation failure into a skip. Open catches every std::exception and returns 77, so a regression in window creation looks like a host without a display. Please skip only on the specific "no display / no video driver" conditions, and fail when a display was required (ANYPS5_REQUIRE_DISPLAY / ANYPS5_REQUIRE_VULKAN, as the other window tests do). A control showing that an unexpected exception fails rather than skips would pin it.

  5. Test directory. The real-window fixture deletes and reuses the fixed path temp_directory_path() / "anyps5_host_fullscreen_window". RESOURCE_LOCK only serializes tests inside one CTest run, not separate build trees or whatever is already at that path, so please use a unique directory the test creates and owns.

Smaller: the error text names the variable but not the value (ANYPS5_OVERLAY prints not '<value>'); adding it helps people find a typo. Optional: a debt line that SDL_SetWindowFullscreen can complete asynchronously on some window managers, so Size() read right after leaving fullscreen may still show the fullscreen size.

I checked the other open VideoOut/input PRs (#12569, #12702, #12536, #11948, #12379): none touches these source files. Their only conflicts against main come from their own older bases, and the docs/CMake overlaps are single lines.

@github-actions

github-actions Bot commented Oct 29, 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 4040 docs/dev/debt/libSceVideoOut.md
PR 4472 docs/dev/ENVIRONMENT.md
PR 4847 docs/user/USAGE.md
PR 5021 core/libs/prx/libSceVideoOut/CMakeLists.txt
docs/user/USAGE.md
PR 5925 docs/user/USAGE.md
PR 6186 docs/dev/ENVIRONMENT.md
PR 6924 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 7449 docs/dev/ENVIRONMENT.md
PR 7457 docs/dev/ENVIRONMENT.md
PR 7514 docs/dev/ENVIRONMENT.md
PR 7642 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 7643 docs/dev/ENVIRONMENT.md
PR 8484 docs/dev/ENVIRONMENT.md
PR 9289 docs/dev/ENVIRONMENT.md
PR 9345 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 9356 docs/dev/ENVIRONMENT.md
PR 9387 docs/dev/ENVIRONMENT.md
PR 9508 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 10193 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 10442 docs/dev/ENVIRONMENT.md
PR 10678 docs/dev/ENVIRONMENT.md
PR 10757 docs/dev/ENVIRONMENT.md
PR 10792 docs/user/USAGE.md
PR 10861 docs/user/USAGE.md
PR 11435 docs/dev/ENVIRONMENT.md
PR 11436 docs/dev/ENVIRONMENT.md
PR 12324 docs/dev/ENVIRONMENT.md
PR 12678 docs/user/USAGE.md
PR 12746 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 12849 docs/dev/ENVIRONMENT.md
PR 13809 docs/dev/ENVIRONMENT.md
PR 13863 docs/dev/ENVIRONMENT.md
PR 13920 docs/dev/ENVIRONMENT.md
PR 13928 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 13929 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 14212 docs/dev/debt/libSceVideoOut.md
PR 14344 docs/dev/ENVIRONMENT.md
PR 15136 docs/dev/ENVIRONMENT.md
PR 15548 docs/dev/ENVIRONMENT.md
PR 15570 docs/dev/ENVIRONMENT.md
PR 15674 docs/dev/ENVIRONMENT.md
PR 16470 docs/dev/debt/libSceVideoOut.md
PR 16831 docs/dev/ENVIRONMENT.md
PR 17498 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 17611 docs/dev/ENVIRONMENT.md
PR 18082 docs/dev/ENVIRONMENT.md
docs/user/USAGE.md

@oneandonlydean oneandonlydean self-assigned this Oct 29, 2026
@MarcZX10
MarcZX10 force-pushed the feat/host-fullscreen branch from 7534a30 to 17da518 Compare October 29, 2026 17:08
@MarcZX10

Copy link
Copy Markdown
Contributor Author

Re-checked — new head, all five points addressed

Head 17da518 keeps the documented ANYPS5_FULLSCREEN contract and fixes the teardown and test failure paths you listed.

What I ran

  • Head 17da518a9e4fd626c22099461a83b14665148c6e, on current upstream/main (no rebase needed).
  • -DANYPS5_VIDEO_OUT_TEST_DRIVER=x11, then ANYPS5_REQUIRE_DISPLAY=1 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation xvfb-run -a ctest -R 'video_out_host_fullscreen|video_out_telemetry|video_out_flip' -V.
  • Static checks: check_conventions.py --base upstream/main, git diff --check, public-headers audit, env_reference.py --check.

Results

  • 22/22 pass (19 existing flip/telemetry tests, plus video_out_host_fullscreen, _window, and the new _failed_create). VUID- lines: 0. "Layer not found" message: 0. Static checks clean.
    1. Any non-empty value other than 0/windowed that is not 1/borderless (true, yes, on, 2, ...) opens borderless fullscreen as before and prints DisplayWindow: ANYPS5_FULLSCREEN='<value>' is not 0, 1, windowed or borderless; treating it as borderless. The parser no longer throws. USAGE.md, ENVIRONMENT.md and the PR text are updated.
    1. Destroy() releases only what exists; UpdateTitle and toggling cope with a missing fullscreen state. New video_out_host_fullscreen_failed_create opens a window whose icon0.png is corrupt, so creation throws after the SDL window exists and before the fullscreen state is built, then checks that Destroy() releases the window.
    1. HostFullscreenState::Release() is noexcept and ignores a failed ShowCursor, without retrying. The fake window has a throwing ShowCursor and the test checks it, including that the policy recovers.
    1. The window tests skip (77) only for a missing Vulkan window or video driver, and fail when ANYPS5_REQUIRE_DISPLAY or ANYPS5_REQUIRE_VULKAN is set. Checked: the offscreen driver with the variables set now fails ("window creation failed: ...Vulkan support..."), and without them it skips. A unit control pins that an icon failure, an extent failure, a subclass failure and an empty message are never skipped.
    1. The fixture creates its own uniquely named directory (pid, clock, attempt, with create_directory required to succeed) and removes only that one.
  • Smaller: the warning names the value. A debt line records that SDL_SetWindowFullscreen can complete asynchronously, so Size() right after leaving fullscreen may be the fullscreen size.

Negative control

Each break was made in a scratch copy, the intended test failed, and it was restored:

  • Destroy() without the null guard: _failed_create segfaults.
  • Release() rethrowing: video_out_host_fullscreen aborts.
  • the skip rule skipping everything: the skip-policy control fails.
  • legacy values mapped to windowed: both the parser test and the real-window test fail.
  • warning without the value: the parser test fails.
  • Release() retrying after a refused restore: the fake-window test fails.
  • DisplayWindow treating an unrecognised value as windowed: the real-window test fails.

Not verified

Windows (the subclass failure path itself), macOS, a desktop window manager or Wayland (Xvfb has no window manager, so the explicit size restore is covered only by the fake window), a hardware GPU (llvmpipe through Xvfb), multi-monitor use of ANYPS5_DISPLAY_INDEX, a game that opens a mouse.

I will re-run all of this on any new head.

AI-assisted: yes

@CnRJay CnRJay 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 state machine and the parser are in good shape, and oneandonlydean's points are addressed. One thing is not covered by any of the runs listed.

The swapchain path is untested on a real GPU. The description says the existing surface-extent handling in VulkanDevice.cpp "already covers a fullscreen transition", but every run is llvmpipe on Xvfb, which has no window manager. There is no compositor, no real present mode and no extent change at all. On a real driver a borderless toggle changes the surface extent, and the present then returns VK_SUBOPTIMAL_KHR or VK_ERROR_OUT_OF_DATE_KHR. The title can be in the middle of a flip when that happens, and the recreate drains the queue.

Please run F11 in and out on a real GPU and desktop session (Windows or Wayland/X11 with a WM) with VK_LAYER_KHRONOS_validation, and report two things:

  • no VUID- lines, in particular for swapchain image extents after the toggle;
  • the number of recreates per toggle and the frame time across the toggle from tools/trace_digest.py.

Without that, GPUs tested: llvmpipe via Xvfb only should state that the claim "no swapchain change needed" is unverified, because a missing recreate shows up as a stretched or frozen image rather than a test failure.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Re-checked — new head, swapchain claim stated as unverified

Thanks @CnRJay: every run of this PR is llvmpipe on Xvfb, which has no window manager, compositor or real present mode, so it cannot show how the swapchain behaves when the surface extent changes on a toggle.

What changed

The head is unchanged (17da518a9e). I edited the PR description: GPUs tested now says that the claim that the existing surface-extent handling in VulkanDevice.cpp needs no swapchain change for a fullscreen toggle is unverified on a real driver and desktop session.

Not verified

  • F11 in and out on a real GPU and desktop session (Windows, or X11/Wayland with a window manager) with VK_LAYER_KHRONOS_validation: not run here, only llvmpipe on Xvfb is available.
  • VUID- lines for swapchain image extents after the toggle: not measured.
  • The number of swapchain recreates per toggle and the frame time across the toggle from tools/trace_digest.py: not measured.

To get this to a good state

A run of F11 in and out on hardware, reporting those three points, would settle it. If someone can run it, a short report on this head is welcome and I will re-run the same commands on any new head.

@TechLevelZero

TechLevelZero commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 17da518 merged onto main 9f748f4 · tested 2026-10-30 21:52 UTC · 15 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 ✅ 834 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 844 of 3,021 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 (409 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 59.3 s, ⚠️ agc_driver_graphics 40.3 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 9 main runs
agc_submit_progress_no_timeline: failed in 7 of the last 9 main runs
Validation IDs already present on main (3 IDs in 123 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (123 tests): agc_driver, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_bitfield_mask, agc_driver_buffer_atomic_csub, agc_driver_buffer_atomics, agc_driver_buffer_atomics_inc_dec64, agc_driver_buffer_descriptor_runtime, and 115 more
VUID-vkCmdCopyImage-srcImage-01548 (8 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_plane_sampling_evicting, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (8 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_plane_sampling_evicting, 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 17da518a9e4fd626c22099461a83b14665148c6e 9f748f4d8e36ce3714f3b95f3386316e110a9b22
git checkout 9f748f4d8e36ce3714f3b95f3386316e110a9b22 && git merge --no-ff 17da518a9e4fd626c22099461a83b14665148c6e
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.

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Re-checked — fullscreen swapchain path remains unverified

Correction to my earlier wording: the latest report is a real NVIDIA GPU run, but its attached test log does not include any of this PR's video_out_host_fullscreen tests, so it does not answer the desktop swapchain question.

What I ran

  • Read the author-provided NVIDIA report and its 09-tests.log for exact PR head 17da518a9e4fd626c22099461a83b14665148c6e; I did not run the tests locally.
  • Checked the PR's registered fullscreen test names at the same head.

Results

Check Result
NVIDIA report Author reports 783 passed, 2 pre-existing failures, and 8 skips on an RTX 2000 Ada; this is hardware GPU evidence for the selected tests.
Fullscreen test selection The attached test log contains none of video_out_host_fullscreen, video_out_host_fullscreen_window, or video_out_host_fullscreen_failed_create.
Surface extent on a desktop session Not established by this run.

Not verified

A real SDL/Vulkan presentation session under a desktop window manager, including F11 enter/exit, the resulting surface extent and validation-layer output, remains unverified.

To get this to a good state

Please provide a real desktop-session run that toggles fullscreen while presenting through Vulkan and records the surface extent and validation output, or keep this behavior explicitly marked unverified. I will recheck the exact evidence before changing my review status.

Sources

@bunbeans2-arch

Copy link
Copy Markdown
Contributor

A run of this PR's three tests on a real Windows display, since the runs so far are llvmpipe on Xvfb: video_out_host_fullscreen_window aborts here, and the cause is in the test's environment setting, not in DisplayWindow.

Windows 11 Pro 10.0.22631, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), MSYS2 UCRT64 g++ 16.1.0, Release, the bundled SDL2 with SDL_VIDEODRIVER=windows as the test sets it. Head 17da518a9e merged onto main f7f03daf52, ctest -R "^video_out_host_fullscreen" -V, 3 runs:

  • video_out_host_fullscreen and video_out_host_fullscreen_failed_create pass 3 of 3.
  • video_out_host_fullscreen_window exits 0xc0000409 3 of 3 after borderless mode did not open fullscreen (the windowed and toggle cases before it pass).

Why: this SDL2 build has /* #undef HAVE_SETENV */ in its generated SDL_config.h, so on Windows SDL_setenv takes the SetEnvironmentVariableA branch (3rdparty/SDL2/src/stdlib/SDL_getenv.c line 69). DisplayWindow reads the setting with std::getenv("ANYPS5_FULLSCREEN"), which reads the C runtime's copy of the environment, and SetEnvironmentVariableA does not update that copy. So the test's SDL_setenv("ANYPS5_FULLSCREEN", "borderless", 1) never reaches the window. Checked by running: with ANYPS5_FULLSCREEN=borderless set before the test starts, it instead aborts at the first case with windowed mode opened fullscreen, since the test's SDL_setenv(..., "windowed", 1) is not seen either.

With only the test changed locally, its three SDL_setenv calls replaced by a helper that calls _putenv_s(name, value) under _WIN32 and setenv(name, value, 1) elsewhere, all three tests pass 3 of 3 on this display. That means the borderless start, leaving it at the creation size, and the windowed toggle and restore work on a real Windows window.

This says nothing about Vulkan validation or the swapchain present path; I did not check those here.

AI-assisted: yes (Claude Code)

@oneandonlydean

Copy link
Copy Markdown
Collaborator

At d9cf3cef3f, the Windows failure reported in the real-display run still appears present: HostFullscreen.cpp:302,323,336 changes ANYPS5_FULLSCREEN through SDL_setenv, while DisplayWindow.cpp:105 reads it through std::getenv. On the bundled Windows SDL branch, SDL_setenv uses SetEnvironmentVariableA, which does not update the CRT environment read by std::getenv. Please make the test update the environment consumed by production on Windows, verify the value read back before each case, and rerun video_out_host_fullscreen_window on a Windows display. Keep the required-display failure behavior; this needs a real passing case rather than a skip. The earlier NVIDIA/Xvfb report does not cover the Windows environment mismatch.

@MarcZX10

MarcZX10 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Re-checked — new head, fullscreen setting now reaches Windows getenv

The environment mismatch is real: on Windows the bundled SDL's SDL_setenv only calls SetEnvironmentVariableA, which does not change the C runtime environment that std::getenv reads in DisplayWindow.cpp.

Head 140a77e430 adds one commit on top of 235d656a12. The three window cases now write ANYPS5_FULLSCREEN with _putenv_s on Windows and read it back before each case, so a setting that does not reach the process fails the test instead of passing. The required-display failure path is unchanged.

Checked: HostFullscreen.cpp compiles for Linux with the SDL2 headers, and for Windows with x86_64-w64-mingw32-g++ -fsyntax-only.

Not run: the window tests on a Windows display. That needs a Windows run with a display on this head; I can't run one here, so this is still open until that run passes.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 140a77e merged onto main 3741ca9 · tested 2026-11-01 07:45 UTC · 20 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 ✅ 866 passed · 2 failed (0 new, 1 also fail on main, 1 unstable on main) · 0 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 868 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 (423 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 73.0 s, ⚠️ agc_driver_interpolation_modes 33.8 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 (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_clear_hle: failed in 2 of the last 10 main runs
Failing on main too (1, not counted against this PR)
agc_driver_image_table
Validation IDs already present on main (5 IDs in 363 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (363 tests): 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, agc_driver_bindless_images, and 355 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
Reproduce
git fetch origin 140a77e430fca41a8dd6e1d59b54915526a61b0d 3741ca9327246d0df81638726a986cef862b6db5
git checkout 3741ca9327246d0df81638726a986cef862b6db5 && git merge --no-ff 140a77e430fca41a8dd6e1d59b54915526a61b0d
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

Copy link
Copy Markdown
Collaborator

@MarcZX10 the _putenv_s change and per-case std::getenv readback at 140a77e430 address the Windows environment mismatch. The remaining part of the request is the real-display result, which your latest reply and the description still mark as not run. Please attach a Windows run of video_out_host_fullscreen_window at this head, with display-required mode enabled so an unavailable display fails, and record the OS/SDL/Vulkan setup and actual test result. The earlier Linux/Xvfb result does not cover this Windows path. No further source change is requested for the environment helper.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — Windows display run still missing; hosted Windows check skipped the window test

oneandonlydean asks for a Windows run of video_out_host_fullscreen_window with a display required; the hosted Windows job at this head skipped that test and did not set the variable that makes a missing display fail.

What I ran

Live head: 140a77e (OPEN, same as the batch file). Read the comments and reviews with gh api. Read files with git -C /marc/AnyPS5 show 140a77e4…:<path>. Read the Windows job log via gh api (job 124782472623, run 41284117161). Read the hosted check rollup with gh pr view. Nothing was built or run.

Results

Check Result Note
windows SUCCESS run 41284117161; 2581 ctest, 0 failed; video_out_host_fullscreen_window Skipped
conventions, library-portability SUCCESS hosted, at this head

Findings

  • oneandonlydean, 2026-11-01 09:56 UTC: attach a Windows run of video_out_host_fullscreen_window with the display required, and record OS, SDL and Vulkan. Confirmed missing. The window test is registered at CMakeLists.txt L112-L113 and exits 77 (skip) when no display is present. DisplayRequired() reads ANYPS5_REQUIRE_DISPLAY or ANYPS5_REQUIRE_VULKAN (HostFullscreen.cpp L205-L207). The hosted Windows job log shows the window test Skipped and neither variable set.
  • The env helper change the reviewer accepted: _putenv_s on Windows and a readback check are at HostFullscreen.cpp L303-L311.
  • The PR body (line 26) still lists Windows and a real display as NOT RUN.

Sources

  • add_test(NAME video_out_host_fullscreen_window COMMAND video_out_host_fullscreen_tests window)
    set_tests_properties(video_out_host_fullscreen_window PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77 RESOURCE_LOCK videoout_app0 ENVIRONMENT "SDL_VIDEODRIVER=${ANYPS5_VIDEO_OUT_TEST_DRIVER}")
  • static bool DisplayRequired() {
    return std::getenv("ANYPS5_REQUIRE_DISPLAY") != nullptr || std::getenv("ANYPS5_REQUIRE_VULKAN") != nullptr;
    }
  • static void SetFullscreenSetting(const char* value) {
    #ifdef _WIN32
    // SDL_setenv on Windows only changes the process block, which std::getenv does not read.
    _putenv_s("ANYPS5_FULLSCREEN", value);
    #else
    SDL_setenv("ANYPS5_FULLSCREEN", value, 1);
    #endif
    const char* seen = std::getenv("ANYPS5_FULLSCREEN");
    Require(seen != nullptr && std::strcmp(seen, value) == 0, "the fullscreen setting did not reach the environment that production reads");

Not verified

  • The reviewer's requested run itself: not done here, and I cannot run it.
  • Whether a real Windows desktop with SDL and Vulkan passes the test: unknown.
  • Nothing was built or run here.

@benjaminmathias

Copy link
Copy Markdown
Contributor

Native Windows display validation

The requested video_out_host_fullscreen_window run passes 3/3 on a real Windows desktop with display-required mode enabled. The two other submitted fullscreen cases also pass 3/3. This covers the _putenv_s fixture correction in the outstanding Windows request.

Tested sources

  • PR head: 140a77e430fca41a8dd6e1d59b54915526a61b0d.
  • Main: 98346b748caaf5e8e533540f3bb9e4ceacf3d7ab.
  • Local integration tree: 849eb520efc1bbe812819eb438eca59c6e47b693; conflict-free, with no manual source or submitted-test changes. The remote PR head was rechecked before publication and is unchanged.

Environment: Windows 11 Pro 10.0.26300, Ryzen 7 5700X3D, NVIDIA GeForce RTX 4070 SUPER (driver 621.01 / 32.0.16.2101), WinLibs GCC 15.2.0 r7 UCRT POSIX SEH, CMake/CTest 4.3.1, Ninja 1.13.2. Release, BUILD_TESTING=ON, bundled SDL2 with SDL_VIDEODRIVER=windows. Main and candidate used separate fresh build directories, matching pinned submodules and the same prebuilt FFmpeg package; project objects and runtime binaries were rebuilt separately.

Selection Main PR integration
Five common VideoOut cases, each repeated three times 15 passes 15 passes
video_out_host_fullscreen, _window, _failed_create, each repeated three times Not present 9 passes
External F11/presentation diagnostic, three runs 3 passes 3 passes

Common cases: video_out_flip_controls, video_out_flip_resolution, video_out_flip_present, video_out_telemetry, video_out_telemetry_caption.

All runs used ANYPS5_REQUIRE_DISPLAY=1, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer. Loader output confirms Khronos 1.4.363 was inserted in the Vulkan presentation tests and diagnostic. Neither side logged a missing requested layer or any VUID- message. Both logged the existing loader diagnostic about the GOG overlay's deprecated manifest format.

Verbose CTest output confirms 18 successful executions on main and 27 on the integration, zero failures, skips or timeouts. JUnit and check_skips.py --job windows --require-tests agree on zero skips; repetition counts come from verbose output.

The submitted window test does not present Vulkan frames. To check that boundary separately, an external copy of the existing Flip.cpp presentation fixture queued SDL F11 key-down/up events through the production input path and required the Vulkan presentation counter to advance after each flip. The identical diagnostic source was compiled against each side's libraries without changing production code. Each side completed 12 toggles and 48 presentations over three runs. Representative output:

PROBE frame=3 fullscreen=1 window=2560x1440 drawable=2560x1440 presents=4
PROBE frame=7 fullscreen=0 window=1484x835 drawable=1484x835 presents=8
PROBE frame=11 fullscreen=1 window=2560x1440 drawable=2560x1440 presents=12
PROBE frame=15 fullscreen=0 window=1484x835 drawable=1484x835 presents=16
Build and test commands (paths abbreviated)
cmake -S <source> -B <build> -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows -DCMAKE_C_COMPILER=<WinLibs-gcc> -DCMAKE_CXX_COMPILER=<WinLibs-g++> -DPython3_EXECUTABLE=<python> -DFFMPEG_PREBUILT_DIR=<same-package>
cmake --build <main-build> --target video_out_flip_tests video_out_telemetry_tests --parallel 8
cmake --build <pr-build> --target video_out_host_fullscreen_tests video_out_flip_tests video_out_telemetry_tests --parallel 8
ctest --test-dir <main-build> -R '^video_out_(flip_(present|controls|resolution)|telemetry|telemetry_caption)$' --no-tests=error --interactive-debug-mode 0 -V --repeat until-fail:3 --parallel 1 --output-log <log> --output-junit <junit>
ctest --test-dir <pr-build> -R '^video_out_(host_fullscreen(_window|_failed_create)?|flip_(present|controls|resolution)|telemetry|telemetry_caption)$' --no-tests=error --interactive-debug-mode 0 -V --repeat until-fail:3 --parallel 1 --output-log <log> --output-junit <junit>
ctest --test-dir <external-diagnostic> --no-tests=error --interactive-debug-mode 0 -V --repeat until-fail:3 --parallel 1 --output-log <log> --output-junit <junit>
python tools/check_skips.py <junit> --job windows --require-tests

The required environment above applied to every CTest invocation. The extracted official SDK layer was supplied through VK_LAYER_PATH. Existing test timeout properties were retained; the external diagnostic had a 30-second timeout.

Scope: focused native Windows testing on one GPU/display configuration. Swapchain recreation counts and frame-time traces were not measured. Multi-monitor behavior, a title opening sceMouse, game/console behavior and the full suite remain untested. This report supplies test evidence without changing review status.

AI-assisted: yes (Codex). The reported builds, tests and diagnostic were executed locally.

…e meaning fullscreen

The documented contract is that a non-empty value other than 0 opens the
window fullscreen. Rejecting true, yes, on or 2 would turn a working
setup into a startup error. 0 and windowed are windowed, 1 and
borderless are borderless, and every other non-empty value is borderless
and reported as unrecognised to the caller so it can warn. The parser no
longer throws; the window test that expected an error for an invalid
value goes with it.
HostFullscreenWarning builds the one-line message that names the
variable and the offending value, so a typo is easy to find.
… spelling

The display window prints the warning on stderr once, when it is created
with a value other than 0, 1, windowed or borderless, and still opens
borderless as the documented contract says.
Checks that each previously fullscreen spelling is flagged and stays
borderless, that recognised spellings and unset are not flagged, and that
the warning is one line naming the variable and the value.
Release shows the cursor the policy hid, and SDL_ShowCursor can fail.
Destroy is noexcept, so a throw there would terminate the process and
skip releasing the subclass and the window. Release now swallows a failed
restore and forgets that it hid the cursor, so it does not retry.
…ndow

Release must return normally when ShowCursor throws, must not retry, and
the policy must be able to hide the cursor again afterwards.
…hose fullscreen state was never built

create() assigns the SDL window before the icon, the Windows subclass and
the fullscreen state, any of which can throw. VideoOutDriver catches that
and calls Destroy, which dereferenced the missing state. Destroy now
releases only what exists, UpdateTitle skips the cursor refresh without
it, and toggling reports that the window is not ready.
…tory, inject a failed create

The real-window test no longer turns every window failure into a skip: it
skips only for a missing Vulkan window or video driver and fails when
ANYPS5_REQUIRE_DISPLAY or ANYPS5_REQUIRE_VULKAN is set, and a control
pins that other failures are not skipped. The fixture creates its own
uniquely named directory and removes only that. A new run opens a window
whose icon0.png is corrupt, so creation throws after the SDL window
exists and before the fullscreen state is built, and checks that Destroy
releases the window.
…EEN value

A value such as yes still opens the window fullscreen.
…n has no surface extension

On a Windows runner whose Vulkan installation has no VK_KHR_surface extension, SDL reports 'Installed Vulkan doesn't implement the VK_KHR_surface extension'. DisplayWindow passes that through, and the test's skip check recognised only the 'Vulkan support' message, so Open() aborted instead of skipping. The skip check now also accepts the surface message when no display is required, and SkipPolicyTest pins both sides of it. The previous classifier fails the new surface case; the new one passes all six cases of that check.
…ironment reads it

The host fullscreen test set ANYPS5_FULLSCREEN with SDL_setenv. On Windows the bundled SDL writes that only through SetEnvironmentVariableA, which does not change the C runtime environment that std::getenv reads in DisplayWindow.cpp, so the three window cases never tested the value they named. The test now writes the setting with _putenv_s on Windows and reads it back before each case, so a setting that does not reach the process fails the test instead of passing silently.
@MarcZX10
MarcZX10 force-pushed the feat/host-fullscreen branch from 7e4b036 to 93e0673 Compare November 4, 2026 12:17
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 7e4b036 merged onto main 5b1d381 · tested 2026-11-04 12:35 UTC · 21 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 ✅ 1,122 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 7 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,134 of 3,883 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 (547 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.5 s, ⚠️ public_headers 63.3 s, ⚠️ agc_driver_image_sample_unnormalized 49.0 s, ⚠️ agc_driver_lazy_resolved_abi 40.7 s, ⚠️ agc_driver_indexed_copy 30.7 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_fast_clear_submit: failed in 2 of the last 10 main runs
agc_driver_pipeline_journal: failed in 8 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
Validation IDs already present on main (8 IDs in 465 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (465 tests): 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, agc_driver_bindless_images, and 457 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (7)
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_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_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
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_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 7e4b036c475b72015d01647fbaecd0c86d27a6db 5b1d381d5ad5d9f923326b18479c3bd889cdd588
git checkout 5b1d381d5ad5d9f923326b18479c3bd889cdd588 && git merge --no-ff 7e4b036c475b72015d01647fbaecd0c86d27a6db
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.

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

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 93e0673 merged onto main b11c7bf · tested 2026-11-04 13:41 UTC · 14 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,127 passed · 3 failed (0 new, 1 also fail on main, 2 unstable on main) · 4 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,134 of 3,894 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 (547 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 3 of the last 10 main runs
agc_driver_submit_progress: failed in 3 of the last 10 main runs
Failing on main too (1, not counted against this PR)
agc_driver_image_table
Validation IDs already present on main (13 IDs in 468 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (468 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 460 more
VUID-VkShaderModuleCreateInfo-pCode-08737 (8 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_float16_fma_rounding, agc_driver_float16_unused_nan_payloads, agc_driver_packed_alu, agc_driver_packed_f16_denormal_modes, agc_driver_packed_float16_native
VUID-VkShaderModuleCreateInfo-pCode-08739 (8 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_float16_fma_rounding, agc_driver_float16_unused_nan_payloads, agc_driver_packed_alu, agc_driver_packed_f16_denormal_modes, agc_driver_packed_float16_native
VUID-VkShaderModuleCreateInfo-pCode-08741 (8 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_float16_fma_rounding, agc_driver_float16_unused_nan_payloads, agc_driver_packed_alu, agc_driver_packed_f16_denormal_modes, agc_driver_packed_float16_native
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_srgb8_color_target
VUID-VkPipelineShaderStageCreateInfo-module-parameter (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (4)
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_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
Reproduce
git fetch origin 93e0673893a46896bb4c26d074131d019fd8e340 b11c7bf84f5d2f636ff60166cc3371bd071e24d5
git checkout b11c7bf84f5d2f636ff60166cc3371bd071e24d5 && git merge --no-ff 93e0673893a46896bb4c26d074131d019fd8e340
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 93e0673 merged onto main b11c7bf · tested 2026-11-04 15:30 UTC · 14 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 ✅ 1,122 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 7 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,134 of 3,894 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 (547 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ public_headers 80.9 s, ⚠️ agc_driver_image_sample_unnormalized 52.3 s, ⚠️ agc_driver_lazy_resolved_abi 42.4 s, ⚠️ agc_driver_sample_multisample_target 33.7 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 8 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
vulkan_validation_gate_attribution: Failed in the parallel run; also passed only on retry in 21 other runs in the last 7 days
Validation IDs already present on main (8 IDs in 468 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (468 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 460 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (7)
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_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_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
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_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 93e0673893a46896bb4c26d074131d019fd8e340 b11c7bf84f5d2f636ff60166cc3371bd071e24d5
git checkout b11c7bf84f5d2f636ff60166cc3371bd071e24d5 && git merge --no-ff 93e0673893a46896bb4c26d074131d019fd8e340
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.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi MarcZX10,

Main moved and this branch conflicted in docs/dev/debt/libSceVideoOut.md, so I merged current main into your branch as 5a9f9a9dc0. The conflict was additive: your three fullscreen entries are kept, followed by main's new Bluetooth DualSense haptics entry. Nothing else changed. The diff against main is exactly your nine files, and the VideoOut tests pass locally on Linux (43/43), including video_out_host_fullscreen.

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

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 5a9f9a9 merged onto main 4639eff · tested 2026-11-05 05:59 UTC · 35 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 ✅ 1,166 passed · 7 failed (0 new, 4 also fail on main, 3 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 1,181 of 3,962 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 (570 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.3 s, ⚠️ public_headers 66.2 s, ⚠️ agc_driver_image_sample_unnormalized 37.1 s, ⚠️ conventions_pr_template 31.9 s
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_fast_clear_submit: failed in 2 of the last 10 main runs
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
trace_digest_TraceDigestTests_test_cli_rejects_invalid_event_fields_without_partial_output: failed in 2 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
vulkan_validation_gate_attribution: Failed in the parallel run; also passed only on retry in 29 other runs in the last 7 days
Validation IDs already present on main (4 IDs in 487 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (487 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 479 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
Skipped (8)
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_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_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
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_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 5a9f9a9dc0c7dc1da56d4282f48e69c83447efc0 4639eff7f4c23325a916875a0e37f1e312fa18f4
git checkout 4639eff7f4c23325a916875a0e37f1e312fa18f4 && git merge --no-ff 5a9f9a9dc0c7dc1da56d4282f48e69c83447efc0
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.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 5a9f9a9 merged onto main 1e24993 · tested 2026-11-05 09:17 UTC · 15 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,177 passed · 2 failed (0 new, 1 also fail on main, 1 unstable on main) · 4 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,183 of 3,968 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 (570 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 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 3 of the last 10 main runs
Failing on main too (1, not counted against this PR)
agc_driver_image_table
Validation IDs already present on main (9 IDs in 487 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (487 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 479 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 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
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 (4)
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_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
Reproduce
git fetch origin 5a9f9a9dc0c7dc1da56d4282f48e69c83447efc0 1e24993fa3a7da25e8fc27152af654687ba64552
git checkout 1e24993fa3a7da25e8fc27152af654687ba64552 && git merge --no-ff 5a9f9a9dc0c7dc1da56d4282f48e69c83447efc0
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.

@adam25136

Copy link
Copy Markdown
Contributor

Windows run with a real display, for head 5a9f9a9dc0 (oneandonlydean's Nov 5 merge of main) merged into main d23df92b38 (git merge --no-ff, clean merge). Earlier real-display Windows runs were on older heads: bunbeans2-arch's (RX 9070 XT) and benjaminmathias's (RTX 4070 SUPER, driver 621.01, 3 of 3). This one adds the post-merge head, an RTX 5080 and driver 621.14, in a single run.

GPU NVIDIA GeForce RTX 5080 (10de:2c02), driver 621.14 (32.0.16.2114), Vulkan 1.4.357
Host Windows 10 Pro 22H2 (19045), i9-12900KF, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON
Selection 971 tests, chosen by tools/select_tests.py select for the 9 changed files
Run select_tests.py ctest build --parallel 4 --timeout 120 with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1; main d23df92b38 ran its full suite (4,198 tests) the same way on this machine
Result 970 passed, 1 skipped, 0 failed
Validation Only the selection's 33 agc_* tests ran under VK_LAYER_KHRONOS_validation 1.4.367 (no messages, as on main). The VideoOut tests, including the three new ones, did not run with the layer
  • The three new tests pass: video_out_host_fullscreen, video_out_host_fullscreen_failed_create and video_out_host_fullscreen_window.
    • The window test ran with SDL_VIDEODRIVER=windows (this build's ANYPS5_VIDEO_OUT_TEST_DRIVER).
    • With ANYPS5_REQUIRE_VULKAN=1 its DisplayRequired() holds, so a missing display or Vulkan window would have failed it rather than skipped it.
    • Its output includes ANYPS5_FULLSCREEN='yes' is not 0, 1, windowed or borderless; treating it as borderless.
  • The existing VideoOut tests pass: all 28 video_out_flip_* tests and video_out_telemetry*.
  • The skip (guest_video_out_wqhd_detection_no_vulkan) also skips on main here.

No title was run.

AI-assisted: yes. Claude Code ran the builds and tests and drafted this comment; a separate review agent checked it. The numbers are from the runs on this machine.

… Vulkan is required

ANYPS5_REQUIRE_VULKAN=1 only says a Vulkan device must exist; the offscreen video driver the GPU test legs use has no Vulkan window surface, so these two tests aborted instead of skipping. Like the other video out tests, they now treat only ANYPS5_REQUIRE_DISPLAY as requiring a window.

Co-authored-by: MarcZX10 <67475268+MarcZX10@users.noreply.github.com>
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi @MarcZX10, thanks for this. To get it moving we pushed one commit on top of your branch, and you're credited on it.

Our GPU test run aborted video_out_host_fullscreen_window and video_out_host_fullscreen_failed_create with "window creation failed: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform". DisplayRequired() in core/libs/prx/libSceVideoOut/tests/HostFullscreen.cpp also counted ANYPS5_REQUIRE_VULKAN, which our GPU legs and the Linux CI job set, so the offscreen driver's missing window surface was treated as a failure. The other video out tests (Flip.cpp, FrameDumpQueue.cpp and the rest) look only at ANYPS5_REQUIRE_DISPLAY.

The commit drops that one clause, so both tests exit 77 and show as skipped under the offscreen driver, as the sibling tests do, and still fail when ANYPS5_REQUIRE_DISPLAY is set. Nothing else changed. If you'd rather keep the Vulkan check some other way, just say so.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head b97cc09 merged onto main 080dbd0 · tested 2026-11-05 21:38 UTC · 10 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,330 passed · 1 failed (0 new, 1 also fail on main) · 2 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,333 of 4,077 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 (637 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 104.7 s
Failing on main too (1, not counted against this PR)
agc_driver_image_table
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 (2)
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_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
Reproduce
git fetch origin b97cc0911ac51d491006945a6501d562daa0e853 080dbd08c6f83be5a1768af7d3342d701bf34d21
git checkout 080dbd08c6f83be5a1768af7d3342d701bf34d21 && git merge --no-ff b97cc0911ac51d491006945a6501d562daa0e853
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 4bde85a into boykopovar:main Nov 11, 2026
13 checks passed
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