[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57897] branches/soc-2013-depsgraph_mt: Merging r57816 through r57896 from trunk into soc-2013-depsgraph_mt

Sergey Sharybin sergey.vfx at gmail.com
Mon Jul 1 11:07:21 CEST 2013


Revision: 57897
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57897
Author:   nazgul
Date:     2013-07-01 09:07:21 +0000 (Mon, 01 Jul 2013)
Log Message:
-----------
Merging r57816 through r57896 from trunk into soc-2013-depsgraph_mt

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

Modified Paths:
--------------
    branches/soc-2013-depsgraph_mt/build_files/build_environment/install_deps.sh
    branches/soc-2013-depsgraph_mt/intern/cycles/blender/blender_curves.cpp
    branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_diffuse_ramp.h
    branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_phong_ramp.h
    branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.cpp
    branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.h
    branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_shader.cpp
    branches/soc-2013-depsgraph_mt/intern/cycles/render/background.cpp
    branches/soc-2013-depsgraph_mt/intern/cycles/render/background.h
    branches/soc-2013-depsgraph_mt/intern/cycles/render/osl.cpp
    branches/soc-2013-depsgraph_mt/intern/cycles/render/scene.h
    branches/soc-2013-depsgraph_mt/intern/cycles/render/shader.cpp
    branches/soc-2013-depsgraph_mt/intern/cycles/util/util_math.h
    branches/soc-2013-depsgraph_mt/intern/ghost/intern/GHOST_SystemCocoa.mm
    branches/soc-2013-depsgraph_mt/intern/ghost/intern/GHOST_WindowWin32.cpp
    branches/soc-2013-depsgraph_mt/intern/locale/boost_locale_wrapper.cpp
    branches/soc-2013-depsgraph_mt/release/datafiles/startup.blend
    branches/soc-2013-depsgraph_mt/release/scripts/startup/bl_operators/node.py
    branches/soc-2013-depsgraph_mt/release/scripts/startup/bl_ui/properties_data_mesh.py
    branches/soc-2013-depsgraph_mt/release/scripts/startup/bl_ui/space_info.py
    branches/soc-2013-depsgraph_mt/release/scripts/startup/bl_ui/space_view3d_toolbar.py
    branches/soc-2013-depsgraph_mt/release/text/readme.html
    branches/soc-2013-depsgraph_mt/source/blender/blenfont/SConscript
    branches/soc-2013-depsgraph_mt/source/blender/blenfont/intern/blf.c
    branches/soc-2013-depsgraph_mt/source/blender/blenfont/intern/blf_dir.c
    branches/soc-2013-depsgraph_mt/source/blender/blenfont/intern/blf_font.c
    branches/soc-2013-depsgraph_mt/source/blender/blenfont/intern/blf_glyph.c
    branches/soc-2013-depsgraph_mt/source/blender/blenfont/intern/blf_internal_types.h
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/BKE_blender.h
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/BKE_mball.h
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/BKE_mesh.h
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/DerivedMesh.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/depsgraph.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/image_gen.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/lattice.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/library.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/mball.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/mesh.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/object.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/tracking.c
    branches/soc-2013-depsgraph_mt/source/blender/blenlib/intern/path_util.c
    branches/soc-2013-depsgraph_mt/source/blender/blenloader/intern/readfile.c
    branches/soc-2013-depsgraph_mt/source/blender/bmesh/intern/bmesh_operators.c
    branches/soc-2013-depsgraph_mt/source/blender/bmesh/operators/bmo_bridge.c
    branches/soc-2013-depsgraph_mt/source/blender/compositor/nodes/COM_MixNode.cpp
    branches/soc-2013-depsgraph_mt/source/blender/compositor/operations/COM_MixBaseOperation.cpp
    branches/soc-2013-depsgraph_mt/source/blender/compositor/operations/COM_MixBaseOperation.h
    branches/soc-2013-depsgraph_mt/source/blender/editors/animation/fmodifier_ui.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/armature/armature_relations.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/armature/armature_skinning.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/armature/meshlaplacian.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/include/ED_mesh.h
    branches/soc-2013-depsgraph_mt/source/blender/editors/interface/interface_regions.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/interface/resources.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/mesh/editmesh_select.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/mesh/editmesh_tools.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/mesh/editmesh_utils.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/mesh/mesh_navmesh.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/mesh/meshtools.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/object/object_add.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/object/object_hook.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/object/object_lattice.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/object/object_relations.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/object/object_shapekey.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/object/object_vgroup.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/screen/screen_edit.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/screen/screen_ops.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/screen/screendump.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/sculpt_paint/paint_vertex.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_clip/clip_buttons.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_clip/clip_dopesheet_draw.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_graph/graph_buttons.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_graph/graph_draw.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_image/image_ops.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_outliner/outliner_draw.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_script/script_edit.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_view3d/drawmesh.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_view3d/drawobject.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_view3d/view3d_draw.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_view3d/view3d_intern.h
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_view3d/view3d_snap.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/transform/transform_conversions.c
    branches/soc-2013-depsgraph_mt/source/blender/gpu/intern/gpu_draw.c
    branches/soc-2013-depsgraph_mt/source/blender/ikplugin/intern/ikplugin_api.c
    branches/soc-2013-depsgraph_mt/source/blender/makesrna/intern/rna_brush.c
    branches/soc-2013-depsgraph_mt/source/blender/makesrna/intern/rna_wm.c
    branches/soc-2013-depsgraph_mt/source/blender/nodes/composite/nodes/node_composite_colorcorrection.c
    branches/soc-2013-depsgraph_mt/source/blender/render/intern/source/convertblender.c
    branches/soc-2013-depsgraph_mt/source/blender/render/intern/source/shadeoutput.c
    branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_cursors.c
    branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_event_system.c
    branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_operators.c
    branches/soc-2013-depsgraph_mt/source/creator/creator.c
    branches/soc-2013-depsgraph_mt/source/tests/bl_run_operators.py

