Cycles: Calculate size of split state buffer kernel side
By calculating the size of the state buffer in the kernel rather than the host less code is needed and the size actually reflects the requested features. Will also be a little faster in some cases because of larger global work size.
This commit is contained in:
@@ -93,7 +93,7 @@ void KERNEL_FUNCTION_FULL_NAME(data_init)(
|
||||
|
||||
kernel_split_params.buffer = buffer;
|
||||
|
||||
split_data_init(&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__
|
||||
#define KERNEL_TEX(type, ttype, name) \
|
||||
|
||||
Reference in New Issue
Block a user