From f491c23f1e104998752380b930307e7abc4597b3 Mon Sep 17 00:00:00 2001 From: Patrick Mours Date: Thu, 22 Aug 2019 17:36:54 +0200 Subject: Cycles: inline more functions on the GPU This makes little difference for CUDA and OpenCL, but will be helpful for Optix. --- intern/cycles/kernel/kernel_path_volume.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'intern/cycles/kernel/kernel_path_volume.h') diff --git a/intern/cycles/kernel/kernel_path_volume.h b/intern/cycles/kernel/kernel_path_volume.h index fea4dfc159d..82975c2ad26 100644 --- a/intern/cycles/kernel/kernel_path_volume.h +++ b/intern/cycles/kernel/kernel_path_volume.h @@ -57,18 +57,12 @@ ccl_device_inline void kernel_path_volume_connect_light(KernelGlobals *kg, # endif /* __EMISSION__ */ } -# ifdef __KERNEL_GPU__ -ccl_device_noinline -# else -ccl_device -# endif - bool - kernel_path_volume_bounce(KernelGlobals *kg, - ShaderData *sd, - ccl_addr_space float3 *throughput, - ccl_addr_space PathState *state, - PathRadianceState *L_state, - ccl_addr_space Ray *ray) +ccl_device_noinline_cpu bool kernel_path_volume_bounce(KernelGlobals *kg, + ShaderData *sd, + ccl_addr_space float3 *throughput, + ccl_addr_space PathState *state, + PathRadianceState *L_state, + ccl_addr_space Ray *ray) { /* sample phase function */ float phase_pdf; -- cgit v1.2.3