From a3ef51bba5f0494f5ff87acf52222c3f48eb3684 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Mon, 25 May 2015 01:02:06 +0200 Subject: Fix T44833, OpenCL compile error on AMD. This was broken after the kernel file restructure. Variables allocated in the __local address space can only be defined inside a __kernel function. We probably need to solve this a bit differently once we do the CUDA kernel split, but this fix shoud be good enough until then. --- intern/cycles/kernel/split/kernel_direct_lighting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/kernel/split/kernel_direct_lighting.h') diff --git a/intern/cycles/kernel/split/kernel_direct_lighting.h b/intern/cycles/kernel/split/kernel_direct_lighting.h index 6b83d892057..91c3ef11682 100644 --- a/intern/cycles/kernel/split/kernel_direct_lighting.h +++ b/intern/cycles/kernel/split/kernel_direct_lighting.h @@ -49,7 +49,7 @@ * QUEUE_SHADOW_RAY_CAST_DL_RAYS queue will be filled with rays for which a shadow_blocked function must be executed, after this * kernel call. Before this kernel call the QUEUE_SHADOW_RAY_CAST_DL_RAYS will be empty. */ -ccl_device void kernel_direct_lighting( +__kernel void kernel_direct_lighting( ccl_global char *globals, ccl_constant KernelData *data, ccl_global char *shader_data, /* Required for direct lighting */ -- cgit v1.2.3