Repository navigation
feat(agc): select Vulkan devices by driver name - #6788
Closed
Muhammed-Jameel wants to merge 1 commit into
Closed
Muhammed-Jameel wants to merge 1 commit into
Muhammed-Jameel wants to merge 1 commit into
Conversation
al3w0f205
reviewed
Oct 16, 2026
al3w0f205
left a comment
Contributor
There was a problem hiding this comment.
Tested on Windows 11 with MinGW-w64 (GCC 15.2.0, Ninja, CMake 4.2.3, Release):
tools/check_conventions.py --base origin/main: passed cleanly.- Build evaluation: when building
agc_vulkan_driver_selection_tests, the link step fails on Windows MinGW with an unresolved personality symbol:
undefined reference to `__gxx_personality_v0`
collect2.exe: error: ld returned 1 exit status
This happens because agc_vulkan_driver_selection_tests does not link libc. Adding:
target_link_libraries(agc_vulkan_driver_selection_tests PRIVATE libc)under core/libs/prx/libSceAgcDriver/CMakeLists.txt (matching the other AGC tests) resolves the linker error.
- With that library dependency added:
ninja -C build-all agc_vulkan_driver_selection_testsbuilds cleanly without warnings.ctest -R "^agc_vulkan_driver_selection$": passed 100% (20/20 with--repeat until-fail:20).
|
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.
|
12 tasks done
This was referenced Oct 18, 2026
Merged
11 tasks done
12 tasks done
12 tasks done
12 tasks done
12 tasks done
12 tasks done
Collaborator
|
Closing this as it has been waiting on a rebase for a while with no update. Thanks for the work; feel free to reopen it once it's rebased on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ANYPS5_GPUcannot distinguish Vulkan implementations that expose the same device name, such as MoltenVK and KosmicKrisp on one Apple GPU. AddANYPS5_VULKAN_DRIVERas a case-insensitive substring filter on the standardizeddriverName, combined with the existing GPU filter. An unmatched explicit request fails and lists device/driver identities instead of selecting another implementation. Empty requests preserve existing ranking.Query driver properties through Vulkan 1.2 core support or
VK_KHR_driver_propertieson older devices. Include the identity in candidate/selected-device diagnostics and preserve it for performance reports. Add focused tests for duplicate GPU names, combined filters, unavailable identities and core promotion, and extend the existing runtime selection regression.This is the first part of controlled macOS driver comparisons. It does not install drivers, implement a complete Mac runtime, change shader semantics, or claim a speedup. It also works with other Vulkan implementations.
Related work checked: #6222 already provides Mac loader/portability changes, #4847 addresses BDA candidate eligibility, and #5021 contains the experimental ARM64 AOT route. Their implementations are not duplicated here. The selector has no merge dependency on those changes, but end-to-end macOS runtime validation still needs the Mac prerequisites. This draft remains pending full runtime validation.
Tested
Apple M1 Pro, 16 GiB, macOS 27.0.1 (26A434), AppleClang 17 / Xcode 26.2 with its matching macOS 26.2 SDK. Rebased onto
c8044c3a7.-Wall -Wextra -Werror -Wno-missing-field-initializers.agc_vulkan_driver_selection_testsbuilt and its CTest passed under Rosetta.VulkanDevice.cppadditionally required the bundled SDL include directory because the current Mac build does not supply it.agc_driver_device_selection_testsbuild attempted, blocked in existing macOS libc code (CLOCK_REALTIME_COARSE,stat.st_mtim, stdio macros and Linuxlink.h). The extended runtime test was not run. No Linux/Windows full build or game/FPS comparison is claimed.main; the attempt was terminated.Checklist
main; no other open PR found implementing driver-name filtering