Code refactor: add WorkTile struct for passing work to kernel.
[blender-staging.git] / intern / cycles / kernel / split / kernel_split_data_types.h
index c58c8463f5ce3c557392720ce16c20b5a248bc88..b0e6e5f5250d3e4317f3a0d52a8a2d7a0e5c8452 100644 (file)
@@ -22,28 +22,15 @@ CCL_NAMESPACE_BEGIN
 /* parameters used by the split kernels, we use a single struct to avoid passing these to each kernel */
 
 typedef struct SplitParams {
-       int x;
-       int y;
-       int w;
-       int h;
-
-       int offset;
-       int stride;
-
-       ccl_global uint *rng_state;
-
-       int start_sample;
-       int end_sample;
+       WorkTile tile;
+       uint total_work_size;
 
        ccl_global unsigned int *work_pools;
-       unsigned int num_samples;
 
        ccl_global int *queue_index;
        int queue_size;
        ccl_global char *use_queues_flag;
 
-       ccl_global float *buffer;
-
        /* Place for storing sd->flag. AMD GPU OpenCL compiler workaround */
        int dummy_sd_flag;
 } SplitParams;