Cycles: Remove extra clFinish from driver workaround

These were causing problems with Nvidia OpenCL.
This commit is contained in:
Mai Lavelle 2017-05-02 13:56:05 -04:00
parent 299d839dc5
commit d187014675
Notes: blender-bot 2023-02-14 07:00:19 +01:00
Referenced by issue #51404, Wrong behaviour of property name used in a sensor
1 changed files with 0 additions and 3 deletions

View File

@ -31,19 +31,16 @@ CCL_NAMESPACE_BEGIN
/* Work around AMD driver hangs by ensuring each command is finished before doing anything else. */
# undef clEnqueueNDRangeKernel
# define clEnqueueNDRangeKernel(a, b, c, d, e, f, g, h, i) \
clFinish(a); \
CLEW_GET_FUN(__clewEnqueueNDRangeKernel)(a, b, c, d, e, f, g, h, i); \
clFinish(a);
# undef clEnqueueWriteBuffer
# define clEnqueueWriteBuffer(a, b, c, d, e, f, g, h, i) \
clFinish(a); \
CLEW_GET_FUN(__clewEnqueueWriteBuffer)(a, b, c, d, e, f, g, h, i); \
clFinish(a);
# undef clEnqueueReadBuffer
# define clEnqueueReadBuffer(a, b, c, d, e, f, g, h, i) \
clFinish(a); \
CLEW_GET_FUN(__clewEnqueueReadBuffer)(a, b, c, d, e, f, g, h, i); \
clFinish(a);
#endif /* CYCLES_DISABLE_DRIVER_WORKAROUNDS */