From 6869737a3f51fd9799c38082fc4c7d67dcf7fcff Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 15 Jun 2024 15:40:48 -0300 Subject: [PATCH] vulkan: recognize more vendor ids for love.graphics.getRendererInfo --- src/modules/graphics/vulkan/Vulkan.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/vulkan/Vulkan.cpp b/src/modules/graphics/vulkan/Vulkan.cpp index f73f1f5cc..dea2523a7 100644 --- a/src/modules/graphics/vulkan/Vulkan.cpp +++ b/src/modules/graphics/vulkan/Vulkan.cpp @@ -494,13 +494,14 @@ TextureFormat Vulkan::getTextureFormat(PixelFormat format) return textureFormat; } -// values taken from https://pcisig.com/membership/member-companies +// values taken from https://pcisig.com/membership/member-companies and https://vulkan.gpuinfo.org/displaycoreproperty.php?name=vendorid&platform=all // as specified at https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceProperties.html std::string Vulkan::getVendorName(uint32_t vendorId) { switch (vendorId) { case 4130: + case 4098: return "AMD"; case 4318: return "Nvidia"; @@ -516,6 +517,8 @@ std::string Vulkan::getVendorName(uint32_t vendorId) return "Qualcomm"; case 5348: return "Broadcom"; + case 65541: + return "Mesa"; default: return "unknown"; }