diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-01-23 00:52:09 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2018-01-23 00:52:09 +0300 |
commit | bf7e4067663cec0a3b4d3194e89a28aa62b39773 (patch) | |
tree | 903e3c11d88c56efe9c8b40a23dc5ce1c7cf4381 /intern/cycles/bvh | |
parent | 2f79d1c0584f4d72984e56db1f5878be3360e044 (diff) |
Cycles: Fix optimal BVH selection.
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 2 |
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 */ |