[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60021] branches/soc-2013-cycles_mblur: Merged trunk into branch.

Gavin Howard gavin.d.howard at gmail.com
Tue Sep 10 21:23:06 CEST 2013


Revision: 60021
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60021
Author:   gdh
Date:     2013-09-10 19:23:06 +0000 (Tue, 10 Sep 2013)
Log Message:
-----------
Merged trunk into branch. Includes r59907 to r60019.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59907
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60019

Modified Paths:
--------------
    branches/soc-2013-cycles_mblur/CMakeLists.txt
    branches/soc-2013-cycles_mblur/SConstruct
    branches/soc-2013-cycles_mblur/build_files/cmake/macros.cmake
    branches/soc-2013-cycles_mblur/build_files/scons/config/darwin-config.py
    branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.cc
    branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.h
    branches/soc-2013-cycles_mblur/extern/libmv/libmv-capi.cc
    branches/soc-2013-cycles_mblur/intern/cycles/kernel/CMakeLists.txt
    branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_film.h
    branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_path.h
    branches/soc-2013-cycles_mblur/intern/cycles/kernel/osl/osl_shader.cpp
    branches/soc-2013-cycles_mblur/intern/cycles/render/scene.cpp
    branches/soc-2013-cycles_mblur/intern/ghost/intern/GHOST_WindowWin32.cpp
    branches/soc-2013-cycles_mblur/intern/mikktspace/mikktspace.c
    branches/soc-2013-cycles_mblur/intern/opencolorio/fallback_impl.cc
    branches/soc-2013-cycles_mblur/intern/opencolorio/ocio_capi.cc
    branches/soc-2013-cycles_mblur/intern/opencolorio/ocio_capi.h
    branches/soc-2013-cycles_mblur/intern/opencolorio/ocio_impl.cc
    branches/soc-2013-cycles_mblur/intern/opencolorio/ocio_impl.h
    branches/soc-2013-cycles_mblur/release/datafiles/colormanagement/config.ocio
    branches/soc-2013-cycles_mblur/release/datafiles/startup.blend
    branches/soc-2013-cycles_mblur/release/scripts/modules/bl_i18n_utils/utils_spell_check.py
    branches/soc-2013-cycles_mblur/release/scripts/presets/keyconfig/3dsmax.py
    branches/soc-2013-cycles_mblur/release/scripts/presets/keyconfig/maya.py
    branches/soc-2013-cycles_mblur/release/scripts/startup/bl_ui/properties_constraint.py
    branches/soc-2013-cycles_mblur/release/scripts/startup/bl_ui/space_clip.py
    branches/soc-2013-cycles_mblur/release/scripts/startup/bl_ui/space_view3d.py
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_DerivedMesh.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_blender.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_colortools.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_customdata.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_mesh.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_object.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_shrinkwrap.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/BKE_tracking.h
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/CMakeLists.txt
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/DerivedMesh.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/blender.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/colortools.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/constraint.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/curve.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/customdata.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/depsgraph.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/editmesh_bvh.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/freestyle.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/image.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/linestyle.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/mesh.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/mesh_validate.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/multires.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/object.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/scene.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/shrinkwrap.c
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/tracking.c
    branches/soc-2013-cycles_mblur/source/blender/blenlib/BLI_bitmap.h
    branches/soc-2013-cycles_mblur/source/blender/blenlib/BLI_linklist_stack.h
    branches/soc-2013-cycles_mblur/source/blender/blenlib/CMakeLists.txt
    branches/soc-2013-cycles_mblur/source/blender/blenlib/intern/math_geom.c
    branches/soc-2013-cycles_mblur/source/blender/blenloader/BLO_readfile.h
    branches/soc-2013-cycles_mblur/source/blender/blenloader/CMakeLists.txt
    branches/soc-2013-cycles_mblur/source/blender/blenloader/intern/readfile.c
    branches/soc-2013-cycles_mblur/source/blender/blenloader/intern/versioning_legacy.c
    branches/soc-2013-cycles_mblur/source/blender/blenloader/intern/writefile.c
    branches/soc-2013-cycles_mblur/source/blender/bmesh/bmesh.h
    branches/soc-2013-cycles_mblur/source/blender/bmesh/bmesh_class.h
    branches/soc-2013-cycles_mblur/source/blender/bmesh/intern/bmesh_opdefines.c
    branches/soc-2013-cycles_mblur/source/blender/bmesh/operators/bmo_fill_grid.c
    branches/soc-2013-cycles_mblur/source/blender/bmesh/operators/bmo_normals.c
    branches/soc-2013-cycles_mblur/source/blender/bmesh/operators/bmo_poke.c
    branches/soc-2013-cycles_mblur/source/blender/compositor/nodes/COM_SplitViewerNode.cpp
    branches/soc-2013-cycles_mblur/source/blender/editors/armature/armature_utils.c
    branches/soc-2013-cycles_mblur/source/blender/editors/interface/interface_handlers.c
    branches/soc-2013-cycles_mblur/source/blender/editors/interface/interface_templates.c
    branches/soc-2013-cycles_mblur/source/blender/editors/mesh/editmesh_bisect.c
    branches/soc-2013-cycles_mblur/source/blender/editors/mesh/editmesh_extrude.c
    branches/soc-2013-cycles_mblur/source/blender/editors/mesh/editmesh_tools.c
    branches/soc-2013-cycles_mblur/source/blender/editors/object/object_edit.c
    branches/soc-2013-cycles_mblur/source/blender/editors/object/object_transform.c
    branches/soc-2013-cycles_mblur/source/blender/editors/sculpt_paint/paint_stroke.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_clip/clip_intern.h
    branches/soc-2013-cycles_mblur/source/blender/editors/space_clip/clip_ops.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_clip/space_clip.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_clip/tracking_ops.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_node/node_draw.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_outliner/outliner_draw.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_view3d/drawobject.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_view3d/view3d_draw.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_view3d/view3d_select.c
    branches/soc-2013-cycles_mblur/source/blender/editors/space_view3d/view3d_snap.c
    branches/soc-2013-cycles_mblur/source/blender/editors/transform/transform_conversions.c
    branches/soc-2013-cycles_mblur/source/blender/editors/transform/transform_generics.c
    branches/soc-2013-cycles_mblur/source/blender/editors/transform/transform_snap.c
    branches/soc-2013-cycles_mblur/source/blender/imbuf/IMB_colormanagement.h
    branches/soc-2013-cycles_mblur/source/blender/imbuf/IMB_imbuf.h
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/IMB_allocimbuf.h
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/IMB_colormanagement_intern.h
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/IMB_filetype.h
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/IMB_metadata.h
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/allocimbuf.c
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/bmp.c
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/colormanagement.c
    branches/soc-2013-cycles_mblur/source/blender/imbuf/intern/metadata.c
    branches/soc-2013-cycles_mblur/source/blender/makesdna/DNA_color_types.h
    branches/soc-2013-cycles_mblur/source/blender/makesdna/DNA_constraint_types.h
    branches/soc-2013-cycles_mblur/source/blender/makesdna/DNA_customdata_types.h
    branches/soc-2013-cycles_mblur/source/blender/makesdna/DNA_tracking_types.h
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/makesrna.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_color.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_constraint.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_mesh.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_mesh_api.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_object_force.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_tracking.c
    branches/soc-2013-cycles_mblur/source/blender/makesrna/intern/rna_ui.c
    branches/soc-2013-cycles_mblur/source/blender/modifiers/intern/MOD_build.c
    branches/soc-2013-cycles_mblur/source/blender/nodes/texture/nodes/node_texture_common.c
    branches/soc-2013-cycles_mblur/source/blender/python/mathutils/mathutils_geometry.c
    branches/soc-2013-cycles_mblur/source/blender/render/intern/source/rayshade.c
    branches/soc-2013-cycles_mblur/source/blender/render/intern/source/voxeldata.c
    branches/soc-2013-cycles_mblur/source/blender/windowmanager/intern/wm_event_system.c
    branches/soc-2013-cycles_mblur/source/blender/windowmanager/intern/wm_files.c
    branches/soc-2013-cycles_mblur/source/blender/windowmanager/intern/wm_window.c
    branches/soc-2013-cycles_mblur/source/blender/windowmanager/wm_window.h
    branches/soc-2013-cycles_mblur/source/blenderplayer/bad_level_call_stubs/stubs.c
    branches/soc-2013-cycles_mblur/source/gameengine/Converter/KX_ConvertActuators.cpp

