Skip to content

feat(libc): export _setjmp and _longjmp - #12149

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
AlexFigas:feat/libc-underscore-setjmp
Nov 4, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
AlexFigas:feat/libc-underscore-setjmp

Conversation

@AlexFigas

@AlexFigas AlexFigas commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What

AnyPS5's libc had setjmp and longjmp but not _setjmp and _longjmp, the BSD forms that leave the signal mask alone. The libc.prx bundled with PPSA21564 (build J03093718) exports both, and this PR adds them.

That binary's four functions differ only in the signal mask:

  • setjmp (0x548b0). It calls _sigprocmask(SIG_BLOCK, NULL, buffer + 0x48), then runs the same register saves as _setjmp (0x1153a0).
  • longjmp (0x54900). It calls _sigprocmask(SIG_SETMASK, buffer + 0x48, NULL), then runs the same restores as _longjmp (0x1153e0).
  • _longjmp. It keeps the current MXCSR exception flags and takes only the other MXCSR bits from the buffer. A value of 0 returns 1.

This matches FreeBSD 11.4's _setjmp.S.

_setjmp and _longjmp here are setjmp and longjmp from JumpBuffer.cpp without the signal-mask calls, in the same buffer layout. So a buffer from either setjmp is accepted by either longjmp, as on FreeBSD.

  • _setjmp writes 0 at 88, where setjmp marks a saved mask. A longjmp to its buffer therefore restores no mask, where the binary would read whatever is at 0x48.
  • _longjmp keeps the current MXCSR exception flags as the binary does. On Windows it calls GuestStackSwitch_nid_no_patch with the target stack pointer before switching, as longjmp does.

The debt entry records what still differs from the binary: the layout (the binary stores the stack pointer at the call, the x87 control word at 64 and MXCSR at 68), the 0 at 88, and that longjmp restores the saved MXCSR exception flags where the binary's keeps the current ones.

Tested

On Ubuntu 24.04.5 under WSL2 (GCC 13.3, Release). Head 88f89fc merges main 1a5267f into the previous head 03c2195 (main 4ac683f), which had merged into 4ce41ad (main 98ddd9c before it, merged into this PR's commit). main has #13220, so the macOS write-watch jobs no longer stop at their CMake configure, and it restored check_skips.py after #14881, so the check_skips tests that failed the relinker jobs pass again.

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: n/a
  • AI-assisted: yes

@ycbuzi

ycbuzi commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Windows run of 5f05c8e780 merged onto main 6e9b9134f6 (951c9a5618, clean), since Tested is WSL2 only. Windows 11 Home 10.0.26200, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT, SEH), Release, BUILD_TESTING=ON.

  • Built guest_underscore_jump_tests with no errors. The only warning is main's existing _sigintr_nid_postfix one in Signals.cpp.
  • guest_underscore_jumps passes both runs of ctest --repeat until-fail:2, including the assembly caller's callee-saved register check, on the MinGW build.
  • No runnable negative control: with main's libc/include/Api.hpp and src/JumpBuffer.cpp, the test doesn't compile, because it calls the new _setjmp_nid_postfix and _longjmp_nid_postfix.

AI-assisted: yes (Claude Code)

@github-actions

