Cycles: Make all #include statements relative to cycles source directory
[blender.git] / intern / cycles / kernel / kernels / opencl / kernel_state_buffer_size.cl
index 4c9bf63ef5121056b820a6213f107719bb400259..c10ecc426c69cbafcb2dfb88f0880dccae0965a2 100644 (file)
  * limitations under the License.
  */
 
-#include "kernel_compat_opencl.h"
-#include "split/kernel_split_common.h"
+#include "kernel/kernel_compat_opencl.h"
+#include "kernel/split/kernel_split_common.h"
 
 __kernel void kernel_ocl_path_trace_state_buffer_size(
-        KernelGlobals *kg,
+        ccl_global char *kg,
         ccl_constant KernelData *data,
         uint num_threads,
         ccl_global uint64_t *size)
 {
-       kg->data = data;
-       *size = split_data_buffer_size(kg, num_threads);
+       ((KernelGlobals*)kg)->data = data;
+       *size = split_data_buffer_size((KernelGlobals*)kg, num_threads);
 }