Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2018-01-23 00:52:09 +0300
committerRay Molenkamp <github@lazydodo.com>2018-01-23 00:52:09 +0300
commitbf7e4067663cec0a3b4d3194e89a28aa62b39773 (patch)
tree903e3c11d88c56efe9c8b40a23dc5ce1c7cf4381 /intern/cycles/bvh
parent2f79d1c0584f4d72984e56db1f5878be3360e044 (diff)
Cycles: Fix optimal BVH selection.
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r--intern/cycles/bvh/bvh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index 5bfe9d4ed1a..b524ca07d8d 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -63,7 +63,7 @@ BVHLayout BVHParams::best_bvh_layout(BVHLayout requested_layout,
(supported_layouts & (requested_layout_mask - 1));
/* We get widest from allowed ones and convert mask to actual layout. */
const BVHLayoutMask widest_allowed_layout_mask = __bsr(allowed_layouts_mask);
- return (BVHLayout)widest_allowed_layout_mask;
+ return (BVHLayout)(1 << widest_allowed_layout_mask);
}
/* Pack Utility */