Skip to content

test(agc): cover idle publication through dma-buf imports - #14330

Merged
oneandonlydean merged 1761 commits into
boykopovar:mainfrom
JJenkx:test/idle-publish-dmabuf-wait
Nov 7, 2026
Merged

oneandonlydean merged 1761 commits into
boykopovar:mainfrom
JJenkx:test/idle-publish-dmabuf-wait

Conversation

@JJenkx

@JJenkx JJenkx commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds a Linux regression for idle unit-shadow publication through an actual watched DMA-buf import. It allocates 512 KiB of direct memory, checks that the import really uses DMA-buf, fills two 64 KiB shadow units on the GPU, and verifies that an idle flush finishes before returning. CPU stores made immediately afterward must survive a later recorder sync; every other byte must retain its expected value. A non-idle label flush must remain pending until sync and then publish its full unit.

This complements #12158: that PR handles the existing forced host-pointer-watch fixture on drivers whose GPU reads look like CPU writes. This PR leaves that fixture byte-identical and exercises RADV's working DMA-buf path with the default probe policy. Unsupported Linux DMA-buf/write-watch capability or an inaccessible /dev/udmabuf produces skip 77; a purported DMA-buf path falling back to another import fails the test. The new CTest is Linux-only, with a 30 s timeout.

No production code or runtime behavior changes. No title or performance gain claim.

Tested

Current head 0dc8e3f969fc67f730a707939dabf62c89d1742d merges main 4f64f81ef7b4bca975b4b9f3dfd15dfff56f716f with the original PR head ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da, without rebasing or force-pushing. The conflict was between the new window-import-unmap dispatch and this PR's idle-publication dispatch; both are retained. The DMA-buf fixture is byte-identical to the reviewed head; there are no production changes against main.

Linux 7.2.11-arch1-1, Ryzen 9 7950X, RX 6650 XT/RADV Mesa 26.2.6, Release, bundled SPIRV-Tools ON, independent source/build and pinned dependency worktrees. Both sides built agc_driver_recorder_tests.

Matched common checks: agc_host_import_unmap, agc_host_import_retirement, agc_sparse_run_import, agc_queued_write_groups, and agc_window_import_unmap. Main 5/5 pass; change 5/5 plus the new agc_idle_publish_dmabuf_wait pass. Zero skips and zero VUIDs on both. Both complete harnesses used the shared GPU FIFO and ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -V. Actual validation-layer insertions: 4 on main, 5 on the change; queued-write-groups is CPU/mock. No requested-layer-missing messages. Conventions and whitespace checks pass.

Fresh verbose logs, JUnit, exact diff and receipts, SHA-256 77812c50d9102e8e918703a1e506e62372d4201b2af24ecaade61ff6ce5444da.

Original positive/negative controls and overlap audit, SHA-256 30a9f2137977bd405ee74e56a602263c8ce054c2b9acb9d192c4bddb556173e1, remain historical evidence at ffe30238a4. At that head, disabling the idle wait failed at the idle flush returned before its dma-buf publish completed; making non-idle calls wait failed at the non-idle dma-buf publish was waited. Neither negative control is claimed rerun on this merge. The earlier Windows check also retains its original exact head. No new Windows/macOS, full-suite, title or performance run is claimed. #12158 covers the independent forced host-pointer-watch limitation; no dependency on that PR is introduced.

  • NVIDIA CI by @TechLevelZero (report): exact head 0dc8e3f969 merged onto main 1d91f29, RTX 2000 Ada (driver 595.99.02), Ubuntu 26.04 container: 1,495 passed, 3 failed that also fail on main (0 new), no new validation IDs against main.
  • AMD CI by @TechLevelZero (report): exact head 0dc8e3f969 merged onto main a4eca2a, Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8): 1,512 passed, 6 failed (0 new: 5 also fail on main, 1 unstable on main), no new validation IDs vs main (431 tests on the GPU).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 6650 XT, RADV Mesa 26.2.6, Linux 7.2.11-arch1-1; NVIDIA RTX 2000 Ada, Ubuntu 26.04 (@TechLevelZero CI); AMD Radeon RX 6300, Mesa 25.2.8, Ubuntu 26.04 (@TechLevelZero CI)
  • AI-assisted: yes

@github-actions github-actions Bot added build agc libSceAgc* labels Nov 1, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed — looks good

The exact-head source and test evidence show no blocking issue; the Linux pass and negative controls are author-run and independently checksum-verified, while the hosted Windows and labels jobs remain pending.

What I ran

Reviewed head ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da against base 26fa1212b82f76dd49cf12d65e445d6ff3e0844c; GitHub reports the PR open and mergeable. Environment: Debian GNU/Linux 12, Linux 6.1, Python 3.11.2, GCC 12.2.0. No project build or local C++/CTest run was performed. I inspected the diff and test registration, ran the repository no-build precheck and stack check, queried hosted CI, and verified the published Linux evidence archive and its internal checksums.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14330 --output-dir /tmp/anyps5-pr-precheck-14330
git diff --check 26fa1212b82f76dd49cf12d65e445d6ff3e0844c...ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da
python3 tools/pr_stack_check.py 14330 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-14330/stack-manual
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-14330/head-ffe30238a4ad-34a125e2 --json core/libs/prx/libSceAgcDriver/tests/Recorder.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
python3 tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch refs/review/session-20261101/14330 --jobs 4
gh pr checks 14330 -R boykopovar/AnyPS5
sha256sum /tmp/anyps5-pr-14330/idle-publish-dmabuf-main26fa-ffe3023-linux-20261101.tar.gz
(cd /tmp/anyps5-pr-14330/artifact && sha256sum -c SHA256SUMS)

Results

Check Result
Diff whitespace Passed; git diff --check exited 0 with no output.
Conventions and PR template Passed in the precheck.
Test registration Confirmed manually: agc_idle_publish_dmabuf_wait is registered under the Linux CMake condition, with skip code 77 and a 30-second timeout.
Test-quality heuristic The script flagged the shared Recorder.cpp as possibly unregistered; this is a false positive because the test executable is registered from that source in agc_driver_recorder_tests.cmake, and the new CTest entry is present there.
Dependency/current-main preview Passed; stack check reports a clean merge preview against current main, no declared dependency, and unchanged heads.
Overlap helper Could not complete: pr_overlap.py stopped on Invalid \\uXXXX escape while parsing its GitHub response. The PR includes an author-provided shared-file overlap audit; I did not independently reproduce that full scan.
Precheck helper availability Partial failure unrelated to the PR: its isolated checkout lacks the workspace-only tools/pr_abi_audit.py and tools/pr_test_quality.py. The precheck’s conventions, diff, and live stack checks passed; I ran the local test-quality helper separately and inspected its finding.
Author-provided Linux tests Archive hash matched the GitHub release digest (30a9f2137977bd405ee74e56a602263c8ce054c2b9acb9d192c4bddb556173e1); every internal archive hash passed. The archive identifies main 26fa1212b82f and candidate ffe30238a4ad, with 4/4 baseline and 5/5 candidate groups passing and zero skips/VUIDs. These tests were not run by me.
Author-provided negative controls In the verified archive, disabling the idle wait failed at the intended idle-publication assertion; making non-idle calls wait failed at the intended non-idle assertion. These controls were not run by me.
Hosted CI At recheck, conventions, report, eligibility, intake, and library-portability passed; Windows and labels were pending; Linux, register-context, relinker, relinker-asan, and write-watch were skipped.
Local build/CTest Not run; this is the initial no-build review.
Selected unedited output

tools/check_conventions.py from the precheck:

All conventions checks passed.

pr_test_quality.py:

