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:
authorStefan Werner <stefan.werner@tangent-animation.com>2020-09-01 15:47:34 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2020-09-01 22:00:55 +0300
commit009971ba7adc9603b90e9bf99b6b6d53eeae6c3a (patch)
tree0034d9a0a5703069816439564729a17740e0e727 /intern/cycles/device/device.h
parentf2d26409e83b1769c3a4baa2e5fa80e944f74678 (diff)
Cycles: Separate Embree device for each CPU Device.
Before, Cycles was using a shared Embree device across all instances. This could result in crashes when viewport rendering and material preview were using Cycles simultaneously. Fixes issue T80042 Maniphest Tasks: T80042 Differential Revision: https://developer.blender.org/D8772
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r--intern/cycles/device/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h
index 58472f645e0..ddf608aa430 100644
--- a/intern/cycles/device/device.h
+++ b/intern/cycles/device/device.h
@@ -371,6 +371,12 @@ class Device {
return NULL;
}
+ /* Device specific pointer for BVH creation. Currently only used by Embree. */
+ virtual void *bvh_device() const
+ {
+ return NULL;
+ }
+
/* load/compile kernels, must be called before adding tasks */
virtual bool load_kernels(const DeviceRequestedFeatures & /*requested_features*/)
{