mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +00:00
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:
parent
dea24c905b
commit
6672499dde
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user