Added Paths:
-----------
    branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_path_state.h
    branches/soc-2013-cycles_mblur/release/datafiles/colormanagement/luts/camera_response/
    branches/soc-2013-cycles_mblur/release/datafiles/colormanagement/luts/film_response/
    branches/soc-2013-cycles_mblur/source/blender/blenkernel/intern/mesh_evaluate.c
    branches/soc-2013-cycles_mblur/source/blender/blenlib/BLI_convexhull2d.h
    branches/soc-2013-cycles_mblur/source/blender/blenlib/intern/convexhull2d.c
    branches/soc-2013-cycles_mblur/source/blender/blenloader/intern/versioning_defaults.c

Property Changed:
----------------
    branches/soc-2013-cycles_mblur/
    branches/soc-2013-cycles_mblur/source/blender/editors/space_outliner/


Property changes on: branches/soc-2013-cycles_mblur
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/ge_dev:58091-58422
/branches/ge_harmony:42255,42279-42282,42286,42302,42338,42349,42616,42620,42698-42699,42739,42753,42773-42774,42832,44568,44597-44598,44793-44794
/branches/soc-2011-cucumber:37517,38166-38167,38177,38179-38180,38187,38242,38384,38387,38403-38404,38407,38968,38970,38973,39045,40845,42997-42998,43439
/branches/soc-2011-tomato:42376,42378-42379,42383,42385,42395,42397-42400,42407,42411,42418,42443-42444,42446,42467,42472,42486,42650-42652,42654-42655,42709-42710,42733-42734,42801,43872,44130,44141,44147-44149,44151-44152,44229-44230,45623-45625,46037,48089,48092,48551-48552,48679,48790,48792-48793,49076,49087,49292,49294,49466,49894,50052,50126,52854-52856,54573,58822,58989
/branches/soc-2013-depsgraph_mt:57516,57900,57939-57940,57945,57958-57961,58151,58155-58156,58169,58277-58279,58282-58283,58711,58787,58789,58796,59086-59087,59163,59166,59170,59181,59259-59260
/branches/soc-2013-dingto:57424,57487,57507,57525,57599,57670,57918-57919,57981,58091,58245,58253,58587,58772,58774-58775,58828,58835,59032,59214,59220,59251,59601
/tags/blender-2.67b-release/blender:57122
/trunk/blender:57388-59906
   + /branches/ge_dev:58091-58422
