Files
metal2vulkan/crates
Anees Iqbal bdbcdd539d rt: under direct driver loading, an instance extension counts only where a given driver lists it, or the loader implements it
Instance::with_drivers gives the loader the consumer's drivers in its exclusive mode, so no driver a
manifest names is loaded. But the loader's vkEnumerateInstanceExtensionProperties still lists those
manifest drivers' extensions, and enabled() counted an extension as offered where the loader OR a
given driver listed it. On the Mac host, with KosmicKrisp loaded directly and MoltenVK's manifest
installed, a consumer asking for VK_EXT_headless_surface got it enabled because MoltenVK lists it,
and vkCreateInstance failed with VK_ERROR_EXTENSION_NOT_PRESENT: every rt test of reims's Mac leg
failed at the instance (its batch 329b, m3-max-58452).

Now, with drivers given, a consumer's extension counts only where a given driver lists it. The
optional floor extension VK_KHR_portability_enumeration, which the specification says "is
implemented in the loader", still counts on the loader's list. Without drivers nothing changes: the
loader's list is the system drivers'.

Verified: the floor test's new cases (a manifest driver's extension counted without drivers, left
out with drivers that do not list it, portability enumeration kept) beside the existing ones; the
compile job named in the landing.
2026-11-20 05:41:23 -08:00
..