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

@@ -18,12 +18,12 @@ CCL_NAMESPACE_BEGIN
/* Wave */
ccl_device_noinline float svm_wave(NodeWaveType type,
NodeWaveProfile profile,
float3 p,
float detail,
float distortion,
float dscale)
ccl_device_noinline_cpu float svm_wave(NodeWaveType type,
NodeWaveProfile profile,
float3 p,
float detail,
float distortion,
float dscale)
{
float n;