Blender Git Loki
Git Commits -> Revision 14693ce
Revision 14693ce by Sergey Sharybin (cycles-x) April 1, 2021, 13:04 (GMT) |
Cycles: Expose adaptive sampling filters via CPUKernels The change includes moving some lines around, to arrange kernels in a more clear and grouped way. The CPUFunction invokation had to be modified to return auto type. This way it's possible to return value from the kernel. It compiles here with GCC. Didn't check whether this is something from newer C++ standards. If so, we can do some declspec magic to deduct the return type from the function type. On one hand this is an extra indirection, but on another hand this brings the following benefits: - Benefit from microarchitecture optimizations. - Exposes all kernels in a similar manner. |
Commit Details:
Full Hash: 14693ce879ca6687a23187192ae87a1dfe4c235f
Parent Commit: 09ab16f
Lines Changed: +223, -116
7 Modified Paths:
/intern/cycles/device/cpu/kernel.cpp (+12, -5) (Diff)
/intern/cycles/device/cpu/kernel.h (+48, -13) (Diff)
/intern/cycles/device/cpu/kernel_function.h (+2, -2) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch.h (+46, -23) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch_impl.h (+90, -56) (Diff)
/intern/cycles/kernel/device/cuda/kernel.cu (+4, -2) (Diff)
/intern/cycles/kernel/kernel_adaptive_sampling.h (+21, -15) (Diff)
/intern/cycles/device/cpu/kernel.h (+48, -13) (Diff)
/intern/cycles/device/cpu/kernel_function.h (+2, -2) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch.h (+46, -23) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch_impl.h (+90, -56) (Diff)
/intern/cycles/kernel/device/cuda/kernel.cu (+4, -2) (Diff)
/intern/cycles/kernel/kernel_adaptive_sampling.h (+21, -15) (Diff)