Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernels/opencl/kernel_data_init.cl
| Show All 13 Lines | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "kernel_compat_opencl.h" | #include "kernel_compat_opencl.h" | ||||
| #include "split/kernel_split_common.h" | #include "split/kernel_split_common.h" | ||||
| #include "split/kernel_data_init.h" | #include "split/kernel_data_init.h" | ||||
| __kernel void kernel_ocl_path_trace_data_init( | __kernel void kernel_ocl_path_trace_data_init( | ||||
| KernelGlobals *kg, | ccl_global char *kg, | ||||
| ccl_constant KernelData *data, | ccl_constant KernelData *data, | ||||
| ccl_global void *split_data_buffer, | ccl_global void *split_data_buffer, | ||||
| int num_elements, | int num_elements, | ||||
| ccl_global char *ray_state, | ccl_global char *ray_state, | ||||
| ccl_global uint *rng_state, | ccl_global uint *rng_state, | ||||
| #define KERNEL_TEX(type, ttype, name) \ | #define KERNEL_TEX(type, ttype, name) \ | ||||
| ccl_global type *name, | ccl_global type *name, | ||||
| #include "../../kernel_textures.h" | #include "../../kernel_textures.h" | ||||
| int start_sample, | int start_sample, | ||||
| int end_sample, | int end_sample, | ||||
| int sx, int sy, int sw, int sh, int offset, int stride, | int sx, int sy, int sw, int sh, int offset, int stride, | ||||
| ccl_global int *Queue_index, /* Tracks the number of elements in queues */ | ccl_global int *Queue_index, /* Tracks the number of elements in queues */ | ||||
| int queuesize, /* size (capacity) of the queue */ | int queuesize, /* size (capacity) of the queue */ | ||||
| ccl_global char *use_queues_flag, /* flag to decide if scene-intersect kernel should use queues to fetch ray index */ | ccl_global char *use_queues_flag, /* flag to decide if scene-intersect kernel should use queues to fetch ray index */ | ||||
| ccl_global unsigned int *work_pool_wgs, /* Work pool for each work group */ | ccl_global unsigned int *work_pool_wgs, /* Work pool for each work group */ | ||||
| unsigned int num_samples, /* Total number of samples per pixel */ | unsigned int num_samples, /* Total number of samples per pixel */ | ||||
| ccl_global float *buffer) | ccl_global float *buffer) | ||||
| { | { | ||||
| kernel_data_init(kg, | kernel_data_init((KernelGlobals*)kg, | ||||
| data, | data, | ||||
| split_data_buffer, | split_data_buffer, | ||||
| num_elements, | num_elements, | ||||
| ray_state, | ray_state, | ||||
| rng_state, | rng_state, | ||||
| #define KERNEL_TEX(type, ttype, name) name, | #define KERNEL_TEX(type, ttype, name) name, | ||||
| #include "../../kernel_textures.h" | #include "../../kernel_textures.h" | ||||
| Show All 11 Lines | |||||