Repository navigation
test(agc): load the Vulkan loader with portability enumeration in four more fixtures on macOS - #12927
Merged
adriadam10 merged 1 commit intoOct 30, 2026
Conversation
…r more fixtures on macOS BdaDevice, Recorder, OversizedDescriptorSets and SampledCacheBudget open their own Vulkan instance but load only libvulkan.so.1 outside Windows and create it without portability enumeration, so on macOS they cannot load Vulkan and skip, or fail under ANYPS5_REQUIRE_VULKAN=1. They now load libvulkan.1.dylib and enumerate portability drivers on macOS, as the nine fixtures boykopovar#7886 changed already do. Co-authored-by: mugurc <20699965+mugurc@users.noreply.github.com> Co-authored-by: jermainee <34961982+jermainee@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
|
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.
|
Contributor
✅ NVIDIA GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (2, not counted against this PR)Validation IDs already present on main (3 IDs in 182 tests)Skipped (8)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
Collaborator
|
Checked the four fixtures against the already-merged #7886 pattern (identical eight lines, confined to |
12 tasks done
12 tasks done
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
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 fix(agc): keep sRGB storage images in their UNORM twin on every driver #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 test(agc): enable VK_KHR_portability_subset in the tests that create their own device #10920 adds; this PR's four files merge with test(agc): enable VK_KHR_portability_subset in the tests that create their own device #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: test(agc): enable VK_KHR_portability_subset in the tests that create their own device #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