[Bf-blender-cvs] [6a7378f] master: Cycles: Proper pack of leaves which are bigger than single float4
Sergey Sharybin
noreply at git.blender.org
Mon Apr 25 18:57:31 CEST 2016
Commit: 6a7378f50f239b8ed226978e0fb0a8043c87cbc2
Author: Sergey Sharybin
Date: Mon Apr 25 18:56:52 2016 +0200
Branches: master
https://developer.blender.org/rB6a7378f50f239b8ed226978e0fb0a8043c87cbc2
Cycles: Proper pack of leaves which are bigger than single float4
===================================================================
M intern/cycles/bvh/bvh.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index 9e63485..5c474c8 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -327,6 +327,9 @@ void BVH::pack_instances(size_t nodes_size, size_t leaf_nodes_size)
data.x += prim_offset;
data.y += prim_offset;
pack_leaf_nodes[pack_leaf_nodes_offset] = data;
+ for(int j = 1; j < nsize_leaf; ++j) {
+ pack_leaf_nodes[pack_leaf_nodes_offset + j] = leaf_nodes_offset[i + j];
+ }
pack_leaf_nodes_offset += nsize_leaf;
}
}
More information about the Bf-blender-cvs
mailing list