Cycles: Remove extra clFinish from driver workaround
These were causing problems with Nvidia OpenCL.
This commit is contained in:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue