Cycles: Calculate size of split state buffer kernel side
[blender.git] / intern / cycles / kernel / split / kernel_data_init.h
index 785103a79ac732575257bc5bdf6697f0fabb5991..9b62d65ffd91a5b2f8ff5524d2bd45a7ca5854bf 100644 (file)
@@ -93,7 +93,7 @@ void KERNEL_FUNCTION_FULL_NAME(data_init)(
 
        kernel_split_params.buffer = buffer;
 
-       split_data_init(&kernel_split_state, num_elements, split_data_buffer, ray_state);
+       split_data_init(kg, &kernel_split_state, num_elements, split_data_buffer, ray_state);
 
 #ifdef __KERNEL_OPENCL__
 #define KERNEL_TEX(type, ttype, name) \