diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 12:53:05 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 12:53:05 +0300 |
commit | 1f273cec00feddb1065847e3c8163cdcf8a6d89a (patch) | |
tree | 5d24030df25f02e3122340eabcc591767ef05576 /intern/cycles/kernel/svm/svm_mix.h | |
parent | 5af103fe008aac0cb20631871bbee16f319835ed (diff) |
Cycles: Tweak inline policy for some functions
The goal is to make Experimental kernel closer in performance to the
official kernel, avoiding spills and such.
There should not be big impact on official kernel, own tests showed
few percent performance drop on laptop's GPU. CPU was always the
same speed on AVX, AVX2 and SSE4.1 CPUs i've been testing here.
This seems to be the last essential step before we can get rid of
Experimental kernel and enable SSS officially on GPU without causing
some major performance issues.
Surely some more tweaks are possibly required, but that we can do
for until cows go home anyway.
Diffstat (limited to 'intern/cycles/kernel/svm/svm_mix.h')
-rw-r--r-- | intern/cycles/kernel/svm/svm_mix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_mix.h b/intern/cycles/kernel/svm/svm_mix.h index 6111214acba..7cbda111d81 100644 --- a/intern/cycles/kernel/svm/svm_mix.h +++ b/intern/cycles/kernel/svm/svm_mix.h @@ -261,7 +261,7 @@ ccl_device float3 svm_mix_clamp(float3 col) return outcol; } -ccl_device float3 svm_mix(NodeMix type, float fac, float3 c1, float3 c2) +ccl_device_noinline float3 svm_mix(NodeMix type, float fac, float3 c1, float3 c2) { float t = saturate(fac); |