Skip to content

test(agc): skip submit progress and pipelined metadata pass without a Vulkan device - #11638

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
dantdmdarealguy:test/agc-skip-without-vulkan
Oct 28, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
dantdmdarealguy:test/agc-skip-without-vulkan

Conversation

@dantdmdarealguy

@dantdmdarealguy dantdmdarealguy commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What

On a host without a Vulkan driver, ctest on main skips 770 Vulkan tests but fails these four:

 640 - agc_submit_progress (Failed)
 641 - agc_submit_progress_no_timeline (Failed)
1064 - agc_driver_pipelined_metadata_pass (Failed)
1273 - agc_driver_pipelined_metadata_pass_draw_pipeline (Failed)
vkCreateInstance: Vulkan result -9

There are two causes:

  • PipelinedMetadataPass.cpp does not probe for a device. It goes straight to the driver, so the driver's VulkanDevice constructor throws and the test returns 1. It now opens OpenVulkanTestDevice() first and returns VulkanTestSkipped, as PipelinedFill.cpp, PipelinedPredicationRead.cpp and the other pipelined tests do. Both registrations already have SKIP_RETURN_CODE 77.
  • agc_submit_progress and agc_submit_progress_no_timeline set ANYPS5_REQUIRE_VULKAN=1 in their own ctest ENVIRONMENT. No other test does this. SubmitProgress.cpp already skips through OpenVulkanTestDevice(), but the forced variable makes that helper rethrow, so the skip could never run. The variable is removed from both registrations.

