blender/intern/cycles/kernel/kernels
Sergey Sharybin 84ad20acef Fix T44833: Can't use ccl_local space in non-kernel functions
This commit re-shuffles code in split kernel once again and makes it so common
parts which is in the headers is only responsible to making all the work needed
for specified ray index. Getting ray index, checking for it's validity and
enqueuing tasks are now happening in the device specified part of the kernel.

This actually makes sense because enqueuing is indeed device-specified and i.e.
with CUDA we'll want to enqueue kernels from kernel and avoid CPU roundtrip.

TODO:
- Kernel comments are still placed in the common header files, but since queue
  related stuff is not passed to those functions those comments might need to
  be split as well.

  Just currently read them considering that they're also covering the way how
  all devices are invoking the common code path.

- Arguments might need to be wrapped into KernelGlobals, so we don't ened to
  pass all them around as function arguments.
2015-05-26 22:54:02 +05:00
..
cpu Cycles: Restructure kernel files organization 2015-05-22 16:31:34 +05:00
cuda Cycles: Restructure kernel files organization 2015-05-22 16:31:34 +05:00
opencl Fix T44833: Can't use ccl_local space in non-kernel functions 2015-05-26 22:54:02 +05:00