Fix transparent faces on certain AMD cards

This patch fixes an issue with missing faces when assigning a material slot other than the first to faces on AMD TAHITI cards. Refer to T78390 and T74024 for a description of this issue.

This patch also incorporates fix from T78390 for KAVERI.

{F9029258}

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D9305
This commit is contained in:
Gavin Li 2021-08-04 13:18:23 +02:00 committed by Jeroen Bakker
parent d2130c5327
commit 76dcf70dac
1 changed files with 2 additions and 1 deletions

View File

@ -283,7 +283,8 @@ static void detect_workarounds()
}
/* We have issues with this specific renderer. (see T74024) */
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_UNIX, GPU_DRIVER_OPENSOURCE) &&
strstr(renderer, "AMD VERDE")) {
(strstr(renderer, "AMD VERDE") || strstr(renderer, "AMD KAVERI") ||
strstr(renderer, "AMD TAHITI"))) {
GLContext::unused_fb_slot_workaround = true;
GCaps.shader_image_load_store_support = false;
GCaps.broken_amd_driver = true;