github-actions Bot commented Oct 28, 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 12605 docs/dev/debt/libc.md L44-45

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 4563 core/libs/prx/libkernel/CMakeLists.txt
PR 5021 core/libs/prx/libc/src/JumpBuffer.cpp
core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libc.md
PR 5303 docs/dev/debt/libc.md
PR 6149 core/libs/prx/libkernel/CMakeLists.txt
PR 6819 docs/dev/debt/libc.md
PR 6936 core/libs/prx/libkernel/CMakeLists.txt
PR 7081 docs/dev/debt/libc.md
PR 7386 docs/dev/debt/libc.md
PR 7447 docs/dev/debt/libc.md
PR 7645 core/libs/prx/libkernel/CMakeLists.txt
PR 7715 docs/dev/debt/libc.md
PR 8150 docs/dev/debt/libc.md
PR 8965 docs/dev/debt/libc.md
PR 9087 docs/dev/debt/libc.md
PR 9156 core/libs/prx/libkernel/CMakeLists.txt
PR 9293 core/libs/prx/libkernel/CMakeLists.txt
PR 9297 core/libs/prx/libkernel/CMakeLists.txt
PR 9302 core/libs/prx/libkernel/CMakeLists.txt
PR 9340 docs/dev/debt/libc.md
PR 9371 docs/dev/debt/libc.md
PR 9383 core/libs/prx/libkernel/CMakeLists.txt
PR 9389 core/libs/prx/libkernel/CMakeLists.txt
PR 9447 docs/dev/debt/libc.md
PR 9526 docs/dev/debt/libc.md
PR 9557 core/libs/prx/libkernel/CMakeLists.txt
PR 9566 core/libs/prx/libkernel/CMakeLists.txt
PR 9929 docs/dev/debt/libc.md
PR 10113 docs/dev/debt/libc.md
PR 10158 docs/dev/debt/libc.md
PR 10165 docs/dev/debt/libc.md
PR 10200 docs/dev/debt/libc.md
PR 10226 docs/dev/debt/libc.md
PR 10405 docs/dev/debt/libc.md
PR 10780 core/libs/prx/libc/include/Api.hpp
docs/dev/debt/libc.md
PR 10987 docs/dev/debt/libc.md
PR 11332 docs/dev/debt/libc.md
PR 11621 core/libs/prx/libc/include/Api.hpp
docs/dev/debt/libc.md
PR 11664 core/libs/prx/libc/include/Api.hpp
docs/dev/debt/libc.md
PR 11724 docs/dev/debt/libc.md
PR 11831 core/libs/prx/libc/include/Api.hpp
core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libc.md
PR 11939 core/libs/prx/libkernel/CMakeLists.txt
PR 12053 docs/dev/debt/libc.md
PR 12397 docs/dev/debt/libc.md
PR 12510 docs/dev/debt/libc.md
PR 12511 docs/dev/debt/libc.md
PR 12514 docs/dev/debt/libc.md
PR 12518 docs/dev/debt/libc.md
PR 12574 docs/dev/debt/libc.md
PR 12594 docs/dev/debt/libc.md
PR 12598 docs/dev/debt/libc.md
PR 12622 docs/dev/debt/libc.md
PR 12627 docs/dev/debt/libc.md
PR 12704 docs/dev/debt/libc.md
PR 12970 core/libs/prx/libkernel/CMakeLists.txt
PR 13449 docs/dev/debt/libc.md
PR 13486 core/libs/prx/libc/include/Api.hpp
core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libc.md
PR 13793 docs/dev/debt/libc.md
PR 13794 docs/dev/debt/libc.md
PR 13804 docs/dev/debt/libc.md
PR 13809 docs/dev/debt/libc.md
PR 14085 docs/dev/debt/libc.md
PR 14212 docs/dev/debt/libc.md
PR 14235 docs/dev/debt/libc.md
PR 14264 core/libs/prx/libkernel/CMakeLists.txt
PR 14299 core/libs/prx/libkernel/CMakeLists.txt
PR 14588 docs/dev/debt/libc.md

@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 This is ready for review: head 081d5fd on main 2227f13, which still merges cleanly. The Tested section lists the runs on this head.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed — changes requested

The implementation and test report are detailed, but this branch is based on main 2227f13661, while current main is 52c09d567d2fa453494dd720fcf53a98149468e4 (500 commits ahead of the branch). CONTRIBUTING.md requires each branch to be based on current main. The reported guest_underscore_jumps and guest_signal_sets runs therefore do not validate the current integration state.

What I ran

  • Reviewed exact head 081d5fd372ca845f8fef72a3623cefeec589bfab and its declared base.
  • Ran a merge preview and git diff --check against current main.
  • Checked the exact-head test report and current hosted-check scope.

Results

Check Result
Current-main merge preview Clean, but current main is not in the branch history
git diff --check Passed
Focused tests Author reports 3 runs each on base 2227f13661; no run against current 52c09d5 is reported
Windows/macOS behavior Not tested in the report

Please refresh the branch onto current main and rerun the focused jump/signal tests on that exact head. I have not independently built or run the C++ tests, so I am not approving the stale integration snapshot.