{
  "findings": [
    {
      "path": "core/libs/prx/libSceAgcDriver/tests/Recorder.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."
  ]
}

Verified author-run CTest summaries:

100% tests passed, 0 tests failed out of 4
Total Test time (real) =   0.16 sec

100% tests passed, 0 tests failed out of 5
Total Test time (real) =   0.21 sec

Verified author-run negative-control failures:

AGC graphics: the idle flush returned before its dma-buf publish completed
1/1 Test #1654: agc_idle_publish_dmabuf_wait .....***Failed    0.10 sec

AGC graphics: the non-idle dma-buf publish was waited
1/1 Test #1654: agc_idle_publish_dmabuf_wait .....***Failed    0.06 sec

Hosted checks at the time of review:

conventions  pass
labels       pending
report       pass
linux        skipping
register-context skipping
relinker     skipping
relinker-asan skipping
write-watch  skipping
windows      pending
eligibility  pass
intake       pass
library-portability pass

Negative control

Assertion Change made to code under test Did the new test fail?
Idle flush waits until the dma-buf publication is complete Author disabled idle waiting in waitForIdlePublish Yes, at the idle flush returned before its dma-buf publish completed (author-run; archive verified, not rerun here).
Non-idle flush stays pending until recorder sync Author changed non-idle calls to wait too Yes, at the non-idle dma-buf publish was waited (author-run; archive verified, not rerun here).

Findings

Blocking

None found in the reviewed source or supplied exact-head test evidence.

Non-blocking

Hosted Windows and labels checks were still pending when checked. The hosted Linux and specialized jobs were skipped. The author’s Linux GPU run is strong supporting evidence but is not an independent run by me; I did not build or run CTest locally. The repository overlap helper could not parse its GitHub response, so I relied on the PR’s attached overlap audit for that part.

Sources

Not verified

I did not compile or run the Linux C++ tests, reproduce the author’s GPU test, run a full suite, test other operating systems, or verify console behavior. Hosted Windows was pending; hosted Linux and specialized CI jobs were skipped.

@github-actions

github-actions Bot commented Nov 1, 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 1368 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5021 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 6188 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6209 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7085 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 7457 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7604 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7642 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 8484 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 9289 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 9508 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 9884 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 10049 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 10193 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 10442 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 13251 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13793 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13809 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13863 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13920 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13928 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13929 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15136 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15169 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15529 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15570 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head ffe3023 merged onto main a644edf · tested 2026-11-01 11:16 UTC · 13 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,391 passed · 4 failed (0 new, 3 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 1,395 of 3,148 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 (405 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.2 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 1 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 346 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (346 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 338 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-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Reproduce
git fetch origin ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da a644edf30c501a612d06f17d05ef1b7051350cef
git checkout a644edf30c501a612d06f17d05ef1b7051350cef && git merge --no-ff ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da
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.

@JJenkx

JJenkx commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Windows check of exact head ffe30238a4 (base 26fa1212b8), built and run through the shared GPU queue on Windows 11 Enterprise 10.0.22621. It used a Ryzen 9 5950X, AMD Radeon RX 6700 XT and AMD proprietary driver 26.10.1, built with WinLibs GCC 15.2.0 UCRT r7 in Release. The runs set VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1.

  • Recorder.cpp with the new #ifndef __linux__ branch builds cleanly, and so does the rest of agc_driver_recorder_tests.
  • agc_idle_publish_dmabuf_wait is registered only for Linux, so it does not exist in the Windows CTest list, as intended.
  • ctest -R '^(agc_driver_recorder|agc_idle_publish_wait)$' -V --repeat until-fail:3: 2/2 pass in each of the three repetitions. The validation layer was inserted 6 times and reported no VUIDs; nothing was skipped.

…tive-9601

fix(libSceVoice): report inactive input voice activity
…id-base

fix(libc): reject an invalid _WStoul base like Dinkumware instead of …
…internal-9528

feat(libSceLibcInternal): declare 149 PS5 3.20 round three exports
…d-shared-scratch

fix(agc): reuse one tiled and one linear texture upload scratch per recorded batch
…ource

feat(libSceAvPlayer): read progressive media over HTTP
…afe-bcmp

feat(libc): implement timingsafe_bcmp
…-condattr-getclock-null-output

feat(libkernel): throw for a null pthread_condattr_getclock output
…ventory-exports-20261030

feat(gnm): add debug reset inventory export
…ologue-main-20261029

fix(agc): snapshot host shader prologues before frame replay
…port-coherence

feat(libSceAgcDriver): import scattered direct memory as a dma-buf run list and probe its coherence
…a34015

feat(libc): export _FDsign/_Dsign like MSVC CRT (PPSA34015)
…s-pinning-release

fix(agc): retire the window imports that pin a range a guest unmap waits for
…egistry-scan

perf(libc): start the guest allocation overlap queries at the range that touches the address
test(libSceVideoOut): cover the guest mouse button bits
…locks

perf(agc): cross uniform runs of cached guest pages 64 pages per load
…-main2fab

fix(agc): render layered mesh targets within device limits
…capture-on-change

fix(agc): prepare a draw or dispatch again when the memory it captured changed before it was recorded
…directory-bounds

fix(tools): bound PE audit directories by optional header size
…nding-events

fix(libkernel): bound equeue pending events
…s-libs

fix: clear GCC warnings in the AGC driver and two tests
…tovers-and-error-paths

feat(libs): the Hmd2 reprojection session
fix(shader): split scalar-address descriptor phis
…justment

fix(agc): bind a V# of exactly the range limit within the limit
…oltenvk

fix(agc): skip the pixel interlock test where BDA atomics are not atomic
oneandonlydean and others added 3 commits November 3, 2026 02:40
test(libc): exercise division returns through patched PRX
…-register-stack

docs(debt): give the stack bounds of sceCoredumpRegisterCoredumpHandler and what titles pass
@JJenkx

JJenkx commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Refreshed the reviewed test onto main 4f64f81ef7b4bca975b4b9f3dfd15dfff56f716f; pushed merge 0dc8e3f969fc67f730a707939dabf62c89d1742d, without rebasing or force-pushing.

The conflict was an adjacent CLI dispatch insertion in Recorder.cpp. Both main's --window-import-unmap-only branch and this PR's --idle-publish-dmabuf-wait-only branch are retained. The DMA-buf fixture is byte-identical to the reviewed head; the diff against main is still just 97 added lines in the two test files, with no production change.

Fresh Linux/RX 6650 XT/RADV validation: main's five common import/queued-write checks pass; the merge passes those five plus the DMA-buf idle-publication regression (5/5 main, 6/6 change; zero skips, zero VUIDs). The common selection includes agc_window_import_unmap to verify the retained main branch. Actual validation-layer insertion is confirmed in all physical Vulkan groups; queued-write-groups is CPU/mock. Both full harnesses ran through the shared GPU FIFO. Conventions and whitespace checks pass.

Fresh logs, JUnit, exact pins and resolved diff, SHA-256 77812c50d9102e8e918703a1e506e62372d4201b2af24ecaade61ff6ce5444da. The description distinguishes these fresh checks from the original negative controls and earlier Windows test at their original exact head; neither is claimed rerun on this merge.

AI-assisted: yes.

@github-actions github-actions Bot added libc libkernel shader core/shader relinker docs prx ci .github and removed needs rebase Conflicts with main, rebase needed labels Nov 2, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 0dc8e3f merged onto main 1d91f29 · tested 2026-11-02 21:00 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 ✅ 1,495 passed · 3 failed (0 new, 3 also fail on main) · 1 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,499 of 3,544 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 (420 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 118.5 s
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 357 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (357 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 349 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
Skipped (1)
guest_net_ctl
Reproduce
git fetch origin 0dc8e3f969fc67f730a707939dabf62c89d1742d 1d91f2966d0eef82a021628a7aa8e78e615ac807
git checkout 1d91f2966d0eef82a021628a7aa8e78e615ac807 && git merge --no-ff 0dc8e3f969fc67f730a707939dabf62c89d1742d
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 0dc8e3f merged onto main a4eca2a · tested 2026-11-02 21:50 UTC · 18 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,512 passed · 6 failed (0 new, 5 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,522 of 3,591 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 (431 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ public_headers 62.1 s, ⚠️ agc_driver_image_sample_unnormalized 49.8 s, ⚠️ unwrap_self 47.1 s, ⚠️ agc_driver_lazy_resolved_abi 41.2 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 4 of the last 6 main runs
Failing on main too (5, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 361 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (361 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 353 more
VUID-vkCmdCopyImage-srcImage-01548 (6 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (6 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
Skipped (4)
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_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
Reproduce
git fetch origin 0dc8e3f969fc67f730a707939dabf62c89d1742d a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8
git checkout a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8 && git merge --no-ff 0dc8e3f969fc67f730a707939dabf62c89d1742d
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.

…mits

check_skips accepts a host-import limit but not the two messages this test printed on a host without dma-buf imports or /dev/udmabuf. The conditions are unchanged.
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi @JJenkx,

Thanks for the idle-publish wait test. On a host without dma-buf imports it printed "skipped, unit shadows or dma-buf imports are unavailable", and on a host without /dev/udmabuf "skipped, /dev/udmabuf is unavailable". Neither matches the device-limitation wording that tools/check_skips.py accepts, so our CI run reported the skip as lost coverage. To save you a round trip we added one commit on top of 0dc8e3f969 that rewords the two messages in Recorder.cpp to "skipped, unit shadows or host imports are unavailable (no dma-buf import)" and "skipped, host imports are unavailable: /dev/udmabuf cannot be opened", which is the form the neighbouring tests use. The conditions and the rest of the test are unchanged. Feel free to adjust the wording.

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.

8 participants