From 41b3feea85cd8c323c1c5030f1ab0bc90438df4f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 18 Apr 2022 18:30:55 +0200 Subject: Fix Cycles build error with latest TBB after recent changes From changes in 869a46df2980, ref D14454 --- intern/cycles/util/tbb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/tbb.h b/intern/cycles/util/tbb.h index 7105ddda0f8..948bf2b3e0e 100644 --- a/intern/cycles/util/tbb.h +++ b/intern/cycles/util/tbb.h @@ -25,6 +25,17 @@ CCL_NAMESPACE_BEGIN using tbb::blocked_range; using tbb::enumerable_thread_specific; using tbb::parallel_for; +using tbb::parallel_for_each; + +static inline void thread_capture_fp_settings() +{ +#if TBB_INTERFACE_VERSION_MAJOR >= 12 + tbb::task_group_context *ctx = tbb::task::current_context(); +#else + tbb::task_group_context *ctx = tbb::task::self().group(); +#endif + ctx->capture_fp_settings(); +} static inline void parallel_for_cancel() { -- cgit v1.2.3