[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57699] branches/soc-2013-paint: Merge trunk -r 57692 into soc-2013-paint

Antony Riakiotakis kalast at gmail.com
Mon Jun 24 15:38:15 CEST 2013


Revision: 57699
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57699
Author:   psy-fi
Date:     2013-06-24 13:38:15 +0000 (Mon, 24 Jun 2013)
Log Message:
-----------
Merge trunk -r 57692 into soc-2013-paint

Modified Paths:
--------------
    branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-i686.py
    branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-x86_64.py
    branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-i686.py
    branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-x86_64.py
    branches/soc-2013-paint/build_files/buildbot/slave_test.py
    branches/soc-2013-paint/build_files/cmake/macros.cmake
    branches/soc-2013-paint/build_files/scons/config/win32-vc-config.py
    branches/soc-2013-paint/build_files/scons/config/win64-vc-config.py
    branches/soc-2013-paint/build_files/scons/tools/Blender.py
    branches/soc-2013-paint/build_files/scons/tools/btools.py
    branches/soc-2013-paint/doc/python_api/examples/mathutils.Vector.py
    branches/soc-2013-paint/intern/cycles/blender/addon/ui.py
    branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp
    branches/soc-2013-paint/intern/cycles/device/device_opencl.cpp
    branches/soc-2013-paint/intern/cycles/kernel/kernel.cl
    branches/soc-2013-paint/intern/cycles/kernel/kernel_displace.h
    branches/soc-2013-paint/intern/cycles/kernel/kernel_path.h
    branches/soc-2013-paint/intern/cycles/kernel/kernel_random.h
    branches/soc-2013-paint/intern/cycles/kernel/kernel_types.h
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_bump.osl
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_color.h
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_environment_texture.osl
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_image_texture.osl
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_texture.h
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_toon_bsdf.osl
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_wavelength.osl
    branches/soc-2013-paint/intern/cycles/kernel/shaders/node_wireframe.osl
    branches/soc-2013-paint/intern/cycles/kernel/svm/svm_wavelength.h
    branches/soc-2013-paint/intern/cycles/kernel/svm/svm_wireframe.h
    branches/soc-2013-paint/intern/cycles/render/graph.cpp
    branches/soc-2013-paint/intern/cycles/render/graph.h
    branches/soc-2013-paint/intern/cycles/render/light.cpp
    branches/soc-2013-paint/intern/cycles/render/nodes.cpp
    branches/soc-2013-paint/intern/cycles/render/nodes.h
    branches/soc-2013-paint/intern/cycles/render/osl.cpp
    branches/soc-2013-paint/intern/cycles/util/util_types.h
    branches/soc-2013-paint/intern/cycles/util/util_vector.h
    branches/soc-2013-paint/intern/locale/boost_locale_wrapper.cpp
    branches/soc-2013-paint/release/scripts/startup/bl_ui/properties_mask_common.py
    branches/soc-2013-paint/release/scripts/startup/bl_ui/space_image.py
    branches/soc-2013-paint/release/scripts/startup/bl_ui/space_userpref.py
    branches/soc-2013-paint/release/scripts/templates_osl/ramp_closure.osl
    branches/soc-2013-paint/release/scripts/templates_osl/temperature_to_rgb.osl
    branches/soc-2013-paint/release/scripts/templates_osl/wavelength_to_rgb.osl
    branches/soc-2013-paint/release/scripts/templates_osl/westin_closure.osl
    branches/soc-2013-paint/source/blender/blenfont/intern/blf_lang.c
    branches/soc-2013-paint/source/blender/blenkernel/BKE_bpath.h
    branches/soc-2013-paint/source/blender/blenkernel/BKE_deform.h
    branches/soc-2013-paint/source/blender/blenkernel/intern/armature.c
    branches/soc-2013-paint/source/blender/blenkernel/intern/blender.c
    branches/soc-2013-paint/source/blender/blenkernel/intern/bpath.c
    branches/soc-2013-paint/source/blender/blenkernel/intern/colortools.c
    branches/soc-2013-paint/source/blender/blenkernel/intern/deform.c
    branches/soc-2013-paint/source/blender/blenkernel/intern/mask_rasterize.c
    branches/soc-2013-paint/source/blender/blenlib/BLI_math_rotation.h
    branches/soc-2013-paint/source/blender/blenlib/BLI_smallhash.h
    branches/soc-2013-paint/source/blender/blenlib/intern/BLI_ghash.c
    branches/soc-2013-paint/source/blender/blenlib/intern/BLI_heap.c
    branches/soc-2013-paint/source/blender/blenlib/intern/BLI_memarena.c
    branches/soc-2013-paint/source/blender/blenlib/intern/BLI_mempool.c
    branches/soc-2013-paint/source/blender/blenlib/intern/edgehash.c
    branches/soc-2013-paint/source/blender/blenlib/intern/math_geom.c
    branches/soc-2013-paint/source/blender/blenlib/intern/math_rotation.c
    branches/soc-2013-paint/source/blender/blenlib/intern/smallhash.c
    branches/soc-2013-paint/source/blender/blenlib/intern/string.c
    branches/soc-2013-paint/source/blender/blenlib/intern/winstuff.c
    branches/soc-2013-paint/source/blender/bmesh/CMakeLists.txt
    branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_marking.c
    branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_marking.h
    branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_opdefines.c
    branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_operators_private.h
    branches/soc-2013-paint/source/blender/bmesh/operators/bmo_connect.c
    branches/soc-2013-paint/source/blender/editors/include/ED_mesh.h
    branches/soc-2013-paint/source/blender/editors/include/ED_object.h
    branches/soc-2013-paint/source/blender/editors/mask/mask_ops.c
    branches/soc-2013-paint/source/blender/editors/mesh/editmesh_path.c
    branches/soc-2013-paint/source/blender/editors/mesh/editmesh_select.c
    branches/soc-2013-paint/source/blender/editors/mesh/editmesh_tools.c
    branches/soc-2013-paint/source/blender/editors/mesh/editmesh_utils.c
    branches/soc-2013-paint/source/blender/editors/mesh/mesh_navmesh.c
    branches/soc-2013-paint/source/blender/editors/mesh/meshtools.c
    branches/soc-2013-paint/source/blender/editors/object/object_intern.h
    branches/soc-2013-paint/source/blender/editors/object/object_ops.c
    branches/soc-2013-paint/source/blender/editors/object/object_vgroup.c
    branches/soc-2013-paint/source/blender/editors/space_info/info_ops.c
    branches/soc-2013-paint/source/blender/editors/space_view3d/drawobject.c
    branches/soc-2013-paint/source/blender/editors/space_view3d/space_view3d.c
    branches/soc-2013-paint/source/blender/editors/space_view3d/view3d_buttons.c
    branches/soc-2013-paint/source/blender/editors/transform/transform.c
    branches/soc-2013-paint/source/blender/editors/transform/transform_conversions.c
    branches/soc-2013-paint/source/blender/editors/uvedit/uvedit_draw.c
    branches/soc-2013-paint/source/blender/editors/uvedit/uvedit_ops.c
    branches/soc-2013-paint/source/blender/editors/uvedit/uvedit_unwrap_ops.c
    branches/soc-2013-paint/source/blender/gpu/intern/gpu_draw.c
    branches/soc-2013-paint/source/blender/imbuf/IMB_imbuf_types.h
    branches/soc-2013-paint/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
    branches/soc-2013-paint/source/blender/imbuf/intern/openexr/openexr_api.cpp
    branches/soc-2013-paint/source/blender/makesdna/DNA_scene_types.h
    branches/soc-2013-paint/source/blender/makesrna/intern/makesrna.c
    branches/soc-2013-paint/source/blender/makesrna/intern/rna_scene.c
    branches/soc-2013-paint/source/blender/makesrna/intern/rna_sculpt_paint.c
    branches/soc-2013-paint/source/blender/nodes/intern/node_socket.c
    branches/soc-2013-paint/source/blender/nodes/shader/nodes/node_shader_bsdf_toon.c
    branches/soc-2013-paint/source/blender/nodes/shader/nodes/node_shader_wavelength.c
    branches/soc-2013-paint/source/blender/nodes/shader/nodes/node_shader_wireframe.c
    branches/soc-2013-paint/source/blender/python/intern/bpy.c
    branches/soc-2013-paint/source/blender/render/intern/source/initrender.c
    branches/soc-2013-paint/source/blender/render/intern/source/voxeldata.c
    branches/soc-2013-paint/source/blender/windowmanager/intern/wm_keymap.c
    branches/soc-2013-paint/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp
    branches/soc-2013-paint/source/gameengine/GamePlayer/common/GPC_Canvas.cpp
    branches/soc-2013-paint/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
    branches/soc-2013-paint/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
    branches/soc-2013-paint/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
    branches/soc-2013-paint/source/gameengine/Ketsji/BL_Action.cpp
    branches/soc-2013-paint/source/gameengine/Ketsji/KX_IPO_SGController.cpp
    branches/soc-2013-paint/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
    branches/soc-2013-paint/source/gameengine/VideoTexture/VideoFFmpeg.cpp

