Cycles: inline more functions on the GPU

This makes little difference for CUDA and OpenCL, but will be helpful
for Optix.
This commit is contained in:
Patrick Mours
2019-08-22 17:36:54 +02:00
committed by Brecht Van Lommel
parent 2b999c6a68
commit f491c23f1e
16 changed files with 80 additions and 108 deletions

View File

@@ -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;