test(agc): load the Vulkan loader with portability enumeration in four more fixtures on macOS #12927
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12927"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by tkcm01 on 2026-10-29T14:48:50Z.
What
Four AGC test fixtures open their own Vulkan instance:
tests/BdaDevice.cpp,tests/Recorder.cpp,tests/execution/OversizedDescriptorSets.cppandtests/execution/SampledCacheBudget.cpp. Outside Windows they load onlylibvulkan.so.1, and they create the instance without portability enumeration. So on macOS they cannot load Vulkan. 87 of the 96 tests their four executables run skip withcannot load Vulkan, and they fail underANYPS5_REQUIRE_VULKAN=1.On macOS each fixture now loads
libvulkan.1.dyliband creates the instance withVK_KHR_portability_enumerationandVK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR. This is the same eight lines #7886 added to the nine other fixtures that open their own device. Device creation is unchanged: enablingVK_KHR_portability_subsetthere is #10920. Test-only; Linux and Windows compile the same code as before.@mugurc's
ci/macos-series-2has this forRecorder.cpp. @jermainee found it forOversizedDescriptorSetsandSampledCacheBudgeton #1 (9 October). Both are credited as co-authors. Announced on #1.Tested
macOS 27.2 (26B123), Apple M4 (10-core GPU), Apple clang 21.0.0, x86-64 Release under Rosetta 2, MoltenVK 1.4.2 from the Vulkan SDK 1.4.363.0.
libSceAgcDriverdoesn't link on macOS frommainalone. So the tree ismain2960e9a6e7plus #7631, #7804, #10552, #11249, #11447, #10669, #11554 and #12076, the list from #1. The four files are the same there as on currentmain.The 96 tests of
agc_driver_bda_device_tests,agc_driver_recorder_tests,agc_driver_oversized_descriptor_sets_testsandagc_driver_sampled_cache_budget_tests, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:cannot load VulkanctestwithoutANYPS5_REQUIRE_VULKAN:agc_driver_oversized_descriptor_sets: the M4 binds fewer than 4097 storage buffers per stage.agc_import_settle_initial_dcc: imports under 1 MiB wait for a deferred settle only on Windows.agc_driver_recover_srgb_allocation: "the storage surface cannot serve an sRGB expansion copy". This is the failure #10859 describes and fixes.agc_recorder_failed_check: the test's deliberate uncaught throw ends in libc++abi's terminate, so ctest sees an abort. This is the "Exception runtime on macOS" entry indocs/dev/debt/libc.md. The expected message is printed.VUID-lines, since no device was created.VUID-VkDeviceCreateInfo-pProperties-04451, once per device these fixtures create. That is the missingVK_KHR_portability_subsetthat #10920 adds; this PR's four files merge with #10920 without conflicts.main: the 3027 selected tests passed. The four executables build. Of their tests that were selected, 4 CPU-only ones passed and 30 skipped, because the runner has no GPU.python3 tools/check_conventions.py --base upstream/main: passed.tools/pr_overlap.py: #10920 touches the same four files, in device creation. The two merge cleanly.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