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:

committed by
Brecht Van Lommel

parent
2b999c6a68
commit
f491c23f1e
@@ -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;
|
||||
|
Reference in New Issue
Block a user