OpenVulkanTestDevice() itself is narrowed so that the skip covers only a missing driver or device:

  • Before, it caught every std::exception from the VulkanDevice constructor. A construction failure on a host that has a device was therefore reported as "no usable Vulkan device" and skipped whenever ANYPS5_REQUIRE_VULKAN was unset.

  • The constructor now throws AgcDriver::VulkanUnavailable, a std::runtime_error, in exactly three cases:

    • the loader library (vulkan-1.dll / libvulkan.so.1) cannot be loaded;
    • vkCreateInstance returns VK_ERROR_INCOMPATIBLE_DRIVER, which the loader returns when it finds no driver;
    • no Vulkan 1.1 device with a graphics and compute queue exists.

    The messages are unchanged.

  • The helper skips only on VulkanUnavailable. Every other failure propagates and fails the test, with or without ANYPS5_REQUIRE_VULKAN. That covers enumeration errors, any other vkCreateInstance result, required features, vkCreateDevice, allocation, and ANYPS5_GPU naming no device. Excluding ANYPS5_GPU follows BdaDevice.cpp (fix(tests): honor ANYPS5_GPU in BDA device fixture #8167), SampledCacheBudget.cpp and PerformanceOverlay.cpp, which already never skip for an unmatched ANYPS5_GPU.

  • ANYPS5_REQUIRE_VULKAN=1 with no device still fails, as before.

New regression test tests/execution/VulkanTestDevice.cpp, with two registrations:

  • agc_driver_vulkan_test_device:
    • the default device opens, both without and with ANYPS5_REQUIRE_VULKAN=1;
    • with a device present and ANYPS5_GPU naming no device, construction fails and the helper throws the plain error (not VulkanUnavailable) instead of skipping;
    • returns 77 when there is no device, and fails when there is no device and ANYPS5_REQUIRE_VULKAN=1 is set.
  • agc_driver_vulkan_test_device_no_driver: VK_DRIVER_FILES and VK_ICD_FILENAMES point at a missing file. Without ANYPS5_REQUIRE_VULKAN the helper must skip; with it, the helper must throw VulkanUnavailable. This runs on every host, with or without a GPU.

Same shape as #5045 and #2628.

Tested

Rebased onto main 80b209d (1 ahead, 0 behind; tools/check_main_sync.py: merge clean). The runs below were on b7105f7. Since then main changed VulkanDevice.cpp and the driver's CMakeLists only in unrelated places (frame dumps, the keyboard overlay, barycentric built-ins); the three VulkanUnavailable throws are unchanged.

Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON:

  • Build: cmake --build --parallel 6 and --target libs succeed, with no warnings in the touched files.
  • Focused tests on the GPU: ctest -R "^(agc_driver_vulkan_test_device|agc_driver_vulkan_test_device_no_driver|agc_submit_progress|agc_submit_progress_no_timeline|agc_driver_pipelined_metadata_pass|agc_driver_pipelined_metadata_pass_draw_pipeline|agc_driver_device_selection|patched_libraries)$" passes 8 of 8.
  • Every test that uses OpenVulkanTestDevice(): ctest --parallel 2 -R "^agc|^guest_job_manager_profiler", 1092 tests.
    • On the GPU, 1092 of 1092 pass. The 8 skips are platform or feature limits (udmabuf, Linux comparison mode, VK_EXT_shader_stencil_export, sample locations, a test not built), none of them "no usable Vulkan device".
    • With the ICD hidden (VK_DRIVER_FILES and VK_ICD_FILENAMES pointing at a missing file), 1092 of 1092 pass with 776 skipped. 773 of the skips are "no usable Vulkan device" from vkCreateInstance: Vulkan result -9.
  • The four tests with the ICD hidden:
    • main fails them (vkCreateInstance: Vulkan result -9);
    • with the change they are Skipped;
    • with ANYPS5_REQUIRE_VULKAN=1 they still fail.
  • Device present but construction fails (ANYPS5_GPU="no such device 5c1e0b7a", so the constructor throws after enumerating the RTX 5080 and the Intel UHD 770):
    • With the previous helper (head 489d935), all four tests are Skipped ("no usable Vulkan device: Vulkan: no usable device whose name contains ANYPS5_GPU=..."), and agc_driver_vulkan_test_device fails: "a device construction failure on a host with NVIDIA GeForce RTX 5080 was reported as a skip".
    • With the change, all four fail with the constructor's error, and agc_driver_vulkan_test_device passes.
  • agc_driver_vulkan_test_device in all four combinations:
    • GPU, ANYPS5_REQUIRE_VULKAN unset or 1: passes.
    • No ICD, variable unset: Skipped.
    • No ICD, ANYPS5_REQUIRE_VULKAN=1: fails ("opening the default device failed: vkCreateInstance: Vulkan result -9").
    • agc_driver_vulkan_test_device_no_driver passes in all four.
  • Validation layer:
    • Setup: run with ctest -V, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1. The layer was a user-local copy loaded through VK_ADD_LAYER_PATH.
    • main: the four tests plus agc_driver_device_selection, 5 of 5 pass.
    • The change: the same five plus agc_driver_vulkan_test_device, 6 of 6 pass.
    • VK_LOADER_DEBUG=layer shows the validation layer inserted in every test process (9 times on main, 14 with the change).
    • Neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS, and neither has any VUID- errors.
  • Checks: tools/check_conventions.py --base origin/main, tools/check_test_registration.py and tools/check_main_sync.py --base origin/main --head HEAD pass.

From the first version of this PR, on Arch Linux on WSL2 with no Vulkan ICD: the four tests failed on main 3 of 3 runs in Release and Debug, and were Skipped with the change. ANYPS5_REQUIRE_VULKAN=1 still failed them. The full ctest passed 2431 of 2431.

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: NVIDIA GeForce RTX 5080, driver 32.0.16.1742, Windows 11 Pro; no device (Vulkan ICD hidden on the same host; Arch Linux WSL2 without a Vulkan ICD for the first version)
  • AI-assisted: yes, some AI assistance was used

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@dantdmdarealguy Thanks, skipping on machines without a Vulkan device makes sense. One change: the new skip reuses OpenVulkanTestDevice, which catches every std::exception, so on a machine that does have a device, an unexpected failure while creating it (an allocation failure, or an error after a usable physical device was picked) now turns into a "no device" skip instead of a test failure when ANYPS5_REQUIRE_VULKAN is unset.

Could you skip only when the Vulkan loader or a usable device is really missing, and let other constructor failures fail these four tests? A small regression for that case (device present, initialization fails) alongside the healthy, no-device and required-device cases would cover it. The genuine no-device exit-77 skip and the required-Vulkan failure can stay as they are.

@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 exact head 489d935. In PipelinedMetadataPass, OpenVulkanTestDevice is now called before constructing the driver so the test can return the configured skip code when no usable device exists. The two submit-progress CTest registrations no longer force ANYPS5_REQUIRE_VULKAN=1, allowing their existing probe/skip path to work outside the strict CI environment. The target set compiled locally. Execution of the submit-progress binary could not reach test logic on this host: emulator startup rejects the Xeon E5-1620 v2 for lacking LZCNT, BMI1, BMI2, MOVBE, AVX2 and FMA. The author reports repeated no-ICD skip checks in Release/Debug, GPU runs on RTX 5080, and validation-layer runs with no VUIDs; hosted product jobs for this PR are skipped by path policy. The refreshed policy checks pass.

@github-actions

github-actions Bot commented Oct 27, 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 11554 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L1179-1180

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/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
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 4449 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6182 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6743 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6804 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
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
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7464 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7622 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7922 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8542 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9020 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9335 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9356 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9432 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9489 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9565 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9672 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9673 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9674 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9675 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9676 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9700 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9712 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9748 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9842 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9852 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9875 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9891 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9892 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9893 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9895 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9897 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9898 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10069 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10194 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10233 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10333 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10351 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10359 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10442 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10581 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10652 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10678 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10757 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10846 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10920 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 11351 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11483 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11557 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11920 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 12051 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 12233 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The no-device skips fix a reproducible test-registration problem, and the author reports extensive no-ICD, GPU, Debug/Release, and validation-layer runs. I’m changing my earlier approval after reviewing the collaborator’s exception-path concern.

OpenVulkanTestDevice() catches every std::exception from the entire VulkanDevice constructor and returns a skip when ANYPS5_REQUIRE_VULKAN is unset. The constructor can throw after instance creation for failures unrelated to device absence (for example, physical-device enumeration, device selection/creation, required feature setup, or allocation). In that case these newly routed tests report “no usable Vulkan device” and pass as skipped on a developer host that does have a Vulkan device, hiding a test/setup regression.

Please make the skip conditional on a specific missing-loader/no-usable-device outcome and allow other initialization failures to fail, with a regression covering device-present initialization failure in addition to no-device and required-device cases. The current ANYPS5_REQUIRE_VULKAN=1 CI behavior protects that CI configuration but does not protect local runs with the variable unset.

@github-actions github-actions Bot added build agc libSceAgc* labels Oct 27, 2026
@dantdmdarealguy
dantdmdarealguy force-pushed the test/agc-skip-without-vulkan branch from 489d935 to 344da34 Compare October 27, 2026 07:34
@dantdmdarealguy

Copy link
Copy Markdown
Contributor Author

@MarcZX10 @oneandonlydean Thanks, both. I've pushed a reworked commit.

Skip only on a missing loader or device. The constructor now throws AgcDriver::VulkanUnavailable in exactly three places:

  • the loader library fails to load;
  • vkCreateInstance returns VK_ERROR_INCOMPATIBLE_DRIVER, which is what the loader returns with no driver;
  • no Vulkan 1.1 graphics and compute device exists.

OpenVulkanTestDevice() catches only that type, so the decision comes from the type, not from parsing messages. Since the type derives from std::runtime_error, other callers are unaffected.

Other constructor failures fail, whether ANYPS5_REQUIRE_VULKAN is set or not. That covers enumeration errors, other vkCreateInstance results, an unmatched ANYPS5_GPU, required features (VK_KHR_shader_float_controls and others), vkCreateDevice and allocation.

Regression tests: agc_driver_vulkan_test_device and agc_driver_vulkan_test_device_no_driver.

  • Healthy device: opens with and without ANYPS5_REQUIRE_VULKAN=1.
  • Device present, construction fails: with ANYPS5_GPU naming no device on a host that has one, the helper throws instead of skipping. With the previous helper this test fails ("a device construction failure on a host with NVIDIA GeForce RTX 5080 was reported as a skip"), and the four routed tests skip.
  • No device, and required device: the _no_driver registration hides the ICD. The helper skips without ANYPS5_REQUIRE_VULKAN and throws VulkanUnavailable with it. This runs on every host.

Unchanged, as oneandonlydean asked: the genuine no-device exit 77 and the required-Vulkan failure. Without an ICD all four tests still skip, and with ANYPS5_REQUIRE_VULKAN=1 they still fail. On the RTX 5080, all 1092 agc* and guest_job_manager_profiler* tests pass with the narrowed helper.

… Vulkan device

agc_driver_pipelined_metadata_pass went straight to the driver, so a
missing Vulkan driver failed it with vkCreateInstance result -9 instead
of returning 77. It now probes the device with OpenVulkanTestDevice()
first, as the other pipelined tests do.

agc_submit_progress and agc_submit_progress_no_timeline set
ANYPS5_REQUIRE_VULKAN=1 in their own ctest environment, which turned
the test's own skip into a failure on every host. CI sets the variable
for the whole Linux job, so a missing device still fails there.

OpenVulkanTestDevice() skipped on any exception from the VulkanDevice
constructor, so a construction failure on a host that has a device was
reported as a skip. The constructor now throws VulkanUnavailable when
the loader cannot be loaded, vkCreateInstance returns
VK_ERROR_INCOMPATIBLE_DRIVER, or no Vulkan 1.1 graphics and compute
device exists, and the helper skips only on that. Any other failure,
including ANYPS5_GPU naming no device, fails the test.
agc_driver_vulkan_test_device covers the healthy device, the required
device and a construction failure with a device present;
agc_driver_vulkan_test_device_no_driver hides the ICD and covers the
skip and the ANYPS5_REQUIRE_VULKAN=1 failure.
@dantdmdarealguy
dantdmdarealguy force-pushed the test/agc-skip-without-vulkan branch from 344da34 to 068455a Compare October 27, 2026 20:29
@adriadam10
adriadam10 dismissed MarcZX10’s stale review October 28, 2026 08:45

Dismissing a stale review: the requested changes were addressed after it (new head) and the merge queue blocks on it. Please request changes again if anything is still open.

@adriadam10
adriadam10 merged commit 2f34dca into boykopovar:main Oct 28, 2026
12 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked against the points raised by @oneandonlydean and @MarcZX10 on the previous head:

  • OpenVulkanTestDevice() now skips only on AgcDriver::VulkanUnavailable, thrown in exactly the loader-missing, VK_ERROR_INCOMPATIBLE_DRIVER and no-Vulkan-1.1-device cases. Messages are unchanged, and ANYPS5_GPU naming no device throws earlier as a plain runtime_error, so it fails instead of skipping.
  • PipelinedMetadataPass.cpp probes first and returns 77; the two submit-progress registrations no longer force ANYPS5_REQUIRE_VULKAN=1.
  • agc_driver_vulkan_test_device and _no_driver would fail with the previous catch-all helper (a construction failure with a device present reported as a skip).

Merged.

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

Labels

agc libSceAgc* build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants