]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
vulkan: Add vendor id for Qualcomm drivers (llama/19569)
authorSophon <redacted>
Sat, 14 Feb 2026 05:29:17 +0000 (13:29 +0800)
committerGeorgi Gerganov <redacted>
Sat, 14 Feb 2026 22:20:18 +0000 (00:20 +0200)
This commit allows Qualcomm native vulkan driver to be used on Windows
instead of Mesa Dozen.

src/ggml-vulkan/ggml-vulkan.cpp

index 82933ae03301cb397b20fa4e159d09bcc2fea7c9..e919d2223e77219894ce9af39e64c2e751a1436a 100644 (file)
@@ -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;