summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar liamwhite2023-11-29 12:33:34 -0500
committerGravatar GitHub2023-11-29 12:33:34 -0500
commitdf49795bcbb4fa7e161c860c40ef36dce65d7a8d (patch)
tree92ca8ca353c7441f74b56514a821d3c8b977cdc6 /src/video_core
parentMerge pull request #11946 from flodavid/gamemode (diff)
parentvulkan_device: add names for more driverID enumeration values (diff)
downloadyuzu-df49795bcbb4fa7e161c860c40ef36dce65d7a8d.tar.gz
yuzu-df49795bcbb4fa7e161c860c40ef36dce65d7a8d.tar.xz
yuzu-df49795bcbb4fa7e161c860c40ef36dce65d7a8d.zip
Merge pull request #12154 from liamwhite/more-drivers
vulkan_device: add names for more driverID enumeration values
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_device.cpp18
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp34
2 files changed, 41 insertions, 11 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp
index 94258ccd0..993438a27 100644
--- a/src/video_core/renderer_opengl/gl_device.cpp
+++ b/src/video_core/renderer_opengl/gl_device.cpp
@@ -265,33 +265,33 @@ std::string Device::GetVendorName() const {
265 if (vendor_name == "Intel") { 265 if (vendor_name == "Intel") {
266 // For Mesa, `Intel` is an overloaded vendor string that could mean crocus or iris. 266 // For Mesa, `Intel` is an overloaded vendor string that could mean crocus or iris.
267 // Simply return `INTEL` for those as well as the Windows driver. 267 // Simply return `INTEL` for those as well as the Windows driver.
268 return "INTEL"; 268 return "Intel";
269 } 269 }
270 if (vendor_name == "Intel Open Source Technology Center") { 270 if (vendor_name == "Intel Open Source Technology Center") {
271 return "I965"; 271 return "i965";
272 } 272 }
273 if (vendor_name == "Mesa Project") { 273 if (vendor_name == "Mesa Project") {
274 return "I915"; 274 return "i915";
275 } 275 }
276 if (vendor_name == "Mesa/X.org") { 276 if (vendor_name == "Mesa/X.org") {
277 // This vendor string is overloaded between llvmpipe, softpipe, and virgl, so just return 277 // This vendor string is overloaded between llvmpipe, softpipe, and virgl, so just return
278 // MESA instead of one of those driver names. 278 // MESA instead of one of those driver names.
279 return "MESA"; 279 return "Mesa";
280 } 280 }
281 if (vendor_name == "AMD") { 281 if (vendor_name == "AMD") {
282 return "RADEONSI"; 282 return "RadeonSI";
283 } 283 }
284 if (vendor_name == "nouveau") { 284 if (vendor_name == "nouveau") {
285 return "NOUVEAU"; 285 return "Nouveau";
286 } 286 }
287 if (vendor_name == "X.Org") { 287 if (vendor_name == "X.Org") {
288 return "R600"; 288 return "R600";
289 } 289 }
290 if (vendor_name == "Collabora Ltd") { 290 if (vendor_name == "Collabora Ltd") {
291 return "ZINK"; 291 return "Zink";
292 } 292 }
293 if (vendor_name == "Intel Corporation") { 293 if (vendor_name == "Intel Corporation") {
294 return "OPENSWR"; 294 return "OpenSWR";
295 } 295 }
296 if (vendor_name == "Microsoft Corporation") { 296 if (vendor_name == "Microsoft Corporation") {
297 return "D3D12"; 297 return "D3D12";
@@ -300,7 +300,7 @@ std::string Device::GetVendorName() const {
300 // Mesa's tegra driver reports `NVIDIA`. Only present in this list because the default 300 // Mesa's tegra driver reports `NVIDIA`. Only present in this list because the default
301 // strategy would have returned `NVIDIA` here for this driver, the same result as the 301 // strategy would have returned `NVIDIA` here for this driver, the same result as the
302 // proprietary driver. 302 // proprietary driver.
303 return "TEGRA"; 303 return "Tegra";
304 } 304 }
305 return vendor_name; 305 return vendor_name;
306} 306}
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index fde36a49c..188ceeed7 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -847,11 +847,41 @@ std::string Device::GetDriverName() const {
847 case VK_DRIVER_ID_NVIDIA_PROPRIETARY: 847 case VK_DRIVER_ID_NVIDIA_PROPRIETARY:
848 return "NVIDIA"; 848 return "NVIDIA";
849 case VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS: 849 case VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS:
850 return "INTEL"; 850 return "Intel";
851 case VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA: 851 case VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA:
852 return "ANV"; 852 return "ANV";
853 case VK_DRIVER_ID_IMAGINATION_PROPRIETARY:
854 return "PowerVR";
855 case VK_DRIVER_ID_QUALCOMM_PROPRIETARY:
856 return "Qualcomm";
857 case VK_DRIVER_ID_ARM_PROPRIETARY:
858 return "Mali";
859 case VK_DRIVER_ID_GOOGLE_SWIFTSHADER:
860 return "SwiftShader";
861 case VK_DRIVER_ID_BROADCOM_PROPRIETARY:
862 return "Broadcom";
853 case VK_DRIVER_ID_MESA_LLVMPIPE: 863 case VK_DRIVER_ID_MESA_LLVMPIPE:
854 return "LAVAPIPE"; 864 return "Lavapipe";
865 case VK_DRIVER_ID_MOLTENVK:
866 return "MoltenVK";
867 case VK_DRIVER_ID_VERISILICON_PROPRIETARY:
868 return "Vivante";
869 case VK_DRIVER_ID_MESA_TURNIP:
870 return "Turnip";
871 case VK_DRIVER_ID_MESA_V3DV:
872 return "V3DV";
873 case VK_DRIVER_ID_MESA_PANVK:
874 return "PanVK";
875 case VK_DRIVER_ID_MESA_VENUS:
876 return "Venus";
877 case VK_DRIVER_ID_MESA_DOZEN:
878 return "Dozen";
879 case VK_DRIVER_ID_MESA_NVK:
880 return "NVK";
881 case VK_DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA:
882 return "PVR";
883 // case VK_DRIVER_ID_MESA_AGXV:
884 // return "Asahi";
855 default: 885 default:
856 return properties.driver.driverName; 886 return properties.driver.driverName;
857 } 887 }