summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-06-21 03:12:39 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-06-21 05:04:07 +0200
commita01459df3d48e6d4b5d8e7205a8e56b855d0606e (patch)
tree60d6b30f0e8b5c806f923fd529a6aae7f3833093 /src/video_core
parentvideo_core: Add GPU vendor name to window title bar (diff)
downloadyuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.tar
yuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.tar.gz
yuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.tar.bz2
yuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.tar.lz
yuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.tar.xz
yuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.tar.zst
yuzu-a01459df3d48e6d4b5d8e7205a8e56b855d0606e.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_device.cpp31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp
index 3d2674232..3b00614e7 100644
--- a/src/video_core/renderer_opengl/gl_device.cpp
+++ b/src/video_core/renderer_opengl/gl_device.cpp
@@ -282,14 +282,21 @@ std::string Device::GetVendorName() const {
if (vendor_name == "ATI Technologies Inc.") {
return "AMD";
}
- if (vendor_name == "Intel" || vendor_name == "Intel Open Source Technology Center") {
+ if (vendor_name == "Intel") {
+ // For Mesa, `Intel` is an overloaded vendor string that could mean crocus or iris.
+ // Simply return `INTEL` for those as well as the Windows driver.
return "INTEL";
}
+ if (vendor_name == "Intel Open Source Technology Center") {
+ return "I965";
+ }
if (vendor_name == "Mesa Project") {
- return "MESA";
+ return "I915";
}
if (vendor_name == "Mesa/X.org") {
- return "LLVMPIPE";
+ // This vendor string is overloaded between llvmpipe, softpipe, and virgl, so just return
+ // MESA instead of one of those driver names.
+ return "MESA";
}
if (vendor_name == "AMD") {
return "RADEONSI";
@@ -297,6 +304,24 @@ std::string Device::GetVendorName() const {
if (vendor_name == "nouveau") {
return "NOUVEAU";
}
+ if (vendor_name == "X.Org") {
+ return "R600";
+ }
+ if (vendor_name == "Collabora Ltd") {
+ return "ZINK";
+ }
+ if (vendor_name == "Intel Corporation") {
+ return "OPENSWR";
+ }
+ if (vendor_name == "Microsoft Corporation") {
+ return "D3D12";
+ }
+ if (vendor_name == "NVIDIA") {
+ // Mesa's tegra driver reports `NVIDIA`. Only present in this list because the default
+ // strategy would have returned `NVIDIA` here for this driver, the same result as the
+ // proprietary driver.
+ return "TEGRA";
+ }
return vendor_name;
}