[Bf-blender-cvs] [d40f5d41af0] master: GPU: Blacklist unsupported GPUs that crash during startup.

Jeroen Bakker noreply at git.blender.org
Wed Dec 2 15:17:46 CET 2020


Commit: d40f5d41af0ad4183ec42d03cb5d0f56788150b6
Author: Jeroen Bakker
Date:   Wed Dec 2 15:13:13 2020 +0100
Branches: master
https://developer.blender.org/rBd40f5d41af0ad4183ec42d03cb5d0f56788150b6

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.

===================================================================

M	source/blender/gpu/opengl/gl_backend.cc

===================================================================

diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc
index b444bd1859d..3d00630bf10 100644
--- a/source/blender/gpu/opengl/gl_backend.cc
+++ b/source/blender/gpu/opengl/gl_backend.cc
@@ -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);



More information about the Bf-blender-cvs mailing list