Blender Git Loki

Git Commits -> Revision 734beb6

Revision 734beb6 by Sergey Sharybin (cycles_kernel_split)
May 7, 2015, 13:24 (GMT)
Cycles kernel split: Fix broken logic around multi-closure in device_opencl

The code actually acted in a way when multi-closure was always enabled, this is
due to kernel_types.h header by default using CPU settings.

This caused re-definition of maximum number of closures.

Now the code acts in a way so desired number of closure is passed via cflags
and then kernel decided whether to use it or ignore.

It's possible that some OpenCL platform still over-allocates, but that's not
caused by this change and needs to be addressed separately.

Commit Details:

Full Hash: 734beb68008790adbea10bd079cf2d85ae7fc109
Parent Commit: 5a39aaf
Lines Changed: +14, -15

2 Modified Paths:

/intern/cycles/device/device_opencl.cpp (+9, -12) (Diff)
/intern/cycles/kernel/kernel_types.h (+5, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021