Skip to content

fix(agc): skip the pixel interlock test where BDA atomics are not atomic - #8014

Merged
oneandonlydean merged 3 commits into
boykopovar:mainfrom
011010:feat/agc-bda-atomics-moltenvk
Nov 2, 2026
Merged

oneandonlydean merged 3 commits into
boykopovar:mainfrom
011010:feat/agc-bda-atomics-moltenvk

Conversation

@011010

@011010 011010 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What

A global (flat) atomic reaches its target through a Vulkan buffer device address (OpConvertUToPtr over a PhysicalStorageBuffer pointer), so the read-modify-write is atomic only where the driver guarantees atomics on such an address. MoltenVK does not: Metal has no atomic on a device pointer, so the update becomes a load and a store and concurrent updates to one address are lost.

agc_driver_pixel_interlock is the only test that counts overlapping updates to one address, and it cannot run on MoltenVK: the fragment shader updates a storage buffer atomically, so SPIRV-Cross puts a raster order group on that buffer, and MoltenVK passes the descriptor set as an argument buffer, where Metal rejects the attribute. The test checks that first (RasterOrderGroupUsable) and skips with the reason the run actually fails, then checks the atomics (BdaAtomicsUsable) for a device that compiles the pipeline but cannot order the update. Both limitations are recorded in the technical-debt file.

No other test covers the contended case: agc_driver_global_atomics gives every lane its own address (op * OpStride + tid * 8u), so it checks the value of an uncontended read-modify-write and cannot tell an atomic from a load and a store. A title that counts or locks through a flat atomic on macOS therefore sees lost updates; no title has been measured to quantify it.

The argument-buffer compile error that also fails this test on MoltenVK is not fixed here: the raster_order_group is added by MoltenVK's own SPIRV-Cross, and resolving the atomic to a descriptor-bound buffer instead of a device address would change the BDA table ABI (BdaAbi::Range carries a flat device address).

Tested

Linux (Ubuntu 24.04.5, x86-64, GCC 13.3.0, CMake 3.28.3, Ninja 1.11.1), device: lavapipe (Mesa 25.2.8, LLVM 20.1.2, Vulkan 1.4.318), with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1:

  • main, before the change: agc_driver_pixel_interlock passes — the counter counts all 64 overlapping read-modify-writes and the killed BDA fault is reported (pixel interlock tests passed: 10 draws of 64 overlapping triangles over 2048 pixels, 2 of them with a killed BDA fault in every 8th column).
  • The change: the same test still passes; neither skip triggers, because the driver reports VK_DRIVER_ID_MESA_LLVMPIPE.
  • agc_bda_atomics and agc_raster_order_group pass.
  • With VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation on both: the same single VUID-VkDeviceCreateInfo-pNext-pNext (the validation layer of Vulkan 1.3.275 does not know a structure type the driver passes) before and after, so the change adds no validation error.

macOS (Apple M4, macOS 27.0.1 (26A434), x86-64 under Rosetta 2, Apple clang 21.0.0, CMake 4.4.4, Ninja 1.13.2), device: MoltenVK 1.4.2 from the LunarG Vulkan SDK 1.4.363.0, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (the loader inserted the layer in both runs; neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS):

  • Base: mugurc/ci/macos-series-2 at a0a9e8398 plus the Jit.cpp and GuestMemoryLifetimeSupport.hpp parts of feat: macOS on Apple Silicon host support (Rosetta 2 and MoltenVK) #7332, because the series does not build on macOS without them (MFD_CLOEXEC is Linux-only in libkernel/DirectMemory/Jit.cpp).
  • Before the change: agc_driver_pixel_interlock fails with AGC graphics: vkCreateGraphicsPipelines: Vulkan result -3, after MoltenVK reports type 'const constant spvDescriptorSetBuffer0 &' is not valid for attribute 'buffer' with field with illegal attribute 'raster_order_group' declared here. The run never reaches the counter, so it shows no lost update.
  • After the change: the test skips with skipped, the device does not support the raster order group the pixel interlock needs.
  • 0 VUID- errors in both logs, so the change adds no validation error.
  • python3 tools/check_skips.py <junit> --job linux accepts the skip as a device limitation.