/branches/ge_harmony:42255,42279-42282,42286,42302,42338,42349,42616,42620,42698-42699,42739,42753,42773-42774,42832,44568,44597-44598,44793-44794
/branches/soc-2011-cucumber:37517,38166-38167,38177,38179-38180,38187,38242,38384,38387,38403-38404,38407,38968,38970,38973,39045,40845,42997-42998,43439
/branches/soc-2011-tomato:42376,42378-42379,42383,42385,42395,42397-42400,42407,42411,42418,42443-42444,42446,42467,42472,42486,42650-42652,42654-42655,42709-42710,42733-42734,42801,43872,44130,44141,44147-44149,44151-44152,44229-44230,45623-45625,46037,48089,48092,48551-48552,48679,48790,48792-48793,49076,49087,49292,49294,49466,49894,50052,50126,52854-52856,54573,58822,58989
/branches/soc-2013-depsgraph_mt:57516,57900,57939-57940,57945,57958-57961,58151,58155-58156,58169,58277-58279,58282-58283,58711,58787,58789,58796,59086-59087,59163,59166,59170,59181,59259-59260
/branches/soc-2013-dingto:57424,57487,57507,57525,57599,57670,57918-57919,57981,58091,58245,58253,58587,58772,58774-58775,58828,58835,59032,59214,59220,59251,59601
/tags/blender-2.67b-release/blender:57122
/trunk/blender:57388-60019