They save and restore what setjmp and longjmp do without the signal mask. _longjmp keeps the current MXCSR exception flags and takes the other MXCSR bits from the buffer, as the bundled libc.prx's _longjmp (J03093718, 0x1153e0) and FreeBSD's ___longjmp do, and on Windows it moves the TEB stack bounds as longjmp does. _setjmp writes 0 where setjmp marks a saved mask, so longjmp restores none from its buffer.
@AlexFigas
AlexFigas force-pushed the feat/libc-underscore-setjmp branch from 081d5fd to 056c4b4 Compare October 29, 2026 10:17
@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Rebased onto main 1b580f1: head 056c4b4, which merges cleanly with current main 1d8fd64. On this head guest_underscore_jumps and guest_signal_sets pass 3 runs each, and the built libc.prx exports _setjmp and _longjmp.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-checked — changes requested

The new report supplies exact-head runs for guest_underscore_jumps and guest_signal_sets, plus the two exports. The branch is based on 1b580f13cf; current main is ba5b5330b3. Since that base, current main changed this PR's libkernel/CMakeLists.txt and docs/dev/debt/libc.md. Please merge current main and rerun the focused tests and export check on the resulting exact head. I am not disputing the reported results on 056c4b4f4a; they do not validate the current-main integration.

@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Merged main 98ddd9c, which is still current main: head 4ce41ad. On this head guest_underscore_jumps and guest_signal_sets pass 3 runs each, and the built libc.prx exports _setjmp and _longjmp.

@AlexFigas
AlexFigas requested a review from MarcZX10 October 30, 2026 09:49

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed — changes requested

I reviewed head 4ce41adcafb39c2bb083fd2574a9a5533c6833f9; before approval, the required landing-order agreement with open PR #12688 needs to be resolved because its jump-buffer context changes affect the new underscore variants.

What I ran

Head: 4ce41adcafb39c2bb083fd2574a9a5533c6833f9; PR base: 98ddd9c1792bbab016ceed5db267a93d1d61f00a. I also previewed the PR against current upstream main b7488e1ff53e6cfca82af972df1d09fa71e7051d; it merged cleanly. Environment: Linux 6.1.0-54-amd64, x86_64; no compiler or build was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12149
git diff --check 98ddd9c1792bbab016ceed5db267a93d1d61f00a...refs/review/pr-12149-current
python3 tools/check_conventions.py --base 98ddd9c1792bbab016ceed5db267a93d1d61f00a --head refs/review/pr-12149-current --title 'feat(libc): export _setjmp and _longjmp' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-12149-4ce41adcafb3/pr-body.md
python3 tools/pr_abi_audit.py --base 98ddd9c1792bbab016ceed5db267a93d1d61f00a --head refs/review/pr-12149-current --json
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestUnderscoreJumps.cpp core/libs/prx/libkernel/CMakeLists.txt
git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-12149-current

Results

Check Result
Precheck, diff, conventions, dependency/mergeability Precheck completed on the exact head/base; diff and conventions pass; current-main merge preview is clean.
ABI audit Passed with lexical warnings: assembly-defined jump symbols are not recognized by the audit; the separate libc___cxa_finalize alias warning is unrelated. I inspected the assembly definitions manually.
Test quality and registration Heuristic flagged the new test path because CMake uses ${LIBS_INCLUDE_DIR}; the PR explicitly registers guest_underscore_jump_tests and guest_underscore_jumps.
Hosted Windows Job passed, but its log says no changed guest test sources were found, so it did not run guest_underscore_jumps.
Hosted macOS write-watch Both jobs failed during separate write-watch CMake configuration because duplicate test names were declared; these jobs do not test this PR's changed paths.
Hosted Linux Skipped.
Author-reported focused tests The author reports guest_underscore_jumps and guest_signal_sets each passed 3 runs on this exact head under WSL2; I did not run these tests locally.
Unedited output from local checks and relevant CI log lines
git diff --check: [no output; exit code 0]

All conventions checks passed.

ABI audit summary:
status: passed_with_warnings
_longjmp_nid_postfix: definition-not-found — No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards.
_setjmp_nid_postfix: definition-not-found — No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards.
libc___cxa_finalize: nid-alias-differs-from-symbol-hash — Explicit NID H2e8t5ScQGc differs from computed symbol NID z5JcC5WSmyA; verify intentional aliasing.
longjmp_nid_postfix: definition-not-found — No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards.
setjmp_nid_postfix: definition-not-found — No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards.