Added Paths:
-----------
    branches/soc-2013-paint/source/blender/bmesh/operators/bmo_connect_pair.c

Modified: branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-i686.py
===================================================================
--- branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-i686.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-i686.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -55,6 +55,8 @@
 WITH_BF_FREETYPE_STATIC = False
 
 WITH_BF_OPENEXR = True
+BF_OPENEXR = '/opt/lib/openexr'
+BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
 WITH_BF_STATICOPENEXR = True
 
 WITH_BF_TIFF = True

Modified: branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-x86_64.py
===================================================================
--- branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-x86_64.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/buildbot/config/user-config-glibc211-x86_64.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -55,6 +55,8 @@
 WITH_BF_FREETYPE_STATIC = False
 
 WITH_BF_OPENEXR = True
+BF_OPENEXR = '/opt/lib/openexr'
+BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
 WITH_BF_STATICOPENEXR = True
 
 WITH_BF_TIFF = True

Modified: branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-i686.py
===================================================================
--- branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-i686.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-i686.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -40,6 +40,8 @@
 WITH_BF_FREETYPE_STATIC = False
 
 WITH_BF_OPENEXR = True
+BF_OPENEXR = '/opt/lib/openexr'
+BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
 WITH_BF_STATICOPENEXR = True
 
 WITH_BF_TIFF = True

