[Bf-blender-cvs] [ab57a3cfac9] cycles-hip-binaries: Cycles: Disable graphics interop for HIP devices

Thomas Dinges noreply at git.blender.org
Tue Nov 9 22:58:47 CET 2021


Commit: ab57a3cfac9fe0cbfd671f0f86d8170a60409672
Author: Thomas Dinges
Date:   Tue Nov 9 22:58:11 2021 +0100
Branches: cycles-hip-binaries
https://developer.blender.org/rBab57a3cfac9fe0cbfd671f0f86d8170a60409672

Cycles: Disable graphics interop for HIP devices

This is due to a driver bug, so disable it for now until it gets resolved.

Fixes T92972.

Reviewed By: brecht

Maniphest Tasks: T92972

Differential Revision: https://developer.blender.org/D13167

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

M	intern/cycles/device/hip/device_impl.cpp

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

diff --git a/intern/cycles/device/hip/device_impl.cpp b/intern/cycles/device/hip/device_impl.cpp
index e8482772186..8a8fb9bb18d 100644
--- a/intern/cycles/device/hip/device_impl.cpp
+++ b/intern/cycles/device/hip/device_impl.cpp
@@ -1160,6 +1160,8 @@ bool HIPDevice::should_use_graphics_interop()
    * possible, but from the empiric measurements it can be considerably slower than using naive
    * pixels copy. */
 
+  /* Disable graphics interop for now, because of driver bug in 21.40. See T92972 */
+#  if 0
   HIPContextScope scope(this);
 
   int num_all_devices = 0;
@@ -1178,6 +1180,7 @@ bool HIPDevice::should_use_graphics_interop()
       return true;
     }
   }
+#  endif 
 
   return false;
 }



More information about the Bf-blender-cvs mailing list