Windows (Windows 11 Home 26300, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON, RTX 5070 Ti NVIDIA 617.42 and the AMD Radeon iGPU RDNA2 with the AMD proprietary driver 2026.04.17, ANYPS5_REQUIRE_VULKAN=1, by @wachi35676): agc_bda_atomics, agc_raster_order_group, agc_driver_pixel_interlock and the four agc_driver_global_atomics* tests pass on both GPUs, and agc_driver_pixel_interlock runs rather than skips.

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: Apple M4 (Apple, M4, MoltenVK 1.4.2, macOS 27.0.1) — the test skips there; lavapipe (Mesa 25.2.8, LLVM 20.1.2, Linux x86-64) and NVIDIA RTX 5070 Ti (617.42) and AMD Radeon iGPU RDNA2 (2026.04.17) on Windows 11 — the test runs and passes there
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 19, 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 12764 docs/dev/debt/libSceAgcDriver.md L338
PR 13707 docs/dev/debt/libSceAgcDriver.md L338
PR 13858 docs/dev/debt/libSceAgcDriver.md L338
PR 14943 docs/dev/debt/libSceAgcDriver.md L338
PR 14944 docs/dev/debt/libSceAgcDriver.md L338

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 1395 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7275 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7464 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7978 docs/dev/debt/libSceAgcDriver.md
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8707 docs/dev/debt/libSceAgcDriver.md
PR 9020 docs/dev/debt/libSceAgcDriver.md
PR 9335 docs/dev/debt/libSceAgcDriver.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9432 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9489 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10069 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10233 docs/dev/debt/libSceAgcDriver.md
PR 10256 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10442 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10547 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11483 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11551 docs/dev/debt/libSceAgcDriver.md
PR 12120 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 12828 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 13148 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 14212 docs/dev/debt/libSceAgcDriver.md

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed build docs agc libSceAgc* labels Oct 19, 2026
@wachi35676

Copy link
Copy Markdown
Contributor

Windows NVIDIA and AMD check, and two points about the skip.

Windows 11 Home 26300, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. The base is main 9127ea36d with 4fcacc95a merged. The head conflicts with main in docs/dev/debt/libSceAgcDriver.md, where its entry meets the entries added at the end of the file. I kept both sides to build.

GPUs: RTX 5070 Ti (NVIDIA 617.42) and the AMD Radeon iGPU (RDNA2, 1002:13c0, AMD proprietary driver 2026.04.17, ANYPS5_GPU=AMD). Run with ANYPS5_REQUIRE_VULKAN=1.

  • agc_bda_atomics, agc_driver_pixel_interlock and the four agc_driver_global_atomics* tests pass on both GPUs.
  • agc_driver_pixel_interlock runs rather than skips, as it should off MoltenVK: pixel interlock tests passed: 10 draws of 64 overlapping triangles over 2048 pixels, 2 of them with a killed BDA fault in every 8th column.

Points from the description itself:

  • The skip names a different failure. The macOS "before" run fails at vkCreateGraphicsPipelines: Vulkan result -3, which is MoltenVK's raster_order_group argument-buffer error. That run never reaches the counter, so it shows no lost update. The test fails for another reason than the skip message gives (the device does not support atomics on buffer device addresses), and the skip hides that pipeline failure too.
  • The driver itself does not refuse. Only the test calls BdaAtomicsUsable. On MoltenVK the driver still runs flat atomics through a BDA without refusing, so the lost-update case is a silent stub. The debt entry describes it, but it is not listed under silent stubs.

AI-assisted: yes (Claude Code); results above were run on this machine.

@011010
011010 force-pushed the feat/agc-bda-atomics-moltenvk branch from 4fcacc9 to 6da6637 Compare October 20, 2026 04:34
@011010

011010 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Rebase done, both points addressed, re-verified

Rebased onto current main (6da6637b4, two commits, no conflicts). The conflict in docs/dev/debt/libSceAgcDriver.md is resolved by keeping the entries that landed there and appending this one.

The skip and the failure it hides. You are right that they are different failures and that the macOS before/after shows only the second one turning into a skip. The functional entry now says it instead of leaving it implicit: on MoltenVK agc_driver_pixel_interlock fails at vkCreateGraphicsPipelines with Vulkan result -3, because SPIRV-Cross refuses raster_order_group in an argument buffer, and the skip covers that failure too, so on macOS neither it nor the lost updates are visible. The atomics claim no longer rests on that run; it rests on the mechanism, Metal having no atomic on a device pointer, so the read-modify-write becomes a load and a store. I did not move the skip past the pipeline creation, because that would make the test fail on macOS for something it does not measure, and the pipeline failure is now recorded as a separate unfixed item.

The driver not refusing. Now listed under "Silent stubs", with why agc_driver_global_atomics cannot cover it (every lane has its own address). Making the driver refuse is a larger change than this pull request: the shader recompiler would have to reject a flat atomic when BdaAtomicsUsable is false, and a title that only increments a counter would then throw at compile time instead of counting wrong. I would rather do that in its own pull request with the titles it affects measured; say the word and I will open it.

Re-verified on the rebased head

  • Linux, lavapipe, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1: agc_bda_atomics, the four agc_driver_global_atomics* and agc_driver_pixel_interlock → 6/6 passed. The interlock runs rather than skipping and passes in 2.83 s.
  • Windows 11, RTX 3050, GCC 15.2: agc_bda_atomics passed in 0.07 s and agc_driver_pixel_interlock passed in 1.47 s, both running rather than skipping.