Modified: branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-x86_64.py
===================================================================
--- branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-x86_64.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/buildbot/config/user-config-player-glibc211-x86_64.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -40,6 +40,8 @@
 WITH_BF_FREETYPE_STATIC = False
 
 WITH_BF_OPENEXR = True
+BF_OPENEXR = '/opt/lib/openexr'
+BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
 WITH_BF_STATICOPENEXR = True
 
 WITH_BF_TIFF = True

Modified: branches/soc-2013-paint/build_files/buildbot/slave_test.py
===================================================================
--- branches/soc-2013-paint/build_files/buildbot/slave_test.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/buildbot/slave_test.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -31,7 +31,7 @@
 # we run from build/ directory
 blender_dir = '../blender'
 
-if builder.find('cmake') != -1:
+if "cmake" in builder:
     # cmake
     retcode = subprocess.call(['ctest', '.' '--output-on-failure'])
     sys.exit(retcode)

Modified: branches/soc-2013-paint/build_files/cmake/macros.cmake
===================================================================
--- branches/soc-2013-paint/build_files/cmake/macros.cmake	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/cmake/macros.cmake	2013-06-24 13:38:15 UTC (rev 57699)
@@ -401,8 +401,14 @@
 		set(${_sse_flags} "-msse")
 		set(${_sse2_flags} "-msse2")
 	elseif(MSVC)
-		set(${_sse_flags} "/arch:SSE")
-		set(${_sse2_flags} "/arch:SSE2")
+		# x86_64 has this auto enabled
+		if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+			set(${_sse_flags} "")
+			set(${_sse2_flags} "")
+		else()
+			set(${_sse_flags} "/arch:SSE")
+			set(${_sse2_flags} "/arch:SSE2")
+		endif()
 	elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
 		set(${_sse_flags} "")  # icc defaults to -msse
 		set(${_sse2_flags} "-msse2")

