summaryrefslogtreecommitdiffstats
path: root/thirdparty/embree/common/algorithms/parallel_reduce.h
diff options
context:
space:
mode:
authorJakub Mateusz Marcowski <01158831@pw.edu.pl>2024-02-24 12:40:55 +0100
committerJakub Marcowski <chubercikbattle@gmail.com>2024-03-27 22:10:35 +0100
commitc43eab55a417162624f47aed6bbbd0a4bd41c607 (patch)
tree3bd2fb83995573ef52edb5e8c8bfa686cff357aa /thirdparty/embree/common/algorithms/parallel_reduce.h
parentd2f9245ddc868b8ca04a6fb1b912ec4b59512c11 (diff)
downloadredot-engine-c43eab55a417162624f47aed6bbbd0a4bd41c607.tar.gz
embree: Update to 4.3.1
Diffstat (limited to 'thirdparty/embree/common/algorithms/parallel_reduce.h')
-rw-r--r--thirdparty/embree/common/algorithms/parallel_reduce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/embree/common/algorithms/parallel_reduce.h b/thirdparty/embree/common/algorithms/parallel_reduce.h
index cd0078f2e6..51ec0a6405 100644
--- a/thirdparty/embree/common/algorithms/parallel_reduce.h
+++ b/thirdparty/embree/common/algorithms/parallel_reduce.h
@@ -43,7 +43,7 @@ namespace embree
template<typename Index, typename Value, typename Func, typename Reduction>
__forceinline Value parallel_reduce( const Index first, const Index last, const Index minStepSize, const Value& identity, const Func& func, const Reduction& reduction )
{
-#if defined(TASKING_INTERNAL)
+#if defined(TASKING_INTERNAL) && !defined(TASKING_TBB)
/* fast path for small number of iterations */
Index taskCount = (last-first+minStepSize-1)/minStepSize;