Commit abc7f6f2d for llama.cpp
commit abc7f6f2dc17821bcd755f9ce19daf3ebb56c7e1
Author: Jeff Bolz <jbolz@nvidia.com>
Date: Sun Dec 6 06:42:07 2026 -0600
vulkan: Disable BDA for MoltenVK (#33865)
* vulkan: Disable BDA for MoltenVK
* Update ggml/src/ggml-vulkan/ggml-vulkan.cpp
Co-authored-by: Ruben Ortlam <picard12@live.de>
---------
Co-authored-by: Ruben Ortlam <picard12@live.de>
diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp
index 425e8a58b..ea7aa1c62 100644
--- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp
+++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp
@@ -5468,7 +5468,8 @@ vk_device ggml_vk_get_device(size_t idx) {
getenv("GGML_VK_DISABLE_MULTI_ADD") == nullptr;
device->shader_int64 = device_features2.features.shaderInt64;
- device->buffer_device_address = vk12_features.bufferDeviceAddress;
+ // Disable BDA on MoltenVK due to https://github.com/KhronosGroup/MoltenVK/issues/2876
+ device->buffer_device_address = vk12_features.bufferDeviceAddress && device->driver_id != vk::DriverId::eMoltenvk;
device->vulkan_memory_model = vk12_features.vulkanMemoryModel;
device->shader_clock = shader_clock_support && shader_clock_features.shaderDeviceClock;