Modified: branches/soc-2013-cycles_mblur/CMakeLists.txt
===================================================================
--- branches/soc-2013-cycles_mblur/CMakeLists.txt	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/CMakeLists.txt	2013-09-10 19:23:06 UTC (rev 60021)
@@ -1783,6 +1783,9 @@
 		set(CMAKE_C_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing")
 		set(CMAKE_CXX_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing")
 	endif()
+
+	# Xcode 5 has too low template depth of 128 for libmv
+	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
 endif()
 
 #-----------------------------------------------------------------------------

Modified: branches/soc-2013-cycles_mblur/SConstruct
===================================================================
--- branches/soc-2013-cycles_mblur/SConstruct	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/SConstruct	2013-09-10 19:23:06 UTC (rev 60021)
@@ -294,6 +294,9 @@
         print  B.bc.OKGREEN + "Auto-setting available MacOSX SDK -> " + B.bc.ENDC + "MacOSX10.6.sdk"
     else:
         print B.bc.OKGREEN + "Found recommended sdk :" + B.bc.ENDC + " using MacOSX10.5.sdk"
+		
+    if env['CXX'].startswith('clang') and env['XCODE_CUR_VER'] >= '5':
+        env['CCFLAGS'].append('-ftemplate-depth=1024') # only valid for clang bundled with xcode 5
 
     # for now, Mac builders must download and install the 3DxWare 10 Beta 4 driver framework from 3Dconnexion
     # necessary header file lives here when installed:
@@ -314,7 +317,7 @@
             print "JackOSX install not found, disabling WITH_BF_JACK" # avoid build errors !
             env['WITH_BF_JACK'] = 0
         else:
-            env.Append(LINKFLAGS=['-L/Library/Frameworks','-Xlinker','-weak_framework','-Xlinker','Jackmp'])
+            env.Append(LINKFLAGS=['-F/Library/Frameworks','-Xlinker','-weak_framework','-Xlinker','Jackmp'])
 
     if env['WITH_BF_CYCLES_OSL'] == 1:
         OSX_OSL_LIBPATH = Dir(env.subst(env['BF_OSL_LIBPATH'])).abspath

Modified: branches/soc-2013-cycles_mblur/build_files/cmake/macros.cmake
===================================================================
--- branches/soc-2013-cycles_mblur/build_files/cmake/macros.cmake	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/build_files/cmake/macros.cmake	2013-09-10 19:23:06 UTC (rev 60021)
@@ -498,6 +498,7 @@
 		remove_cc_flag("-Wredundant-decls")
 		remove_cc_flag("-Wundef")
 		remove_cc_flag("-Wshadow")
+		remove_cc_flag("-Wdouble-promotion")
 		remove_cc_flag("-Wold-style-definition")
 		remove_cc_flag("-Werror=[^ ]+")
 		remove_cc_flag("-Werror")

Modified: branches/soc-2013-cycles_mblur/build_files/scons/config/darwin-config.py
===================================================================
--- branches/soc-2013-cycles_mblur/build_files/scons/config/darwin-config.py	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/build_files/scons/config/darwin-config.py	2013-09-10 19:23:06 UTC (rev 60021)
@@ -350,6 +350,7 @@
 CXXFLAGS = []
 CCFLAGS = ['-pipe','-funsigned-char']
 
+
 CPPFLAGS = list(ARCH_FLAGS)
 
 if WITH_GHOST_COCOA:

Modified: branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.cc
===================================================================
--- branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.cc	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.cc	2013-09-10 19:23:06 UTC (rev 60021)
@@ -288,7 +288,7 @@
 }
 }  // namespace
 
