Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernels/opencl/kernel_state_buffer_size.cl
| Show All 12 Lines | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * 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" | ||||
| __kernel void kernel_ocl_path_trace_state_buffer_size( | __kernel void kernel_ocl_path_trace_state_buffer_size( | ||||
| KernelGlobals *kg, | ccl_global char *kg, | ||||
| ccl_constant KernelData *data, | ccl_constant KernelData *data, | ||||
| uint num_threads, | uint num_threads, | ||||
| ccl_global uint64_t *size) | ccl_global uint64_t *size) | ||||
| { | { | ||||
| kg->data = data; | ((KernelGlobals*)kg)->data = data; | ||||
| *size = split_data_buffer_size(kg, num_threads); | *size = split_data_buffer_size((KernelGlobals*)kg, num_threads); | ||||
| } | } | ||||