From 76dcf70dacedb1af4f5e04ed5016e0b8ea4eb305 Mon Sep 17 00:00:00 2001 From: Gavin Li Date: Wed, 4 Aug 2021 13:18:23 +0200 Subject: 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 --- source/blender/gpu/opengl/gl_backend.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc index 42b85da1f93..772fc19d919 100644 --- a/source/blender/gpu/opengl/gl_backend.cc +++ b/source/blender/gpu/opengl/gl_backend.cc @@ -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; -- cgit v1.2.3