Repository navigation
test(agc): load the Vulkan loader by its macOS name in the host import and producer gate helpers - #11706
Conversation
…t 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.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed exact head 54143904099eee1dd7bd7c45125e581872cc7db0 against current main ddd72f488b6070c3864c8782cc5691ca3e30e680. Approve; no actionable findings.
Both changes add the existing macOS Vulkan loader name, libvulkan.1.dylib, while preserving the Windows and Linux names. I verified the same platform-specific loader pattern in current AGC execution tests (DepthStorage.cpp and related files); these helpers only resolve vkGetDeviceProcAddr for an already-created device, so they do not need instance portability-enumeration handling.
The author reports reproducing all seven failures before the change and passing them after it on macOS/MoltenVK, including a required validation-layer run with no VUIDs. Current hosted eligibility, intake, labels, report and conventions pass; the product jobs are skipped by path policy, so I am not counting them as execution of these tests. The current-main conventions and git diff --check pass.
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER (vendor 0x10de, device 0x1e84; Vulkan loader 1.4.357 from the NVIDIA driver), WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, The tree also carried the open PRs #11724, #11644, #11639, #11636, #11635, #11630, #11353, #11347, #11221, #10925, #11693, #11686, #11682, all merged cleanly, so the run is a joint one. The tests touching this PR's files: AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Checked that |
What
GuestMemoryLifetimeHasHostImports(the host import query of theagc_driver_guest_memory_lifetime*tests) and the producer submission gate ofagc_driver_indirect_arguments_pending_produceropenlibvulkan.so.1on every host that isn't Windows. On macOS that file doesn't exist, so the 7 tests stop withcannot load Vulkan for the host import capability query/cannot load Vulkan for the producer submission gatebefore they test anything. Both now openlibvulkan.1.dylibon macOS, asDepthStorage.cpp,PooledBufferRange.cppand the other driver tests already do. Both only resolvevkGetDeviceProcAddrfor the driver's existing device, so they need no portability enumeration.Tested
macOS 27.2, Apple M2 Max, x86_64 Release under Rosetta 2.
mainalone doesn't build on macOS yet, so this ran onmain27ad7244d2plus the open macOS build PRs (#10366, #7631, #10659, #10660, #11249, #11358, #10669, #10552, #7804, #10540, #10676, #11447, #11437), #11554 and #11705.ANYPS5_NO_SHADER_CACHE=1,-j1 --timeout 30.agc_driver_guest_memory_lifetime,_copy,_direct,_locked,_heap,_heap_uncachedandagc_driver_indirect_arguments_pending_producer: all 7 fail without this change with the messages above, and pass with it on MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and on MoltenVK main + MSL: Preserve negative zero in precise multiplication KhronosGroup/SPIRV-Cross#2704. The verbose log shows they run to the end (guest memory host import lifetime passed, the sixindirect arguments pending producercases passed), not a skip.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_REQUIRE_VULKAN=1,ctest -V: all pass, the layer loads, noVUID-errors. Without the change they stop at the loader load, so there is no full run to compare against.__APPLE__branch only.python3 tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code