[Bf-blender-cvs] [bee16ec4d8a] master: Cycles: Sync BVH8 unaligned node packing code with BVH4
Sergey Sharybin
noreply at git.blender.org
Thu Sep 27 14:51:16 CEST 2018
Commit: bee16ec4d8a19cfaecb95df804e350846148b30c
Author: Sergey Sharybin
Date: Thu Sep 27 13:42:16 2018 +0200
Branches: master
https://developer.blender.org/rBbee16ec4d8a19cfaecb95df804e350846148b30c
Cycles: Sync BVH8 unaligned node packing code with BVH4
Similar to dfae3de6bdf.
===================================================================
M intern/cycles/bvh/bvh8.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh8.cpp b/intern/cycles/bvh/bvh8.cpp
index 70d003d938a..8db06c31863 100644
--- a/intern/cycles/bvh/bvh8.cpp
+++ b/intern/cycles/bvh/bvh8.cpp
@@ -222,21 +222,21 @@ void BVH8::pack_unaligned_node(int idx,
* so kernel might safely assume there are always 4 child nodes.
*/
- data[1][i] = 1.0f;
- data[2][i] = 0.0f;
- data[3][i] = 0.0f;
+ data[1][i] = NAN;
+ data[2][i] = NAN;
+ data[3][i] = NAN;
- data[4][i] = 0.0f;
- data[5][i] = 0.0f;
- data[6][i] = 0.0f;
+ data[4][i] = NAN;
+ data[5][i] = NAN;
+ data[6][i] = NAN;
- data[7][i] = 0.0f;
- data[8][i] = 0.0f;
- data[9][i] = 0.0f;
+ data[7][i] = NAN;
+ data[8][i] = NAN;
+ data[9][i] = NAN;
- data[10][i] = -FLT_MAX;
- data[11][i] = -FLT_MAX;
- data[12][i] = -FLT_MAX;
+ data[10][i] = NAN;
+ data[11][i] = NAN;
+ data[12][i] = NAN;
data[13][i] = __int_as_float(0);
}
More information about the Bf-blender-cvs
mailing list