Modified: branches/soc-2013-paint/build_files/scons/config/win32-vc-config.py
===================================================================
--- branches/soc-2013-paint/build_files/scons/config/win32-vc-config.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/scons/config/win32-vc-config.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -3,10 +3,9 @@
 CL_OUT = subprocess.Popen(["cl.exe"],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
 CL_STDOUT, CL_STDERR = CL_OUT.communicate()
 
-if CL_STDERR.find("Version 15.00.") == -1:
+if "17.00." in CL_STDERR:
     VC_VERSION = '11.0'
     LCGDIR = '#../lib/windows_vc11'
-    
 else:
     VC_VERSION = '9.0'
     LCGDIR = '#../lib/windows'
@@ -215,8 +214,13 @@
 #CUDA
 WITH_BF_CYCLES_CUDA_BINARIES = False
 #BF_CYCLES_CUDA_NVCC = "" # Path to the nvidia compiler
-BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_20', 'sm_21', 'sm_30', 'sm_35']
 
+# Workaround for ptxas.exe crash on VS2012 and cuda 5.5
+if VC_VERSION == '11.0':
+	BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_20', 'sm_21', 'sm_30']
+else:
+	BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_20', 'sm_21', 'sm_30', 'sm_35']
+
 #Ray trace optimization
 WITH_BF_RAYOPTIMIZATION = True
 BF_RAYOPTIMIZATION_SSE_FLAGS = ['/arch:SSE']

Modified: branches/soc-2013-paint/build_files/scons/config/win64-vc-config.py
===================================================================
--- branches/soc-2013-paint/build_files/scons/config/win64-vc-config.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/scons/config/win64-vc-config.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -3,10 +3,9 @@
 CL_OUT = subprocess.Popen(["cl.exe"],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
 CL_STDOUT, CL_STDERR = CL_OUT.communicate()
 
-if CL_STDERR.find("Version 15.00.") == -1:
+if "17.00." in CL_STDERR:
     VC_VERSION = '11.0'
     LCGDIR = '#../lib/win64_vc11'
-    
 else:
     VC_VERSION = '9.0'
     LCGDIR = '#../lib/win64'

Modified: branches/soc-2013-paint/build_files/scons/tools/Blender.py
===================================================================
--- branches/soc-2013-paint/build_files/scons/tools/Blender.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/scons/tools/Blender.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -847,7 +847,7 @@
 
         def list_substring(quickie, libname):
             for q in quickie:
-                if libname.find(q) != -1:
+                if q in libname:
                     return True
             return False
 

Modified: branches/soc-2013-paint/build_files/scons/tools/btools.py
===================================================================
--- branches/soc-2013-paint/build_files/scons/tools/btools.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/build_files/scons/tools/btools.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -674,10 +674,10 @@
     if platform == 'linux':
         import platform
 
-        if env['BF_INSTALLDIR'].find('glibc27') != -1:
-            glibc="glibc27"
-        elif env['BF_INSTALLDIR'].find('glibc211') != -1:
-            glibc="glibc211"
+        if "glibc27" in env['BF_INSTALLDIR']:
+            glibc = "glibc27"
+        elif "glibc211" in env['BF_INSTALLDIR']:
+            glibc = "glibc211"
 
         bitness = platform.architecture()[0]
         if bitness == '64bit':

Modified: branches/soc-2013-paint/doc/python_api/examples/mathutils.Vector.py
===================================================================
--- branches/soc-2013-paint/doc/python_api/examples/mathutils.Vector.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/doc/python_api/examples/mathutils.Vector.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -4,7 +4,7 @@
 vec = mathutils.Vector((0.0, 0.0, 1.0))
 
 # unit length vector
-vec_a = vec.copy().normalize()
+vec_a = vec.normalized()
 
 vec_b = mathutils.Vector((0.0, 1.0, 2.0))
 

Modified: branches/soc-2013-paint/intern/cycles/blender/addon/ui.py
===================================================================
--- branches/soc-2013-paint/intern/cycles/blender/addon/ui.py	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/intern/cycles/blender/addon/ui.py	2013-06-24 13:38:15 UTC (rev 57699)
@@ -85,7 +85,7 @@
             sub.prop(cscene, "mesh_light_samples", text="Mesh Light")
             sub.prop(cscene, "subsurface_samples", text="Subsurface")
 
-        if cscene.feature_set == 'EXPERIMENTAL':
+        if cscene.feature_set == 'EXPERIMENTAL' and (device_type == 'NONE' or cscene.device == 'CPU'):
             layout.row().prop(cscene, "sampling_pattern", text="Pattern")
 
         for rl in scene.render.layers:

Modified: branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp
===================================================================
--- branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp	2013-06-24 13:38:15 UTC (rev 57699)
@@ -704,7 +704,7 @@
 
 		CUfunction cuDisplace;
 		CUdeviceptr d_input = cuda_device_ptr(task.shader_input);
-		CUdeviceptr d_offset = cuda_device_ptr(task.shader_output);
+		CUdeviceptr d_output = cuda_device_ptr(task.shader_output);
 
 		/* get kernel function */
 		cuda_assert(cuModuleGetFunction(&cuDisplace, cuModule, "kernel_cuda_shader"))
@@ -715,8 +715,8 @@
 		cuda_assert(cuParamSetv(cuDisplace, offset, &d_input, sizeof(d_input)))
 		offset += sizeof(d_input);
 
-		cuda_assert(cuParamSetv(cuDisplace, offset, &d_offset, sizeof(d_offset)))
-		offset += sizeof(d_offset);
+		cuda_assert(cuParamSetv(cuDisplace, offset, &d_output, sizeof(d_output)))
+		offset += sizeof(d_output);
 
 		int shader_eval_type = task.shader_eval_type;
 		offset = align_up(offset, __alignof(shader_eval_type));

Modified: branches/soc-2013-paint/intern/cycles/device/device_opencl.cpp
===================================================================
--- branches/soc-2013-paint/intern/cycles/device/device_opencl.cpp	2013-06-24 13:26:33 UTC (rev 57698)
+++ branches/soc-2013-paint/intern/cycles/device/device_opencl.cpp	2013-06-24 13:38:15 UTC (rev 57699)
@@ -318,6 +318,7 @@
 	cl_program cpProgram;
 	cl_kernel ckPathTraceKernel;
 	cl_kernel ckFilmConvertKernel;
+	cl_kernel ckShaderKernel;
 	cl_int ciErr;
 
 	typedef map<string, device_vector<uchar>*> ConstMemMap;
@@ -427,6 +428,7 @@
 		cpProgram = NULL;
 		ckPathTraceKernel = NULL;
 		ckFilmConvertKernel = NULL;

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list