[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59116] branches/soc-2013-paint: Merge trunk -r59114 into soc-2013-paint
Antony Riakiotakis
kalast at gmail.com
Tue Aug 13 20:02:33 CEST 2013
Revision: 59116
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59116
Author: psy-fi
Date: 2013-08-13 18:02:33 +0000 (Tue, 13 Aug 2013)
Log Message:
-----------
Merge trunk -r59114 into soc-2013-paint
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59114
Modified Paths:
--------------
branches/soc-2013-paint/build_files/build_environment/install_deps.sh
branches/soc-2013-paint/build_files/cmake/cmake_static_check_cppcheck.py
branches/soc-2013-paint/doc/python_api/rst/bge.logic.rst
branches/soc-2013-paint/intern/cycles/blender/addon/ui.py
branches/soc-2013-paint/intern/cycles/blender/blender_object.cpp
branches/soc-2013-paint/intern/cycles/blender/blender_sync.cpp
branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp
branches/soc-2013-paint/intern/cycles/device/device_task.h
branches/soc-2013-paint/intern/cycles/kernel/kernel.cl
branches/soc-2013-paint/intern/cycles/kernel/kernel.cpp
branches/soc-2013-paint/intern/cycles/kernel/kernel.cu
branches/soc-2013-paint/intern/cycles/kernel/kernel_bvh.h
branches/soc-2013-paint/intern/cycles/kernel/kernel_bvh_traversal.h
branches/soc-2013-paint/intern/cycles/kernel/kernel_curve.h
branches/soc-2013-paint/intern/cycles/kernel/kernel_passes.h
branches/soc-2013-paint/intern/cycles/kernel/kernel_path.h
branches/soc-2013-paint/intern/cycles/kernel/kernel_shader.h
branches/soc-2013-paint/intern/cycles/kernel/kernel_sse2.cpp
branches/soc-2013-paint/intern/cycles/kernel/kernel_sse3.cpp
branches/soc-2013-paint/intern/cycles/kernel/kernel_types.h
branches/soc-2013-paint/intern/cycles/kernel/shaders/node_texture.h
branches/soc-2013-paint/intern/cycles/kernel/shaders/node_wave_texture.osl
branches/soc-2013-paint/intern/cycles/kernel/svm/svm_texture.h
branches/soc-2013-paint/intern/cycles/kernel/svm/svm_types.h
branches/soc-2013-paint/intern/cycles/kernel/svm/svm_wave.h
branches/soc-2013-paint/intern/cycles/render/curves.cpp
branches/soc-2013-paint/intern/cycles/render/graph.cpp
branches/soc-2013-paint/intern/cycles/render/session.cpp
branches/soc-2013-paint/intern/cycles/render/svm.cpp
branches/soc-2013-paint/intern/cycles/render/tile.cpp
branches/soc-2013-paint/release/scripts/modules/bpy/path.py
branches/soc-2013-paint/release/scripts/modules/bpy_extras/image_utils.py
branches/soc-2013-paint/release/scripts/startup/bl_operators/add_mesh_torus.py
branches/soc-2013-paint/source/blender/avi/intern/avi.c
branches/soc-2013-paint/source/blender/blenfont/intern/blf_glyph.c
branches/soc-2013-paint/source/blender/blenkernel/BKE_material.h
branches/soc-2013-paint/source/blender/blenkernel/BKE_screen.h
branches/soc-2013-paint/source/blender/blenkernel/intern/action.c
branches/soc-2013-paint/source/blender/blenkernel/intern/armature.c
branches/soc-2013-paint/source/blender/blenkernel/intern/camera.c
branches/soc-2013-paint/source/blender/blenkernel/intern/curve.c
branches/soc-2013-paint/source/blender/blenkernel/intern/image.c
branches/soc-2013-paint/source/blender/blenkernel/intern/mask.c
branches/soc-2013-paint/source/blender/blenkernel/intern/material.c
branches/soc-2013-paint/source/blender/blenkernel/intern/object.c
branches/soc-2013-paint/source/blender/blenkernel/intern/particle.c
branches/soc-2013-paint/source/blender/blenkernel/intern/screen.c
branches/soc-2013-paint/source/blender/blenkernel/intern/sound.c
branches/soc-2013-paint/source/blender/blenlib/BLI_math_base.h
branches/soc-2013-paint/source/blender/blenlib/intern/BLI_kdtree.c
branches/soc-2013-paint/source/blender/blenloader/intern/readfile.c
branches/soc-2013-paint/source/blender/bmesh/bmesh.h
branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_construct.c
branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_construct.h
branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_core.c
branches/soc-2013-paint/source/blender/bmesh/intern/bmesh_core.h
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/operators/bmo_inset.c
branches/soc-2013-paint/source/blender/bmesh/operators/bmo_split_edges.c
branches/soc-2013-paint/source/blender/bmesh/operators/bmo_subdivide.c
branches/soc-2013-paint/source/blender/bmesh/operators/bmo_subdivide_edgering.c
branches/soc-2013-paint/source/blender/bmesh/tools/bmesh_edgesplit.c
branches/soc-2013-paint/source/blender/bmesh/tools/bmesh_edgesplit.h
branches/soc-2013-paint/source/blender/editors/armature/pose_edit.c
branches/soc-2013-paint/source/blender/editors/interface/interface_draw.c
branches/soc-2013-paint/source/blender/editors/interface/interface_handlers.c
branches/soc-2013-paint/source/blender/editors/interface/interface_templates.c
branches/soc-2013-paint/source/blender/editors/mask/mask_draw.c
branches/soc-2013-paint/source/blender/editors/mask/mask_ops.c
branches/soc-2013-paint/source/blender/editors/mesh/editmesh_knife.c
branches/soc-2013-paint/source/blender/editors/mesh/editmesh_rip.c
branches/soc-2013-paint/source/blender/editors/mesh/editmesh_tools.c
branches/soc-2013-paint/source/blender/editors/object/object_edit.c
branches/soc-2013-paint/source/blender/editors/screen/screen_edit.c
branches/soc-2013-paint/source/blender/editors/space_graph/graph_buttons.c
branches/soc-2013-paint/source/blender/editors/space_outliner/outliner_edit.c
branches/soc-2013-paint/source/blender/editors/space_outliner/space_outliner.c
branches/soc-2013-paint/source/blender/editors/space_time/space_time.c
branches/soc-2013-paint/source/blender/editors/space_view3d/drawarmature.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_view.c
branches/soc-2013-paint/source/blender/freestyle/intern/geometry/FitCurve.cpp
branches/soc-2013-paint/source/blender/freestyle/intern/stroke/StrokeRep.cpp
branches/soc-2013-paint/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
branches/soc-2013-paint/source/blender/freestyle/intern/view_map/ViewMapIO.cpp
branches/soc-2013-paint/source/blender/gpu/GPU_buffers.h
branches/soc-2013-paint/source/blender/gpu/intern/gpu_buffers.c
branches/soc-2013-paint/source/blender/gpu/intern/gpu_draw.c
branches/soc-2013-paint/source/blender/imbuf/intern/bmp.c
branches/soc-2013-paint/source/blender/makesdna/DNA_image_types.h
branches/soc-2013-paint/source/blender/makesrna/intern/makesrna.c
branches/soc-2013-paint/source/blender/makesrna/intern/rna_ID.c
branches/soc-2013-paint/source/blender/makesrna/intern/rna_access.c
branches/soc-2013-paint/source/blender/makesrna/intern/rna_define.c
branches/soc-2013-paint/source/blender/makesrna/intern/rna_internal.h
branches/soc-2013-paint/source/blender/makesrna/intern/rna_meta.c
branches/soc-2013-paint/source/blender/modifiers/intern/MOD_edgesplit.c
branches/soc-2013-paint/source/blender/modifiers/intern/MOD_ocean.c
branches/soc-2013-paint/source/blender/modifiers/intern/MOD_weightvg_util.c
branches/soc-2013-paint/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.c
branches/soc-2013-paint/source/blender/python/bmesh/bmesh_py_utils.c
branches/soc-2013-paint/source/blender/render/intern/source/convertblender.c
branches/soc-2013-paint/source/blender/render/intern/source/occlusion.c
branches/soc-2013-paint/source/blender/render/intern/source/pointdensity.c
branches/soc-2013-paint/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
branches/soc-2013-paint/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
branches/soc-2013-paint/source/gameengine/Ketsji/KX_KetsjiEngine.h
branches/soc-2013-paint/source/gameengine/Ketsji/KX_PythonInit.cpp
branches/soc-2013-paint/source/gameengine/Ketsji/KX_PythonInitTypes.cpp
branches/soc-2013-paint/source/tools/check_style_c.py
Added Paths:
-----------
branches/soc-2013-paint/release/text/GPL3-license.txt
branches/soc-2013-paint/release/text/jemalloc-license.txt
Modified: branches/soc-2013-paint/build_files/build_environment/install_deps.sh
===================================================================
--- branches/soc-2013-paint/build_files/build_environment/install_deps.sh 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/build_files/build_environment/install_deps.sh 2013-08-13 18:02:33 UTC (rev 59116)
@@ -237,6 +237,7 @@
# Version??
OPENCOLLADA_VERSION="1.3"
OPENCOLLADA_SOURCE="https://github.com/KhronosGroup/OpenCOLLADA.git"
+OPENCOLLADA_REPO_UID="828b60384552b83e55d2af7055f07d2c40b4d3f4"
OPENCOLLADA_FORCE_REBUILD=false
OPENCOLLADA_SKIP=false
@@ -1632,7 +1633,7 @@
compile_OpenCOLLADA() {
# To be changed each time we make edits that would modify the compiled results!
- opencollada_magic=6
+ opencollada_magic=7
_init_opencollada
# Clean install if needed!
@@ -1657,7 +1658,7 @@
git pull origin master
# Stick to same rev as windows' libs...
- git checkout e886e196673222f2f4bc32b936dc96419fff815f
+ git checkout $OPENCOLLADA_REPO_UID
git reset --hard
# Always refresh the whole build!
Modified: branches/soc-2013-paint/build_files/cmake/cmake_static_check_cppcheck.py
===================================================================
--- branches/soc-2013-paint/build_files/cmake/cmake_static_check_cppcheck.py 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/build_files/cmake/cmake_static_check_cppcheck.py 2013-08-13 18:02:33 UTC (rev 59116)
@@ -52,6 +52,7 @@
def main():
source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)
+ source_defines = project_source_info.build_defines_as_args()
check_commands = []
for c, inc_dirs, defs in source_info:
@@ -59,7 +60,8 @@
CHECKER_ARGS +
[c] +
[("-I%s" % i) for i in inc_dirs] +
- [("-D%s" % d) for d in defs]
+ [("-D%s" % d) for d in defs] +
+ source_defines
)
check_commands.append((c, cmd))
Modified: branches/soc-2013-paint/doc/python_api/rst/bge.logic.rst
===================================================================
--- branches/soc-2013-paint/doc/python_api/rst/bge.logic.rst 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/doc/python_api/rst/bge.logic.rst 2013-08-13 18:02:33 UTC (rev 59116)
@@ -362,9 +362,9 @@
Use / as directory separator in path
You can use '//' at the start of the string to define a relative path;
- Blender replaces that string by the directory of the startup .blend or runtime file
- to make a full path name (doesn't change during the game, even if you load other .blend).
- The function also converts the directory separator to the local file system format.
+ Blender replaces that string by the directory of the current .blend or runtime file
+ to make a full path name. The function also converts the directory separator to
+ the local file system format.
:arg path: The path string to be converted/expanded.
:type path: string
Modified: branches/soc-2013-paint/intern/cycles/blender/addon/ui.py
===================================================================
--- branches/soc-2013-paint/intern/cycles/blender/addon/ui.py 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/blender/addon/ui.py 2013-08-13 18:02:33 UTC (rev 59116)
@@ -67,9 +67,7 @@
row.operator("render.cycles_sampling_preset_add", text="", icon="ZOOMOUT").remove_active = True
row = layout.row()
- sub = row.row()
- sub.active = (device_type == 'NONE' or cscene.device == 'CPU')
- sub.prop(cscene, "progressive")
+ row.prop(cscene, "progressive")
if not cscene.progressive:
row.prop(cscene, "squared_samples")
@@ -82,7 +80,7 @@
sub.prop(cscene, "seed")
sub.prop(cscene, "sample_clamp")
- if cscene.progressive or (device_type != 'NONE' and cscene.device == 'GPU'):
+ if cscene.progressive:
col = split.column()
sub = col.column(align=True)
sub.label(text="Samples:")
@@ -355,7 +353,9 @@
col.prop(rl, "use_pass_uv")
col.prop(rl, "use_pass_object_index")
col.prop(rl, "use_pass_material_index")
+ col.separator()
col.prop(rl, "use_pass_shadow")
+ col.prop(rl, "use_pass_ambient_occlusion")
col = split.column()
col.label(text="Diffuse:")
@@ -382,7 +382,6 @@
col.separator()
col.prop(rl, "use_pass_emit", text="Emission")
col.prop(rl, "use_pass_environment")
- col.prop(rl, "use_pass_ambient_occlusion")
class Cycles_PT_post_processing(CyclesButtonsPanel, Panel):
@@ -656,7 +655,6 @@
lamp = context.lamp
clamp = lamp.cycles
cscene = context.scene.cycles
- device_type = context.user_preferences.system.compute_device_type
layout.prop(lamp, "type", expand=True)
@@ -675,7 +673,7 @@
sub.prop(lamp, "size", text="Size X")
sub.prop(lamp, "size_y", text="Size Y")
- if not cscene.progressive and (device_type == 'NONE' or cscene.device == 'CPU'):
+ if not cscene.progressive:
col.prop(clamp, "samples")
col = split.column()
@@ -864,7 +862,6 @@
world = context.world
cworld = world.cycles
cscene = context.scene.cycles
- device_type = context.user_preferences.system.compute_device_type
col = layout.column()
@@ -872,7 +869,7 @@
sub = col.row(align=True)
sub.active = cworld.sample_as_light
sub.prop(cworld, "sample_map_resolution")
- if not cscene.progressive and (device_type == 'NONE' or cscene.device == 'CPU'):
+ if not cscene.progressive:
sub.prop(cworld, "samples")
Modified: branches/soc-2013-paint/intern/cycles/blender/blender_object.cpp
===================================================================
--- branches/soc-2013-paint/intern/cycles/blender/blender_object.cpp 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/blender/blender_object.cpp 2013-08-13 18:02:33 UTC (rev 59116)
@@ -373,7 +373,7 @@
if(show_emitter) {
hide_triangles = false;
- return (hide_as_dupli_parent || hide_as_dupli_child_original);
+ return false;
}
else if(hair_present) {
hide_triangles = true;
Modified: branches/soc-2013-paint/intern/cycles/blender/blender_sync.cpp
===================================================================
--- branches/soc-2013-paint/intern/cycles/blender/blender_sync.cpp 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/blender/blender_sync.cpp 2013-08-13 18:02:33 UTC (rev 59116)
@@ -420,7 +420,7 @@
preview_aa_samples = preview_aa_samples * preview_aa_samples;
}
- if(get_boolean(cscene, "progressive") == 0 && params.device.type == DEVICE_CPU) {
+ if(get_boolean(cscene, "progressive") == 0) {
if(background) {
params.samples = aa_samples;
}
Modified: branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp
===================================================================
--- branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/device/device_cuda.cpp 2013-08-13 18:02:33 UTC (rev 59116)
@@ -558,7 +558,7 @@
}
}
- void path_trace(RenderTile& rtile, int sample)
+ void path_trace(RenderTile& rtile, int sample, bool progressive)
{
if(have_error())
return;
@@ -570,7 +570,13 @@
CUdeviceptr d_rng_state = cuda_device_ptr(rtile.rng_state);
/* get kernel function */
- cuda_assert(cuModuleGetFunction(&cuPathTrace, cuModule, "kernel_cuda_path_trace"))
+ if(progressive)
+ cuda_assert(cuModuleGetFunction(&cuPathTrace, cuModule, "kernel_cuda_path_trace_progressive"))
+ else {
+ cuda_assert(cuModuleGetFunction(&cuPathTrace, cuModule, "kernel_cuda_path_trace_non_progressive"))
+ if(have_error())
+ return;
+ }
/* pass in parameters */
int offset = 0;
@@ -914,6 +920,8 @@
if(task->type == DeviceTask::PATH_TRACE) {
RenderTile tile;
+ bool progressive = task->integrator_progressive;
+
/* keep rendering tiles until done */
while(task->acquire_tile(this, tile)) {
int start_sample = tile.start_sample;
@@ -925,7 +933,7 @@
break;
}
- path_trace(tile, sample);
+ path_trace(tile, sample, progressive);
tile.sample = sample + 1;
Modified: branches/soc-2013-paint/intern/cycles/device/device_task.h
===================================================================
--- branches/soc-2013-paint/intern/cycles/device/device_task.h 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/device/device_task.h 2013-08-13 18:02:33 UTC (rev 59116)
@@ -65,6 +65,7 @@
boost::function<bool(void)> get_cancel;
bool need_finish_queue;
+ bool integrator_progressive;
protected:
double last_update_time;
};
Modified: branches/soc-2013-paint/intern/cycles/kernel/kernel.cl
===================================================================
--- branches/soc-2013-paint/intern/cycles/kernel/kernel.cl 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/kernel/kernel.cl 2013-08-13 18:02:33 UTC (rev 59116)
@@ -51,7 +51,7 @@
int y = sy + get_global_id(1);
if(x < sx + sw && y < sy + sh)
- kernel_path_trace(kg, buffer, rng_state, sample, x, y, offset, stride);
+ kernel_path_trace_progressive(kg, buffer, rng_state, sample, x, y, offset, stride);
}
__kernel void kernel_ocl_tonemap(
Modified: branches/soc-2013-paint/intern/cycles/kernel/kernel.cpp
===================================================================
--- branches/soc-2013-paint/intern/cycles/kernel/kernel.cpp 2013-08-13 17:57:58 UTC (rev 59115)
+++ branches/soc-2013-paint/intern/cycles/kernel/kernel.cpp 2013-08-13 18:02:33 UTC (rev 59116)
@@ -90,7 +90,12 @@
void kernel_cpu_path_trace(KernelGlobals *kg, float *buffer, unsigned int *rng_state, int sample, int x, int y, int offset, int stride)
{
- kernel_path_trace(kg, buffer, rng_state, sample, x, y, offset, stride);
+#ifdef __NON_PROGRESSIVE__
+ if(!kernel_data.integrator.progressive)
+ kernel_path_trace_non_progressive(kg, buffer, rng_state, sample, x, y, offset, stride);
+ else
+#endif
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list