[Bf-blender-cvs] [cbc024c3cac] blender-v3.2-release: MacOS/AMD: Drawing artifacts in VSE.

Jeroen Bakker noreply at git.blender.org
Fri May 13 12:55:04 CEST 2022


Commit: cbc024c3cac29dd17a9e5338162792d8fadc82ee
Author: Jeroen Bakker
Date:   Fri May 13 12:53:18 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBcbc024c3cac29dd17a9e5338162792d8fadc82ee

MacOS/AMD: Drawing artifacts in VSE.

Related to the partial revert done for T97272. It seems also that the
workaround should be enabled for any MACOS platform.

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

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 17d9b392c69..1cd2301aa4e 100644
--- a/source/blender/gpu/opengl/gl_backend.cc
+++ b/source/blender/gpu/opengl/gl_backend.cc
@@ -419,10 +419,10 @@ static void detect_workarounds()
     GCaps.shader_storage_buffer_objects_support = false;
   }
 
-  /* Certain Intel based platforms don't clear the viewport textures. Always clearing leads to
-   * noticeable performance regressions. */
-  if (GPU_type_matches(
-          GPU_DEVICE_INTEL, static_cast<eGPUOSType>(GPU_OS_MAC | GPU_OS_UNIX), GPU_DRIVER_ANY)) {
+  /* Certain Intel/AMD based platforms don't clear the viewport textures. Always clearing leads to
+   * noticeable performance regressions on other platforms as well. */
+  if (GPU_type_matches(GPU_DEVICE_ANY, GPU_OS_MAC, GPU_DRIVER_ANY) ||
+      GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_UNIX, GPU_DRIVER_ANY)) {
     GCaps.clear_viewport_workaround = true;
   }



More information about the Bf-blender-cvs mailing list