[Bf-blender-cvs] [2ecbc3b] master: Cycles: Add _all suffix to shadow traversal file
Sergey Sharybin
noreply at git.blender.org
Mon Jul 11 14:04:21 CEST 2016
Commit: 2ecbc3b7775f567fdad41928361c6e3403fd08c2
Author: Sergey Sharybin
Date: Mon Jul 11 12:31:25 2016 +0200
Branches: master
https://developer.blender.org/rB2ecbc3b7775f567fdad41928361c6e3403fd08c2
Cycles: Add _all suffix to shadow traversal file
Matches better naming of volume traversal files, where we've got
optimized versions of a single step of volume intersection and
traversal which will gather all volume intersections.
===================================================================
M intern/cycles/kernel/CMakeLists.txt
M intern/cycles/kernel/bvh/bvh.h
R099 intern/cycles/kernel/bvh/bvh_shadow.h intern/cycles/kernel/bvh/bvh_shadow_all.h
R100 intern/cycles/kernel/bvh/qbvh_shadow.h intern/cycles/kernel/bvh/qbvh_shadow_all.h
===================================================================
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt
index 3f0917b..bd3969b 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -31,13 +31,13 @@ set(SRC
set(SRC_BVH_HEADERS
bvh/bvh.h
bvh/bvh_nodes.h
- bvh/bvh_shadow.h
+ bvh/bvh_shadow_all.h
bvh/bvh_subsurface.h
bvh/bvh_traversal.h
bvh/bvh_volume.h
bvh/bvh_volume_all.h
bvh/qbvh_nodes.h
- bvh/qbvh_shadow.h
+ bvh/qbvh_shadow_all.h
bvh/qbvh_subsurface.h
bvh/qbvh_traversal.h
bvh/qbvh_volume.h
diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h
index b180259..5988173 100644
--- a/intern/cycles/kernel/bvh/bvh.h
+++ b/intern/cycles/kernel/bvh/bvh.h
@@ -153,31 +153,31 @@ CCL_NAMESPACE_BEGIN
#if defined(__SHADOW_RECORD_ALL__)
# define BVH_FUNCTION_NAME bvh_intersect_shadow_all
# define BVH_FUNCTION_FEATURES 0
-# include "bvh_shadow.h"
+# include "bvh_shadow_all.h"
#endif
#if defined(__SHADOW_RECORD_ALL__) && defined(__INSTANCING__)
# define BVH_FUNCTION_NAME bvh_intersect_shadow_all_instancing
# define BVH_FUNCTION_FEATURES BVH_INSTANCING
-# include "bvh_shadow.h"
+# include "bvh_shadow_all.h"
#endif
#if defined(__SHADOW_RECORD_ALL__) && defined(__HAIR__)
# define BVH_FUNCTION_NAME bvh_intersect_shadow_all_hair
# define BVH_FUNCTION_FEATURES BVH_INSTANCING|BVH_HAIR
-# include "bvh_shadow.h"
+# include "bvh_shadow_all.h"
#endif
#if defined(__SHADOW_RECORD_ALL__) && defined(__OBJECT_MOTION__)
# define BVH_FUNCTION_NAME bvh_intersect_shadow_all_motion
# define BVH_FUNCTION_FEATURES BVH_INSTANCING|BVH_MOTION
-# include "bvh_shadow.h"
+# include "bvh_shadow_all.h"
#endif
#if defined(__SHADOW_RECORD_ALL__) && defined(__HAIR__) && defined(__OBJECT_MOTION__)
# define BVH_FUNCTION_NAME bvh_intersect_shadow_all_hair_motion
# define BVH_FUNCTION_FEATURES BVH_INSTANCING|BVH_HAIR|BVH_MOTION
-# include "bvh_shadow.h"
+# include "bvh_shadow_all.h"
#endif
/* Record all intersections - Volume BVH traversal */
diff --git a/intern/cycles/kernel/bvh/bvh_shadow.h b/intern/cycles/kernel/bvh/bvh_shadow_all.h
similarity index 99%
rename from intern/cycles/kernel/bvh/bvh_shadow.h
rename to intern/cycles/kernel/bvh/bvh_shadow_all.h
index 02147d2..5824de5 100644
--- a/intern/cycles/kernel/bvh/bvh_shadow.h
+++ b/intern/cycles/kernel/bvh/bvh_shadow_all.h
@@ -18,7 +18,7 @@
*/
#ifdef __QBVH__
-# include "qbvh_shadow.h"
+# include "qbvh_shadow_all.h"
#endif
#if BVH_FEATURE(BVH_HAIR)
diff --git a/intern/cycles/kernel/bvh/qbvh_shadow.h b/intern/cycles/kernel/bvh/qbvh_shadow_all.h
similarity index 100%
rename from intern/cycles/kernel/bvh/qbvh_shadow.h
rename to intern/cycles/kernel/bvh/qbvh_shadow_all.h
More information about the Bf-blender-cvs
mailing list