Cycles: Calculate size of split state buffer kernel side
[blender.git] / intern / cycles / kernel / kernels / cuda / kernel_split.cu
index 53a36b15e40fe5d0e9fac26818651f12864d0fc4..759475b175f55c8691d56f5ad7a2082149ef56f3 100644 (file)
 #include "../../kernel_film.h"
 
 /* kernels */
+extern "C" __global__ void
+CUDA_LAUNCH_BOUNDS(CUDA_THREADS_BLOCK_WIDTH, CUDA_KERNEL_MAX_REGISTERS)
+kernel_cuda_state_buffer_size(uint num_threads, uint *size)
+{
+       *size = split_data_buffer_size(NULL, num_threads);
+}
+
 extern "C" __global__ void
 CUDA_LAUNCH_BOUNDS(CUDA_THREADS_BLOCK_WIDTH, CUDA_KERNEL_MAX_REGISTERS)
 kernel_cuda_path_trace_data_init(