From: Sophon Date: Sat, 14 Feb 2026 05:29:17 +0000 (+0800) Subject: vulkan: Add vendor id for Qualcomm drivers (llama/19569) X-Git-Tag: v0.9.7~8 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=07a0e18e468ef10bcb38950183299c3c306da049;p=pkg%2Fggml%2Fsources%2Fggml vulkan: Add vendor id for Qualcomm drivers (llama/19569) This commit allows Qualcomm native vulkan driver to be used on Windows instead of Mesa Dozen. --- diff --git a/src/ggml-vulkan/ggml-vulkan.cpp b/src/ggml-vulkan/ggml-vulkan.cpp index 82933ae0..e919d222 100644 --- a/src/ggml-vulkan/ggml-vulkan.cpp +++ b/src/ggml-vulkan/ggml-vulkan.cpp @@ -92,6 +92,7 @@ static bool is_pow2(uint32_t x) { return x > 1 && (x & (x-1)) == 0; } #define VK_VENDOR_ID_APPLE 0x106b #define VK_VENDOR_ID_INTEL 0x8086 #define VK_VENDOR_ID_NVIDIA 0x10de +#define VK_VENDOR_ID_QUALCOMM 0x5143 #define VK_DEVICE_DESCRIPTOR_POOL_SIZE 256 @@ -5641,6 +5642,10 @@ static void ggml_vk_instance_init() { driver_priorities[vk::DriverId::eMesaNvk] = 2; #endif break; + case VK_VENDOR_ID_QUALCOMM: + driver_priorities[vk::DriverId::eQualcommProprietary] = 1; + driver_priorities[vk::DriverId::eMesaTurnip] = 2; + break; } driver_priorities[vk::DriverId::eMesaDozen] = 100;