Test-quality heuristic:
{
  "findings": [
    {
      "path": "core/libs/tests/GuestUnderscoreJumps.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

Current-main merge preview:
5203c1bb2dd09865d37cbe3b2aaf88c2615345ec

Windows test step:
No guest core/libs test sources changed
No guest core/libs test sources changed; the libs build still ran

macOS write-watch CMake errors:
CMake Error at CMakeLists.txt:42 (add_test):
  add_test given test NAME "write_watch_execute-fault" which already exists
CMake Error at CMakeLists.txt:42 (add_test):
  add_test given test NAME "write_watch_read-fault" which already exists in

Negative control

I did not run a local negative control: this no-build review did not compile the changed test or binary.

Findings

Blocking

The repository's overlap rule requires authors of PRs touching the same lines/files to agree on landing order and record any dependency. The overlap notice identifies #12688 as sharing core/libs/prx/libc/src/JumpBuffer.cpp; inspecting its exact head shows JumpBufferSaveMask_nid_no_patch stores a per-jump context at offset 92 and JumpBufferRestoreMask_nid_no_patch restores it. This PR's new _setjmp only writes the flag at offset 88 and _longjmp does not save or restore offset 92. If #12688 lands first, underscore jumps will not follow that context behavior; if this PR lands first, #12688's author needs to account for the new entry points. The checklist currently says Depends on: none and does not record an agreed order.

Please coordinate with #12688's author, record the agreed order and dependency (if any) in the checklist, and ensure the selected integration order covers context save/restore for the underscore variants where required. I found no separate blocking source defect in this PR's standalone current-main preview.

Non-blocking

The current hosted workflow does not exercise the new guest test on Windows, and Linux is skipped. The author's exact-head WSL2 results are useful but are not an independent run from this review environment.

Sources

Not verified

  • No local compilation or test execution; no physical-console or title run.
  • The Windows hosted job did not execute the changed guest test, and Linux CI was skipped.
  • macOS product behavior was not tested by the failed write-watch jobs; their failures occurred during CMake setup for that separate test project.

To get this to a good state

Please record the agreed #12149/#12688 order and the required underscore-buffer context handling in the PR checklist or code as appropriate. I will rerun the same relevant checks against the updated head.

@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Thanks, that's right: the context save and restore comes from #12682, and #12688 is stacked on it, both by Felipebmaitan. I asked him on #12682 to agree an order. The two options:

The Overlap section records this. I'll update the checklist once he answers.

@AlexFigas
AlexFigas requested a review from MarcZX10 October 30, 2026 13:56
@MarcZX10

Copy link
Copy Markdown
Contributor

Re-checked — dependency still unresolved

The head remains 4ce41adcafb39c2bb083fd2574a9a5533c6833f9; the order with #12682 and the Depends on checklist update are still pending, so the blocking finding in my existing review remains unresolved.

@Felipebmaitan

Copy link
Copy Markdown
Contributor

@AlexFigas Agreed on #12149 first. It is still open at 4ce41adcafb39c2bb083fd2574a9a5533c6833f9; I have composed that exact head into the reads integration locally, preserving its history, and am adding the context save at 92 and stack/context restore calls to the underscore jumps here. I will declare Depends on: #12149 and propagate the tested result reads → transport → writes → accept. Neither underscore jump will call the guest signal-mask save/restore helpers. Validation and final head evidence will follow; no merge is requested or performed by this update.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-checked — new evidence, looks good

The blocking order concern is resolved: #12682's author agreed that #12149 lands first and confirmed the dependent change will add the I/O context save/restore and declare Depends on: #12149.

What I ran

Rechecked live PR head 4ce41adcafb39c2bb083fd2574a9a5533c6833f9, base 98ddd9c1792bbab016ceed5db267a93d1d61f00a, and the new discussion reply. The no-build precheck below was previously run on this unchanged head/base; I did not rebuild or rerun C++ tests for this follow-up.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12149

Results

Evidence Result
Existing exact-head review Source, tests, conventions, and current-main merge preview were reviewed; no standalone blocking code finding was recorded.
Author-reported focused run guest_underscore_jumps and guest_signal_sets each passed three runs on head 4ce41adcafb39c2bb083fd2574a9a5533c6833f9 under WSL2.
Hosted CI Windows job passed but did not execute the changed guest test; Linux was skipped. macOS write-watch jobs failed during CMake setup on duplicate test names in that separate project.
Dependency discussion #12682 author explicitly confirmed the landing order and the follow-up dependency/context work.

Findings

Blocking: None. The agreed order allows this standalone export PR to land before the dependent I/O-context change.

Non-blocking: The author says #12682 will record the dependency and add context handling in that PR; its checklist/update is still pending there. This does not block #12149 under the agreed order.

Sources

Not verified

I did not independently rebuild or rerun the guest tests in this follow-up. The hosted Linux job is skipped, and the Windows job did not execute the changed guest test. No console/title behavior was tested.

@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 The approved head 4ce41ad still merges cleanly into current main ca96807. main has changed libkernel/CMakeLists.txt and docs/dev/debt/libc.md since, so I built the merge result (7523bff3bd) separately and did not move this branch, which #12682 is stacking on. On it guest_underscore_jumps and guest_signal_sets pass 3 runs each, the built libc.prx exports _setjmp and _longjmp, and git diff --check is clean.

@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 #13220 has landed, so I merged main 4ac683f into this branch to rerun the macOS write-watch jobs: head 03c2195, the approved 4ce41ad plus the merge and nothing else, so #12682 can still stack on it. On this head guest_underscore_jumps and guest_signal_sets pass 3 runs each, and the standalone configure of core/libs/tests/write_watch succeeds. git diff --check and check_conventions.py pass, and the overlapping PRs give the same git merge-tree conflicts as with main except #12605, as already noted in the description.

@AlexFigas

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Head 88f89fc merges current main 1a5267f into the approved branch and nothing else, so #12682 and its stack can still build on it. The relinker jobs that failed on the previous head were main's: it had lost --require-tests in check_skips.py, and main has since restored it, so check_skips and check_skips_ctest pass here. On this head guest_underscore_jumps and guest_signal_sets pass 3 runs each, the standalone configure of core/libs/tests/write_watch succeeds, and git diff --check and check_conventions.py pass. #12605 no longer conflicts with main but conflicts with this branch in one libc.md hunk (it keeps both lines); I noted it in the description.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 88f89fc merged onto main 1e65852 · tested 2026-11-03 21:44 UTC · 28 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 ✅ 3,704 passed · 16 failed (0 new, 15 also fail on main, 1 unstable on main) · 61 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 3,781 of 3,818 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 (1339 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.4 s, ⚠️ agc_driver_graphics 112.3 s, ⚠️ agc_driver_graphics_maps_fallback 109.4 s, ⚠️ public_headers 62.7 s, ⚠️ agc_driver_bda_device 53.6 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 7 of the last 9 main runs
Failing on main too (15, not counted against this PR)
agc_driver_alpha_to_coverage_sample_mask_export
agc_driver_guest_memory_lifetime_direct
agc_driver_image_table
agc_driver_job_manager_compute_capacity
agc_driver_native_depth_bda_clear
agc_driver_native_depth_buffer_clear
agc_driver_native_depth_clears
agc_driver_native_multisample_depth
agc_driver_store_over_untracked
agc_driver_submit_progress
agc_driver_two_sample_alpha_to_coverage_sample_mask_export
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 769 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (769 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_alpha_to_coverage_sample_mask_export, and 761 more
VUID-vkCmdCopyImage-srcImage-01548 (9 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store_image_copy, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, and 1 more
VUID-vkCmdCopyImage-srcImage-01551 (9 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store_image_copy, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, and 1 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (61)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_copied_writer_label_order_drain: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_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
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_storage_pending_key_refresh: skipped, refreshes over a pending key store are not testable here
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platfo
Reproduce
git fetch origin 88f89fcdd64dfa80412f22562c331b8e29dee270 1e658521a0a599872612bb91949311e2956b5283
git checkout 1e658521a0a599872612bb91949311e2956b5283 && git merge --no-ff 88f89fcdd64dfa80412f22562c331b8e29dee270
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.

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.

6 participants