GPU: Blacklist unsupported GPUs that crash during startup.

Since Blender 2.91 the TeraScale 2 based cards crash during startup.
This patch will show the user a screen that the platform they are using
isn't supported.

The GPUs have been carefully handpicked from dozens of reports. T83124,
T83127, T83103, T83091, T83045, T83065, T82750, T82889, T82925, T82640,
T82429, T82436, T82446.
This commit is contained in:
Jeroen Bakker 2020-12-02 15:13:13 +01:00
parent c576d65c2f
commit d40f5d41af
1 changed files with 14 additions and 0 deletions

View File

@ -130,6 +130,20 @@ void GLBackend::platform_init()
GPG.support_level = GPU_SUPPORT_LEVEL_LIMITED;
}
}
/* Since Blender 2.91 AMD TeraScale 2 GPUs crashes during startup. */
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_WIN, GPU_DRIVER_ANY)) {
if (strstr(renderer, "Radeon HD 4") || strstr(renderer, "Radeon HD 5") ||
strstr(renderer, "Radeon HD 6") || strstr(renderer, "ATI FirePro V4") ||
strstr(renderer, "AMD Radeon R5 2")) {
GPG.support_level = GPU_SUPPORT_LEVEL_UNSUPPORTED;
}
}
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_UNIX, GPU_DRIVER_ANY)) {
if (strstr(renderer, "AMD CEDAR")) {
GPG.support_level = GPU_SUPPORT_LEVEL_UNSUPPORTED;
}
}
}
GPG.create_key(GPG.support_level, vendor, renderer, version);
GPG.create_gpu_name(vendor, renderer, version);