diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-23 19:59:02 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-23 19:59:02 +0300 |
commit | 27248c8636ab8a6fa1e082ce9bc9bbdb09174358 (patch) | |
tree | ded873ef32c1ac90b6cd7c17556f1176fe747793 | |
parent | ba8c7d2ba120f5ba7fdbaef67fe2e301ec3e5dcb (diff) |
Cycles: Remove unused macro
-rw-r--r-- | intern/cycles/kernel/geom/geom_triangle_intersect.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/intern/cycles/kernel/geom/geom_triangle_intersect.h b/intern/cycles/kernel/geom/geom_triangle_intersect.h index 313121104f9..584d0b3508f 100644 --- a/intern/cycles/kernel/geom/geom_triangle_intersect.h +++ b/intern/cycles/kernel/geom/geom_triangle_intersect.h @@ -22,16 +22,6 @@ CCL_NAMESPACE_BEGIN -/* Workaround stupidness of CUDA/OpenCL which doesn't allow to access indexed - * component of float3 value. - */ -#ifndef __KERNEL_CPU__ -# define IDX(vec, idx) \ - ((idx == 0) ? ((vec).x) : ( (idx == 1) ? ((vec).y) : ((vec).z) )) -#else -# define IDX(vec, idx) ((vec)[idx]) -#endif - /* Ray-Triangle intersection for BVH traversal * * Sven Woop @@ -309,6 +299,4 @@ ccl_device_inline float3 triangle_refine_subsurface(KernelGlobals *kg, return P; } -#undef IDX - CCL_NAMESPACE_END |