Property Changed:
----------------
    branches/soc-2013-depsgraph_mt/
    branches/soc-2013-depsgraph_mt/source/blender/editors/interface/interface.c
    branches/soc-2013-depsgraph_mt/source/blender/editors/space_outliner/


Property changes on: branches/soc-2013-depsgraph_mt
___________________________________________________________________
Modified: svn:mergeinfo
   - /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
/tags/blender-2.67b-release/blender:57122
/trunk/blender:57395-57815
   + /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
/tags/blender-2.67b-release/blender:57122
/trunk/blender:57395-57896

Modified: branches/soc-2013-depsgraph_mt/build_files/build_environment/install_deps.sh
===================================================================
--- branches/soc-2013-depsgraph_mt/build_files/build_environment/install_deps.sh	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/build_files/build_environment/install_deps.sh	2013-07-01 09:07:21 UTC (rev 57897)
@@ -1142,6 +1142,9 @@
   fi
 
   _with_built_openexr=true
+
+  # Just always run it, much simpler this way!
+  _need_openexr_ldconfig=true
 }
 
 #### Build OIIO ####
@@ -3135,6 +3138,9 @@
 if [ $_need_oiio_ldconfig == true ]; then
   sudo sh -c "echo \"$INST/oiio/lib\" > /etc/ld.so.conf.d/oiio.conf"
 fi
+if [ $_need_openexr_ldconfig == true ]; then
+  sudo sh -c "echo \"$INST/openexr/lib\" > /etc/ld.so.conf.d/openexr.conf"
+fi
 sudo /sbin/ldconfig  # XXX OpenSuse does not include sbin in command path with sudo!!!
 INFO ""
 

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/blender/blender_curves.cpp
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/blender/blender_curves.cpp	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/blender/blender_curves.cpp	2013-07-01 09:07:21 UTC (rev 57897)
@@ -183,7 +183,7 @@
 				int mi = clamp(b_psys.settings().material()-1, 0, mesh->used_shaders.size()-1);
 				int shader = mesh->used_shaders[mi];
 				int draw_step = background ? b_psys.settings().render_step() : b_psys.settings().draw_step();
-				int ren_step = (int)pow((float)2.0f,(float)draw_step);
+				int ren_step = (int)powf(2.0f, (float)draw_step);
 				int totparts = b_psys.particles.length();
 				int totchild = background ? b_psys.child_particles.length() : (int)((float)b_psys.child_particles.length() * (float)b_psys.settings().draw_percentage() / 100.0f);
 				int totcurves = totchild;

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_diffuse_ramp.h
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_diffuse_ramp.h	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_diffuse_ramp.h	2013-07-01 09:07:21 UTC (rev 57897)
@@ -41,6 +41,8 @@
 	
 	float npos = pos * (float)(MAXCOLORS - 1);
 	int ipos = float_to_int(npos);
+	if (ipos < 0)
+		return colors[0];
 	if (ipos >= (MAXCOLORS - 1))
 		return colors[MAXCOLORS - 1];
 	float offset = npos - (float)ipos;

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_phong_ramp.h
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_phong_ramp.h	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/kernel/closure/bsdf_phong_ramp.h	2013-07-01 09:07:21 UTC (rev 57897)
@@ -41,6 +41,8 @@
 	
 	float npos = pos * (float)(MAXCOLORS - 1);
 	int ipos = float_to_int(npos);
+	if (ipos < 0)
+		return colors[0];
 	if (ipos >= (MAXCOLORS - 1))
 		return colors[MAXCOLORS - 1];
 	float offset = npos - (float)ipos;
@@ -49,6 +51,8 @@
 
 __device int bsdf_phong_ramp_setup(ShaderClosure *sc)
 {
+	sc->data0 = max(sc->data0, 0.0f);
+	
 	sc->type = CLOSURE_BSDF_PHONG_RAMP_ID;
 	return SD_BSDF | SD_BSDF_HAS_EVAL | SD_BSDF_GLOSSY;
 }

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.cpp
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.cpp	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.cpp	2013-07-01 09:07:21 UTC (rev 57897)
@@ -104,9 +104,10 @@
 {
 }
 
