Tomato Cycles: resolve textures limit when using CPU render
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 30 Jul 2012 15:26:06 +0000 (15:26 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 30 Jul 2012 15:26:06 +0000 (15:26 +0000)
commitb8c3f59e92f906de3f4f90cbca50f41dd0599a8c
treec11ca735431082054259d25a64a8cc3340f0b87d
parent1a062e28af9521d1bfa40f94a693f2a544068631
Tomato Cycles: resolve textures limit when using CPU render

Remove limit for number of textures when using CPU rendering,
so huge scenes from Mango could be rendered properly.

Re-arranged float and bytes textures for this, so now float
textures goes before byte. This is needed to make alignment
stuff easier for variable number of textures.

Also replace code-generated CPU kernel structure's members
with an array, which makes it easier to access textures
without adding bunch of cases in switch.

Should be no functional changes when rendering with GPU
or OpenCL devices.
intern/cycles/blender/blender_session.cpp
intern/cycles/kernel/kernel.cpp
intern/cycles/kernel/kernel_compat_cpu.h
intern/cycles/kernel/kernel_globals.h
intern/cycles/kernel/kernel_textures.h
intern/cycles/kernel/svm/svm_image.h
intern/cycles/render/image.cpp
intern/cycles/render/image.h
intern/cycles/render/scene.cpp
intern/cycles/render/scene.h