Huny's Dev Blog
huny.dev

Khronos Deprecates MoltenVK for KosmicKrisp: Inside Vulkan 1.4 Conformance on Apple Silicon and Preparing for VK_KHR_portability_subset Removal

An engineering deep dive into The Khronos Group's deprecation of MoltenVK and the Vulkan Portability Initiative in favor of LunarG's Mesa-based KosmicKrisp driver (Vulkan 1.4 conformant on Apple silicon Metal 4). Covers the Mesa NIR shader pipeline, mid-December 2026 SDK header removal of VK_KHR_portability_subset, macOS 26 Intel vs. ARM64 loader enumeration pitfalls, and hybrid .app bundle packaging.

Hun Jang
Hun Jang Nov 27, 2026

Khronos Group Deprecation of MoltenVK & the Vulkan Portability Initiative in Favor of Mesa's KosmicKrisp (Vulkan 1.4 Conformant on Apple Silicon Metal 4) Architecture Diagram (Conceptual Diagram)

On November 25, 2026, The Khronos Group officially deprecated MoltenVK and the Vulkan Portability Initiative, establishing LunarG's Mesa-based KosmicKrisp driver as the standard, fully Vulkan 1.4-conformant implementation for Apple silicon Macs (arm64, macOS 26+ on Metal 4). However, deprecating MoltenVK and removing VK_KHR_portability_subset from the Vulkan specification is entirely separate from dropping VK_KHR_portability_enumeration or MoltenVK fallbacks across all Apple targets. Starting with the mid-December 2026 Vulkan SDK release, the provisional VK_KHR_portability_subset extension is being permanently removed from the Vulkan headers—breaking builds that still reference its symbols—while Intel-based Macs (x86_64), macOS 25 and earlier, and iOS/iPadOS/tvOS devices remain outside KosmicKrisp's supported scope and still require MoltenVK via the Vulkan Loader.

This post cross-verifies the official Khronos Group announcement (From Portability to Conformance), LunarG's Vulkan 1.4 conformance announcement for KosmicKrisp, the October 2026 LunarG technical white paper (The State of Vulkan on Apple), the official macOS Vulkan SDK (1.4.363.1) documentation, and Phoronix coverage to explain how KosmicKrisp works under the hood and how C/C++ graphics and compute developers should update their initialization code and .app bundles before the mid-December SDK update. All specifications and figures below come from these official sources (verified on 2026-11-27) rather than separate in-house engine benchmark runs.

1. Why Khronos Deprecated MoltenVK and the Portability Initiative

Because Apple does not provide a mechanism for native low-level third-party GPU drivers on macOS or iOS, Vulkan on Apple hardware must run as a layered implementation atop Apple's Metal API (LunarG White Paper).

For years, MoltenVK served as the pioneering translation layer across macOS, iOS, iPadOS, and tvOS. However, early architectural tradeoffs prevented MoltenVK from passing 100% of the Khronos Vulkan Conformance Test Suite (CTS). To accommodate MoltenVK, Khronos introduced the Vulkan Portability Initiative, consisting of two extensions:

  • VK_KHR_portability_subset (provisional device extension): Allowed a non-conformant driver to advertise which otherwise-mandatory Vulkan features it lacked.
  • VK_KHR_portability_enumeration (instance/loader extension): Hid non-conformant physical devices from standard enumeration unless an application explicitly opted in with VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR.

