Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/split/kernel_data_init.h
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | #endif | ||||
| 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, | ||||
| #ifdef __KERNEL_OPENCL__ | #ifdef __KERNEL_OPENCL__ | ||||
| #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/kernel_textures.h" | ||||
| #endif | #endif | ||||
| 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 */ | ||||
| Show All 27 Lines | #endif | ||||
| kernel_split_params.buffer = buffer; | kernel_split_params.buffer = buffer; | ||||
| split_data_init(kg, &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__ | #ifdef __KERNEL_OPENCL__ | ||||
| #define KERNEL_TEX(type, ttype, name) \ | #define KERNEL_TEX(type, ttype, name) \ | ||||
| kg->name = name; | kg->name = name; | ||||
| #include "../kernel_textures.h" | #include "kernel/kernel_textures.h" | ||||
| #endif | #endif | ||||
| int thread_index = ccl_global_id(1) * ccl_global_size(0) + ccl_global_id(0); | int thread_index = ccl_global_id(1) * ccl_global_size(0) + ccl_global_id(0); | ||||
| /* Initialize queue data and queue index. */ | /* Initialize queue data and queue index. */ | ||||
| if(thread_index < queuesize) { | if(thread_index < queuesize) { | ||||
| /* Initialize active ray queue. */ | /* Initialize active ray queue. */ | ||||
| kernel_split_state.queue_data[QUEUE_ACTIVE_AND_REGENERATED_RAYS * queuesize + thread_index] = QUEUE_EMPTY_SLOT; | kernel_split_state.queue_data[QUEUE_ACTIVE_AND_REGENERATED_RAYS * queuesize + thread_index] = QUEUE_EMPTY_SLOT; | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||