vk: Fix detection of RADV on get_driver_vendor()

Since Mesa 22.2.0 (2022-09-21), commit 
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11027/diffs?commit_id=f06da59fd75d7ce7708d159753fcdbc11de16f9e, 
the deviceName property has included the name of the GPU, thus 
invalidating our previous method of detecting RADV as a driver vendor

Before: "AMD RADV NAVY_FLOUNDER"
After: "AMD Radeon RX 6700M (RADV NAVI22)"

Before: "AMD RADV RENOIR"
After: "AMD Radeon Graphics (RADV RENOIR)"
This commit is contained in:
Ani 2023-08-05 22:49:32 +01:00
parent dea24c905b
commit 6672499dde

View File

@ -255,6 +255,11 @@ namespace vk
{
const auto gpu_name = get_name();
if (gpu_name.find("RADV") != umax)
{
return driver_vendor::RADV;
}
if (gpu_name.find("Radeon") != umax)
{
return driver_vendor::AMD;
@ -265,11 +270,6 @@ namespace vk
return driver_vendor::NVIDIA;
}
if (gpu_name.find("RADV") != umax)
{
return driver_vendor::RADV;
}
if (gpu_name.find("Intel") != umax)
{
#ifdef _WIN32