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_surface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/kernel/kernel_path_surface.h') diff --git a/intern/cycles/kernel/kernel_path_surface.h b/intern/cycles/kernel/kernel_path_surface.h index a1ab4951565..07444a98d82 100644 --- a/intern/cycles/kernel/kernel_path_surface.h +++ b/intern/cycles/kernel/kernel_path_surface.h @@ -20,7 +20,7 @@ CCL_NAMESPACE_BEGIN defined(__BAKING__) /* branched path tracing: connect path directly to position on one or more lights and add it to L */ -ccl_device_noinline void kernel_branched_path_surface_connect_light( +ccl_device_noinline_cpu void kernel_branched_path_surface_connect_light( KernelGlobals *kg, ShaderData *sd, ShaderData *emission_sd, -- cgit v1.2.3