-void OSLRenderServices::thread_init(KernelGlobals *kernel_globals_)
+void OSLRenderServices::thread_init(KernelGlobals *kernel_globals_, OSL::TextureSystem *osl_ts_)
 {
 	kernel_globals = kernel_globals_;
+	osl_ts = osl_ts_;
 }
 
 bool OSLRenderServices::get_matrix(OSL::Matrix44 &result, OSL::TransformationPtr xform, float time)
@@ -767,7 +768,7 @@
                                 float s, float t, float dsdx, float dtdx,
                                 float dsdy, float dtdy, float *result)
 {
-	OSL::TextureSystem *ts = kernel_globals->osl->ts;
+	OSL::TextureSystem *ts = osl_ts;
 	bool status = ts->texture(filename, options, s, t, dsdx, dtdx, dsdy, dtdy, result);
 
 	if(!status) {
@@ -789,7 +790,7 @@
                                   const OSL::Vec3 &dPdx, const OSL::Vec3 &dPdy,
                                   const OSL::Vec3 &dPdz, float *result)
 {
-	OSL::TextureSystem *ts = kernel_globals->osl->ts;
+	OSL::TextureSystem *ts = osl_ts;
 	bool status = ts->texture3d(filename, options, P, dPdx, dPdy, dPdz, result);
 
 	if(!status) {
@@ -811,7 +812,7 @@
                                     OSL::ShaderGlobals *sg, const OSL::Vec3 &R,
                                     const OSL::Vec3 &dRdx, const OSL::Vec3 &dRdy, float *result)
 {
-	OSL::TextureSystem *ts = kernel_globals->osl->ts;
+	OSL::TextureSystem *ts = osl_ts;
 	bool status = ts->environment(filename, options, R, dRdx, dRdy, result);
 
 	if(!status) {
@@ -832,7 +833,7 @@
                                          ustring dataname,
                                          TypeDesc datatype, void *data)
 {
-	OSL::TextureSystem *ts = kernel_globals->osl->ts;
+	OSL::TextureSystem *ts = osl_ts;
 	return ts->get_texture_info(filename, subimage, dataname, datatype, data);
 }
 

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.h
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.h	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_services.h	2013-07-01 09:07:21 UTC (rev 57897)
@@ -45,7 +45,7 @@
 	OSLRenderServices();
 	~OSLRenderServices();
 	
-	void thread_init(KernelGlobals *kernel_globals);
+	void thread_init(KernelGlobals *kernel_globals, OSL::TextureSystem *ts);
 
 	bool get_matrix(OSL::Matrix44 &result, OSL::TransformationPtr xform, float time);
 	bool get_inverse_matrix(OSL::Matrix44 &result, OSL::TransformationPtr xform, float time);
@@ -148,6 +148,7 @@
 
 private:
 	KernelGlobals *kernel_globals;
+	OSL::TextureSystem *osl_ts;
 };
 
 CCL_NAMESPACE_END

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_shader.cpp
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_shader.cpp	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/kernel/osl/osl_shader.cpp	2013-07-01 09:07:21 UTC (rev 57897)
@@ -47,7 +47,7 @@
 
 	/* per thread kernel data init*/
 	kg->osl = osl_globals;
-	kg->osl->services->thread_init(kernel_globals);
+	kg->osl->services->thread_init(kernel_globals, osl_globals->ts);
 
 	OSL::ShadingSystem *ss = kg->osl->ss;
 	OSLThreadData *tdata = new OSLThreadData();

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/render/background.cpp
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/render/background.cpp	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/render/background.cpp	2013-07-01 09:07:21 UTC (rev 57897)
@@ -38,6 +38,7 @@
 	use = true;
 
 	visibility = ~0;
+	shader = 0;
 
 	transparent = false;
 	need_update = true;
@@ -54,6 +55,11 @@
 	
 	device_free(device, dscene);
 
+	if(use)
+		shader = scene->default_background;
+	else
+		shader = scene->default_empty;
+
 	/* set shader index and transparent option */
 	KernelBackground *kbackground = &dscene->data.background;
 
@@ -61,10 +67,7 @@
 	kbackground->ao_distance = ao_distance;
 
 	kbackground->transparent = transparent;
-	if(use)
-		kbackground->shader = scene->shader_manager->get_shader_id(scene->default_background);
-	else
-		kbackground->shader = scene->shader_manager->get_shader_id(scene->default_empty);
+	kbackground->shader = scene->shader_manager->get_shader_id(shader);
 
 	if(!(visibility & PATH_RAY_DIFFUSE))
 		kbackground->shader |= SHADER_EXCLUDE_DIFFUSE;

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/render/background.h
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/cycles/render/background.h	2013-07-01 08:53:45 UTC (rev 57896)
+++ branches/soc-2013-depsgraph_mt/intern/cycles/render/background.h	2013-07-01 09:07:21 UTC (rev 57897)
@@ -35,6 +35,7 @@
 	bool use;
 
 	uint visibility;
+	uint shader;
 
 	bool transparent;
 	bool need_update;

Modified: branches/soc-2013-depsgraph_mt/intern/cycles/render/osl.cpp

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list