Thanks for the NVIDIA and AMD check; it is the only Windows evidence in the thread.

@011010
011010 force-pushed the feat/agc-bda-atomics-moltenvk branch from 6da6637 to 9e1e23d Compare October 20, 2026 05:01
@011010

011010 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

main moved again while this was open, adding two entries to the same debt file, so this is rebased again onto b1ad467da (9e1e23d8f, one commit, the two of us squashed into one as in the original head). Re-ran the same checks on the new base:

  • Linux, lavapipe: agc_bda_atomics, the four agc_driver_global_atomics* and agc_driver_pixel_interlock -> 6/6 passed.
  • Windows 11, RTX 3050: agc_bda_atomics passed in 0.04 s and agc_driver_pixel_interlock passed in 1.07 s, both running rather than skipping.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 20, 2026
@011010
011010 force-pushed the feat/agc-bda-atomics-moltenvk branch from 9e1e23d to 6a434f6 Compare October 20, 2026 19:55
@011010

011010 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Adding the half that was still missing from your first point, on top of the response above rather than in place of it.

The skip now names the failure the run reaches, and the check that decides it is separate from the atomics:

skipped, the device does not support the raster order group the pixel interlock needs
  • RasterOrderGroup.hpp / RasterOrderGroupUsable(VkDriverId) covers the pipeline failure: SPIRV-Cross puts raster_order_group on the storage buffer the fragment shader updates atomically, MoltenVK passes the descriptor set as an argument buffer, and Metal rejects the attribute.
  • BdaAtomics.hpp / BdaAtomicsUsable(VkDriverId) stays behind it for a device that compiles the pipeline but cannot order the update, with its own message.
  • Each has the driver-ID table test the other capability helpers have, registered as agc_raster_order_group and agc_bda_atomics.

The technical-debt entry keeps the account you and I converged on — the skip covers the argument-buffer failure and neither is fixed here — and records which check fires first, so the reason in the output and the reason in the entry agree.

Re-verified on the rebased head:

  • Linux, lavapipe, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1: agc_bda_atomics passed, agc_raster_order_group passed, and agc_driver_pixel_interlock ran rather than skipped (pixel interlock tests passed: 10 draws of 64 overlapping triangles over 2048 pixels, 2 of them with a killed BDA fault in every 8th column).
  • macOS, Apple M4, x86-64 under Rosetta, MoltenVK 1.4.2, with VK_LAYER_KHRONOS_validation inserted and VK_LAYER_PATH set: the test skips with the new message, 0 VUID- errors, and both unit tests pass.
  • python3 tools/check_conventions.py --base origin/main: all conventions checks passed. check_skips.py accepts the new message as a device limitation.

The driver still does not refuse, and the global atomics entry stays under Silent stubs as you asked. The refusal remains the separate change I offered above, and it is unaffected by this one.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
@011010
011010 force-pushed the feat/agc-bda-atomics-moltenvk branch from 6a434f6 to cdabc0f Compare October 21, 2026 02:52
@011010

011010 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Rebased onto main 5d10ea9ea; a duplicated debt entry removed

While re-checking the branch I found a defect from the previous rebase: docs/dev/debt/libSceAgcDriver.md listed the same Global atomics on buffer device addresses bullet twice under Silent stubs, the earlier wording and the final one. The head now carries the final wording once, and the blank line the rebase had dropped before the Long Windows pipeline-cache paths entry is back. The diff against main is additions only (9 files, 136 insertions, 0 deletions).

The branch is rebased onto main 5d10ea9ea as two commits (6d0d7d30b, cdabc0f83), with no conflicts.

Re-verified on the rebased head

Windows 11, WinLibs GCC 15.2.0, RTX 3050, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1:

  • agc_bda_atomics passed (0.03 s).
  • agc_raster_order_group passed (0.03 s).
  • agc_driver_pixel_interlock passed (0.62 s) and ran rather than skipping: pixel interlock tests passed: 10 draws of 64 overlapping triangles over 2048 pixels, 2 of them with a killed BDA fault in every 8th column.

The rebase changes only that debt file, so the code is unchanged from the previous head and the Linux/lavapipe and macOS validation evidence above still applies. I could not repeat the validation-layer runs here: this Windows machine has vulkan-1.dll but no VkLayer_khronos_validation.dll.

tools/check_conventions.py --base origin/main does not complete on Windows for this tree, unrelated to this branch; I filed #8848 with the traceback and a verified git grep -f alternative. Conventions is therefore the CI result, which is green on this head.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@011010
011010 force-pushed the feat/agc-bda-atomics-moltenvk branch from cdabc0f to 600a312 Compare October 22, 2026 18:16
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 22, 2026
@adriadam10 adriadam10 self-assigned this Oct 23, 2026
@wachi35676

