From 54143904099eee1dd7bd7c45125e581872cc7db0 Mon Sep 17 00:00:00 2001 From: Jota <139649225+jotitadev@users.noreply.github.com> Date: Tue, 27 Oct 2026 01:16:34 -0300 Subject: [PATCH] test(agc): load the Vulkan loader by its macOS name in the host import and producer gate helpers The guest memory lifetime tests' host import query and the indirect arguments pending producer gate opened libvulkan.so.1 on every non-Windows host, so on macOS they failed with "cannot load Vulkan" before running. They now open libvulkan.1.dylib there, as the other driver tests do. --- .../prx/libSceAgcDriver/tests/GuestMemoryLifetimeSupport.hpp | 2 ++ .../tests/execution/IndirectArgumentsPendingProducer.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/libs/prx/libSceAgcDriver/tests/GuestMemoryLifetimeSupport.hpp b/core/libs/prx/libSceAgcDriver/tests/GuestMemoryLifetimeSupport.hpp index 863b8ca67f5e..2b2866adc8ed 100644 --- a/core/libs/prx/libSceAgcDriver/tests/GuestMemoryLifetimeSupport.hpp +++ b/core/libs/prx/libSceAgcDriver/tests/GuestMemoryLifetimeSupport.hpp @@ -17,6 +17,8 @@ static inline bool GuestMemoryLifetimeHasHostImports(VkDevice device) { } #ifdef _WIN32 constexpr const char* libraryName = "vulkan-1.dll"; +#elif defined(__APPLE__) + constexpr const char* libraryName = "libvulkan.1.dylib"; #else constexpr const char* libraryName = "libvulkan.so.1"; #endif diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/IndirectArgumentsPendingProducer.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/IndirectArgumentsPendingProducer.cpp index 306f35cbd0f6..eeb642dcbca3 100644 --- a/core/libs/prx/libSceAgcDriver/tests/execution/IndirectArgumentsPendingProducer.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/execution/IndirectArgumentsPendingProducer.cpp @@ -162,6 +162,8 @@ class ProducerSubmissionGate { explicit ProducerSubmissionGate(AgcDriver::VulkanDevice& device) : device(device) { #ifdef _WIN32 constexpr const char* libraryName = "vulkan-1.dll"; +#elif defined(__APPLE__) + constexpr const char* libraryName = "libvulkan.1.dylib"; #else constexpr const char* libraryName = "libvulkan.so.1"; #endif