Code refactor: add WorkTile struct for passing work to kernel.
[blender-staging.git] / intern / cycles / kernel / kernels / opencl / kernel_split_function.h
index 591c3846ef278863d36133c81ebbc13c940a4599..499138b55810465e9fb489949e85fb4f3744eaab 100644 (file)
@@ -42,11 +42,11 @@ __kernel void KERNEL_NAME_EVAL(kernel_ocl_path_trace, KERNEL_NAME)(
        if(ccl_local_id(0) + ccl_local_id(1) == 0) {
                kg->data = data;
 
-               kernel_split_params.rng_state = rng_state;
+               kernel_split_params.tile.rng_state = rng_state;
                kernel_split_params.queue_index = queue_index;
                kernel_split_params.use_queues_flag = use_queues_flag;
                kernel_split_params.work_pools = work_pools;
-               kernel_split_params.buffer = buffer;
+               kernel_split_params.tile.buffer = buffer;
 
                split_data_init(kg, &kernel_split_state, ccl_global_size(0)*ccl_global_size(1), split_data_buffer, ray_state);