-void SelectkeyframesBasedOnGRICAndVariance(const Tracks &tracks,
+void SelectKeyframesBasedOnGRICAndVariance(const Tracks &tracks,
                                            CameraIntrinsics &intrinsics,
                                            vector<int> &keyframes) {
   // Mirza Tahir Ahmed, Matthew N. Dailey

Modified: branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.h
===================================================================
--- branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.h	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/extern/libmv/libmv/simple_pipeline/keyframe_selection.h	2013-09-10 19:23:06 UTC (rev 60021)
@@ -43,7 +43,7 @@
 // \param intrinsics is camera intrinsics
 // \param keyframes will contain all images number which are considered
 //        good to be used for reconstruction
-void SelectkeyframesBasedOnGRICAndVariance(const Tracks &tracks,
+void SelectKeyframesBasedOnGRICAndVariance(const Tracks &tracks,
                                            CameraIntrinsics &intrinsics,
                                            vector<int> &keyframes);
 

Modified: branches/soc-2013-cycles_mblur/extern/libmv/libmv-capi.cc
===================================================================
--- branches/soc-2013-cycles_mblur/extern/libmv/libmv-capi.cc	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/extern/libmv/libmv-capi.cc	2013-09-10 19:23:06 UTC (rev 60021)
@@ -510,7 +510,7 @@
 	libmv::vector<int> keyframes;
 
 	/* Get list of all keyframe candidates first. */
-	SelectkeyframesBasedOnGRICAndVariance(normalized_tracks,
+	SelectKeyframesBasedOnGRICAndVariance(normalized_tracks,
 	                                      camera_intrinsics,
 	                                      keyframes);
 

Modified: branches/soc-2013-cycles_mblur/intern/cycles/kernel/CMakeLists.txt
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/kernel/CMakeLists.txt	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/intern/cycles/kernel/CMakeLists.txt	2013-09-10 19:23:06 UTC (rev 60021)
@@ -41,6 +41,7 @@
 	kernel_object.h
 	kernel_passes.h
 	kernel_path.h
+	kernel_path_state.h
 	kernel_primitive.h
 	kernel_projection.h
 	kernel_random.h

Modified: branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_film.h
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_film.h	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_film.h	2013-09-10 19:23:06 UTC (rev 60021)
@@ -70,7 +70,7 @@
 	/* buffer offset */
 	int index = offset + x + y*stride;
 
-	float4 *in = (__global float4*)(buffer + index*kernel_data.film.pass_stride);
+	float4 *in = (float4*)(buffer + index*kernel_data.film.pass_stride);
 	half *out = (half*)rgba + index*4;
 	float scale = kernel_data.film.exposure*sample_scale;
 

Modified: branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_path.h
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_path.h	2013-09-10 18:56:33 UTC (rev 60020)
+++ branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_path.h	2013-09-10 19:23:06 UTC (rev 60021)
@@ -34,6 +34,7 @@
 #include "kernel_light.h"
 #include "kernel_emission.h"
 #include "kernel_passes.h"
+#include "kernel_path_state.h"
 
 #ifdef __SUBSURFACE__
 #include "kernel_subsurface.h"
@@ -41,119 +42,6 @@
 
 CCL_NAMESPACE_BEGIN
 
-typedef struct PathState {
-	int flag;
-	int bounce;
-
-	int diffuse_bounce;
-	int glossy_bounce;
-	int transmission_bounce;
-	int transparent_bounce;
-} PathState;
-
-__device_inline void path_state_init(PathState *state)
-{
-	state->flag = PATH_RAY_CAMERA|PATH_RAY_SINGULAR|PATH_RAY_MIS_SKIP;
-	state->bounce = 0;
-	state->diffuse_bounce = 0;
-	state->glossy_bounce = 0;
-	state->transmission_bounce = 0;
-	state->transparent_bounce = 0;
-}
-
-__device_inline void path_state_next(KernelGlobals *kg, PathState *state, int label)
-{
-	/* ray through transparent keeps same flags from previous ray and is
-	 * not counted as a regular bounce, transparent has separate max */
-	if(label & LABEL_TRANSPARENT) {

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list