Merge branch 'master' into blender2.8

This commit is contained in:
2018-08-29 16:09:59 +02:00
40 changed files with 5088 additions and 67 deletions

View File

@@ -635,7 +635,15 @@ SceneParams BlenderSync::get_scene_params(BL::Scene& b_scene,
params.texture_limit = 0;
}
params.bvh_layout = DebugFlags().cpu.bvh_layout;
/* TODO(sergey): Once OSL supports per-microarchitecture optimization get
* rid of this.
*/
if (params.shadingsystem == SHADINGSYSTEM_OSL) {
params.bvh_layout = BVH_LAYOUT_BVH4;
}
else {
params.bvh_layout = DebugFlags().cpu.bvh_layout;
}
return params;
}