Copy link
Copy Markdown
Contributor

Re-checked head 600a312c24 on Windows with the two GPUs from my earlier run: RTX 5070 Ti and the AMD RDNA2 iGPU (ANYPS5_GPU=AMD). WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.

  • agc_bda_atomics, agc_raster_order_group, agc_driver_pixel_interlock and the four agc_driver_global_atomics* tests pass 2/2 on each GPU. The interlock test runs, with no skip, and prints 10 draws of 64 overlapping triangles over 2048 pixels, 2 of them with a killed BDA fault in every 8th column.
  • With RasterOrderGroupUsable returning true for every driver, agc_raster_order_group fails.
  • Rebase note: against main 5b85225ef the branch conflicts in VulkanDevice.cpp, next to main's new State::pixelFunctionStorageDwords member, and in the debt file. Keeping both sides resolves both, and the results above are from that merge.

AI-assisted: yes (Claude Code); results above were run on this machine.

The skip covers two MoltenVK failures that the same test hits: the driver runs a flat atomic through a buffer device address as a load and a store, so overlapping updates to one address are lost, and the interlock pipeline does not compile because SPIRV-Cross refuses raster_order_group in an argument buffer. The technical-debt file records the first under Silent stubs and the second in its functional entry, and agc_bda_atomics pins the predicate.
The skip named a failure the run never reached: on MoltenVK the test
fails while the pipeline is created, because SPIRV-Cross puts a raster
order group on the storage buffer the fragment shader updates and
MoltenVK passes the descriptor set as an argument buffer, where Metal
rejects the attribute. The run never reaches the counter, so it shows
no lost update.

The test now checks the raster order group first, with the reason the
run fails, and the atomics on buffer device addresses second. The
global atomics gap moves under the silent stubs, where it belongs: the
driver neither refuses the atomic nor reports it to the title.
@011010
011010 force-pushed the feat/agc-bda-atomics-moltenvk branch from 600a312 to d00d8ba Compare October 26, 2026 18:01
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 1, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 34034d1 merged onto main f2d874c · tested 2026-11-01 19:01 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 ✅ 2,483 passed · 13 failed (0 new, 9 also fail on main, 4 unstable on main) · 55 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,551 of 3,168 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 (938 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ agc_driver_graphics 119.5 s, ⚠️ agc_driver_graphics_maps_fallback 118.8 s, ⚠️ unwrap_self 58.5 s, ⚠️ public_headers 56.2 s
Unstable on main (4, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_job_manager_compute_capacity: failed in 4 of the last 5 main runs
agc_driver_pipeline_journal: failed in 3 of the last 5 main runs
agc_submit_progress: failed in 4 of the last 5 main runs
agc_submit_progress_no_timeline: failed in 4 of the last 5 main runs
Failing on main too (9, not counted against this PR)
agc_driver_guest_memory_lifetime_direct
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_depth_buffer_clear
agc_driver_native_depth_clears
agc_driver_native_multisample_depth
agc_idle_publish_wait
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_raster_order_group
Validation IDs already present on main (5 IDs in 484 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (484 tests): agc_driver, 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 476 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
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (55)
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_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_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_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_pipeline_binary_vulkan: skipped, the device lacks VK_KHR_pipeline_binary
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_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 platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not 
Reproduce
git fetch origin 34034d137f8bbdd5b528f7ceb12a54cf0ccd0774 f2d874c1fdccf781c0fa5d86619bb5dd8894b958
git checkout f2d874c1fdccf781c0fa5d86619bb5dd8894b958 && git merge --no-ff 34034d137f8bbdd5b528f7ceb12a54cf0ccd0774
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 34034d1 merged onto main f2d874c · tested 2026-11-01 19:07 UTC · 19 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,500 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 46 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,551 of 3,168 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 (938 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 116.8 s, ⚠️ agc_driver_lookup_log_fits_build 44.9 s, ⚠️ agc_driver_graphics_maps_fallback 30.4 s, ⚠️ agc_driver_graphics 30.3 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 5 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_dcc_keys_first_write
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_raster_order_group
Validation IDs already present on main (5 IDs in 484 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (484 tests): agc_driver, 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 476 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
Skipped (46)
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_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_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_pipeline_binary_vulkan: skipped, the device lacks VK_KHR_pipeline_binary
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fps_limit: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL
Reproduce
git fetch origin 34034d137f8bbdd5b528f7ceb12a54cf0ccd0774 f2d874c1fdccf781c0fa5d86619bb5dd8894b958
git checkout f2d874c1fdccf781c0fa5d86619bb5dd8894b958 && git merge --no-ff 34034d137f8bbdd5b528f7ceb12a54cf0ccd0774
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 self-assigned this Nov 1, 2026
@oneandonlydean
oneandonlydean merged commit 48d8915 into boykopovar:main Nov 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants