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:
-rw-r--r--intern/cycles/kernel/kernel_accumulate.h2
-rw-r--r--intern/cycles/kernel/kernel_triangle.h2
-rw-r--r--intern/cycles/kernel/kernel_types.h24
3 files changed, 14 insertions, 14 deletions
diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h
index bd03537519f..2f2314c9a8b 100644
--- a/intern/cycles/kernel/kernel_accumulate.h
+++ b/intern/cycles/kernel/kernel_accumulate.h
@@ -301,7 +301,9 @@ __device_inline float3 path_radiance_sum(KernelGlobals *kg, PathRadiance *L)
__device_inline void path_radiance_clamp(PathRadiance *L, float3 *L_sum, float clamp)
{
+ #ifdef __OSL__
using std::isfinite;
+ #endif
float sum = fabsf((*L_sum).x) + fabsf((*L_sum).y) + fabsf((*L_sum).z);
diff --git a/intern/cycles/kernel/kernel_triangle.h b/intern/cycles/kernel/kernel_triangle.h
index 60d6d9356ec..901034cfac6 100644
--- a/intern/cycles/kernel/kernel_triangle.h
+++ b/intern/cycles/kernel/kernel_triangle.h
@@ -18,8 +18,6 @@
#include "kernel_projection.h"
-#include "util_param.h"
-
CCL_NAMESPACE_BEGIN
/* Point on triangle for Moller-Trumbore triangles */
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 738d459df30..7faa1323258 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -22,7 +22,7 @@
#include "kernel_math.h"
#include "svm/svm_types.h"
-#include "util_param.h"
+#include "util_string.h"
#ifndef __KERNEL_GPU__
#define __KERNEL_CPU__
@@ -370,28 +370,28 @@ typedef enum AttributeStandard {
ATTR_STD_NOT_FOUND = ~0
} AttributeStandard;
-__device ustring attribute_standard_name(AttributeStandard std)
+__device string attribute_standard_name(AttributeStandard std)
{
if(std == ATTR_STD_VERTEX_NORMAL)
- return ustring("N");
+ return string("N");
else if(std == ATTR_STD_FACE_NORMAL)
- return ustring("Ng");
+ return string("Ng");
else if(std == ATTR_STD_UV)
- return ustring("uv");
+ return string("uv");
else if(std == ATTR_STD_GENERATED)
- return ustring("generated");
+ return string("generated");
else if(std == ATTR_STD_POSITION_UNDEFORMED)
- return ustring("undeformed");
+ return string("undeformed");
else if(std == ATTR_STD_POSITION_UNDISPLACED)
- return ustring("undisplaced");
+ return string("undisplaced");
else if(std == ATTR_STD_MOTION_PRE)
- return ustring("motion_pre");
+ return string("motion_pre");
else if(std == ATTR_STD_MOTION_POST)
- return ustring("motion_post");
+ return string("motion_post");
else if(std == ATTR_STD_PARTICLE)
- return ustring("particle");
+ return string("particle");
- return ustring();
+ return string();
}
/* Closure data */