Funded by Google (which relies on it to accelerate the Android Emulator on macOS) and developed by LunarG atop Mesa's Vulkan framework, KosmicKrisp changed the equation by achieving full specification conformance (Khronos Official Blog):

  • October 2025: Passed the Vulkan 1.3 CTS within 10 months of starting from a blank slate (drawing inspiration from Alyssa Rosenzweig's Honeykrisp driver) and was upstreamed in Mesa 26.0.
  • September 2026: Passed the Vulkan 1.4 CTS, became a core component of the macOS Vulkan SDK (1.4.363.0+), and roughly tripled its runtime performance compared to its initial Vulkan 1.3 milestone (LunarG Announcement).
  • November 25, 2026: Because no other layered driver (such as Microsoft's Dozen for Vulkan-on-DirectX 12) required the portability extensions, Khronos formally deprecated the Vulkan Portability Initiative and MoltenVK, transitioning KhronosGroup/MoltenVK to best-effort community maintenance.
Dimension
KosmicKrisp (New Conformant Default)
MoltenVK (Deprecated Legacy Path)
Vulkan CTS Conformance
100% Vulkan 1.4 Conformant
Non-conformant subset (partial Vulkan 1.4 support with gaps)
Foundation & Governance
Mesa 26.0+ Vulkan driver framework (MIT license, maintained by LunarG)
Standalone C++ translation library (Apache 2.0, community-maintained)
Shader Compilation Stack
SPIR-V → Mesa NIR compiler → Metal Shading Language (MSL)
SPIR-V → SPIRV-Cross → MSL text decompilation
Underlying Metal Target
Metal 4 exclusively (Tessellation, Robustness2, Multi-draw, Indirect Draw)
Broader legacy Metal versions
Supported Hardware & OS
Apple Silicon (M1 and later arm64) + macOS 26 (Tahoe) or later
Intel Macs (x86_64), macOS 25 & earlier, iOS, iPadOS, tvOS
ICD Manifest & Loader Flag
libkosmickrisp_icd.json ("is_portability_driver": false)
MoltenVK_icd.json ("is_portability_driver": true, requires ENUMERATE_PORTABILITY)
Validation & Shader Tooling
Full GPU-Assisted Validation (GPU-AV) & Debug Printf support
GPU-AV and Debug Printf unsupported due to SPIRV-Cross limitations
Vulkan Driver ID (VkDriverId)
VK_DRIVER_ID_MESA_KOSMICKRISP
VK_DRIVER_ID_MOLTENVK

2. Under the Hood: From SPIRV-Cross to Mesa NIR and Metal 4

The architectural leap between MoltenVK and KosmicKrisp centers on two design choices documented by Khronos and LunarG.

2.1 Mesa NIR Compiler Pipeline vs. SPIRV-Cross Text Translation

MoltenVK translates incoming SPIR-V bytecode into Metal Shading Language (MSL) source strings using SPIRV-Cross. While effective for basic rendering, this translation pipeline broke shader instrumentation passes used by the Khronos Validation Layers, making GPU-Assisted Validation (GPU-AV) and Debug Printf unavailable on macOS.

KosmicKrisp is built directly on Mesa's shared Vulkan runtime and NIR shader compiler—the same infrastructure powering RADV, ANV, and NVK on Linux. Shaders are lowered through NIR passes and emitted to MSL while command buffers are encoded directly against Metal 4. As a result, GPU-Assisted Validation and Debug Printf now run natively on Apple silicon Macs, and LunarG notes that third-party frame debuggers such as RenderDoc are slated to follow.

2.2 What Changes in the Mid-December 2026 Vulkan SDK Headers

According to the November 25, 2026 Khronos announcement, two specification and SDK changes ship in mid-December 2026:

  1. Removal of VK_KHR_portability_subset: The provisional VK_KHR_portability_subset device extension is removed from both the Vulkan specification and the official Vulkan C/C++ headers. Any code that still enables "VK_KHR_portability_subset" or references its structures will fail to compile against the mid-December 2026 headers.
  1. Redefinition of VK_KHR_portability_enumeration: The VK_KHR_portability_enumeration instance extension remains in the headers as legacy functionality. Its definition is narrowed strictly to controlling whether the Vulkan Loader includes non-conformant drivers—specifically those setting "is_portability_driver": true in their ICD manifest JSON—during physical device enumeration (Vulkan Loader Driver Manifest Specification).

3. Three Practical Migration Pitfalls Engineers Must Avoid

When updating cross-platform Vulkan applications (such as custom game engines, wgpu, or local LLM/compute backends like llama.cpp) for macOS, three subtle loader behaviors documented in the macOS Vulkan SDK Guide and October 2026 LunarG White Paper can cause unexpected runtime regressions.

3.1 Pitfall 1: Blindly Enabling VK_KHR_portability_enumeration Causes the Loader to List MoltenVK First

As emphasized in the official macOS Vulkan SDK guide, KosmicKrisp does not need or support VK_KHR_portability_enumeration. When both KosmicKrisp and MoltenVK are installed in the system path (/usr/local/share/vulkan/icd.d) or bundled together:

  • If your application enables VK_KHR_portability_enumeration: The Vulkan Loader exposes both drivers, with MoltenVK listed first (index 0). Applications that simply pick the first enumerated GPU will silently keep running on deprecated MoltenVK instead of KosmicKrisp.
  • If your application omits VK_KHR_portability_enumeration: The Vulkan Loader hides MoltenVK and exposes only KosmicKrisp.

3.2 Pitfall 2: The macOS 26 (Tahoe) Intel (x86_64) Overlap Trap

Why not simply omit VK_KHR_portability_enumeration whenever the OS is macOS 26 or later? Richard S. Wright Jr.'s October 2026 LunarG white paper highlights a critical boundary condition:

  • macOS 26 (Tahoe) is simultaneously the oldest macOS release supported by KosmicKrisp and the final macOS release to support Intel (x86_64) Macs (macOS 27 Golden Gate drops Intel hardware support entirely).
  • Because KosmicKrisp only loads on Apple silicon (arm64), an Intel Mac running macOS 26 cannot load KosmicKrisp.
  • If your code disables VK_KHR_portability_enumeration based solely on an OS version check (macOS 26.0+) without guarding for !defined(__x86_64__), an Intel Mac running macOS 26 will hide MoltenVK while failing to load KosmicKrisp—resulting in zero enumerated Vulkan devices (VK_ERROR_INCOMPATIBLE_DRIVER).

3.3 Pitfall 3: Direct Linking and iOS/iPadOS Scope Boundaries

  • Vulkan Loader Required: Unlike legacy MoltenVK setups that linked libMoltenVK.dylib directly into the executable, KosmicKrisp requires using the Vulkan Loader (libvulkan.1.dylib) (macOS Vulkan SDK Guide).
  • iOS Still Requires MoltenVK Today: Although LunarG has tested internal iOS builds of KosmicKrisp with strong Vulkan 1.4 CTS results, the iOS build is not enabled in upstream Mesa yet due to CI and support resourcing (LunarG Vulkan 1.4 Announcement). iOS, iPadOS, and tvOS targets must continue bundling MoltenVK.framework.

4. Code & Packaging Guide: Runtime Driver Selection and Hybrid .app Bundles

4.1 Forcing KosmicKrisp from the CLI via VK_DRIVER_FILES

During local command-line development with the macOS Vulkan SDK (1.4.363.1), you can hot-swap between KosmicKrisp and MoltenVK using VK_DRIVER_FILES:

4.2 Mid-December 2026 SDK-Ready C++ Initialization & VkDriverId Selection

Following the October 2026 LunarG White Paper, the C++ pattern below removes all VK_KHR_portability_subset references, locks the loader to the app bundle via VK_LOADER_SEARCH_ONLY_IN_BUNDLE (added in Loader 1.4.363.0), and selects VK_DRIVER_ID_MESA_KOSMICKRISP on Apple silicon while preserving MoltenVK fallback for Intel Macs and macOS 25:

4.3 Packaging Both KosmicKrisp and MoltenVK in a macOS .app Bundle

Because macOS GUI applications launched from Finder ignore shell environment variables and System Integrity Protection (SIP) blocks DYLD_LIBRARY_PATH, shipping applications should embed the Vulkan Loader and ICD libraries directly inside the .app bundle (macOS Vulkan SDK Guide):

Inside Contents/Resources/vulkan/icd.d/libkosmickrisp_icd.json, update library_path to traverse three directories up to Contents/Frameworks/ and ensure "is_portability_driver" is set to false:

5. Engineering Migration Checklist

  • Remove VK_KHR_portability_subset Before the Mid-December SDK Update: Have you stripped all references to VK_KHR_portability_subset so your project continues compiling against the mid-December 2026 Vulkan headers (or pinned legacy headers if maintaining a frozen MoltenVK-only branch)?
  • Link the Vulkan Loader Instead of Direct ICD Linking: Does your macOS build link against libvulkan.1.dylib (or Volk) rather than linking libMoltenVK.dylib directly?
  • Guard VK_KHR_portability_enumeration with Both Architecture and OS Checks: Did you combine #if !defined(__x86_64__) with if (__builtin_available(macOS 26.0, *)) (or filter by VK_DRIVER_ID_MESA_KOSMICKRISP) so Apple silicon Macs default to KosmicKrisp without breaking Intel Macs on macOS 26?
  • Lock Bundle ICD Discovery: Does your shipping macOS binary call setenv("VK_LOADER_SEARCH_ONLY_IN_BUNDLE", "TRUE", 1) prior to vkCreateInstance so global /usr/local developer SDK installs cannot hijack driver selection?
  • Enable GPU-Assisted Validation & Debug Printf: Have you re-enabled GPU-AV and Debug Printf in the Khronos Validation Layer on your Apple silicon test machines now that KosmicKrisp compiles shaders through Mesa NIR?

References & Official Sources (Verified 2026-11-27)

Korean version: Khronos의 MoltenVK 공식 지원 중단과 KosmicKrisp 전환 해부: Apple Silicon Vulkan 1.4 완전 적합 아키텍처와 VK_KHR_portability_subset 제거 대응하기Khronos의 MoltenVK 공식 지원 중단과 KosmicKrisp 전환 해부: Apple Silicon Vulkan 1.4 완전 적합 아키텍처와 VK_KHR_portability_subset 제거 대응하기

추천 글