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:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user