Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-29 21:17:40 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-29 21:17:40 +0400
commiteac2674f1d95ff7e43216fb58a012f1b59e1b709 (patch)
treee15e906d30d7fec80df3b9c79ad6b5b33b87ea27 /intern/cycles/kernel/svm/svm_noise.h
parentbe0aef2ef24d0d84e199c59a91634e87cdef3d58 (diff)
Cycles: some tweaks to try to get sm_13 shader compiling.
Diffstat (limited to 'intern/cycles/kernel/svm/svm_noise.h')
-rw-r--r--intern/cycles/kernel/svm/svm_noise.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/kernel/svm/svm_noise.h b/intern/cycles/kernel/svm/svm_noise.h
index f41caa99772..72ff353abb4 100644
--- a/intern/cycles/kernel/svm/svm_noise.h
+++ b/intern/cycles/kernel/svm/svm_noise.h
@@ -112,7 +112,7 @@ __device float scale3(float result)
return 0.9820f * result;
}
-__device float perlin(float x, float y, float z)
+__device_noinline float perlin(float x, float y, float z)
{
int X; float fx = floorfrac(x, &X);
int Y; float fy = floorfrac(y, &Y);
@@ -135,7 +135,7 @@ __device float perlin(float x, float y, float z)
return scale3(result);
}
-__device float perlin_periodic(float x, float y, float z, float3 pperiod)
+__device_noinline float perlin_periodic(float x, float y, float z, float3 pperiod)
{
int X; float fx = floorfrac(x, &X);
int Y; float fy = floorfrac(y, &Y);
@@ -178,7 +178,7 @@ __device float snoise(float3 p)
}
/* cell noise */
-__device float cellnoise(float3 p)
+__device_noinline float cellnoise(float3 p)
{
uint ix = quick_floor(p.x);
uint iy = quick_floor(p.y);
@@ -210,7 +210,7 @@ __device float psnoise(float3 p, float3 pperiod)
}
/* turbulence */
-__device float turbulence(float3 P, int oct, bool hard)
+__device_noinline float turbulence(float3 P, int oct, bool hard)
{
float amp = 1.0f, fscale = 1.0f, sum = 0.0f;
int i;