Alternative Upload geometry data in parallel to multiple GPUs using the "Multi-Device" #107552
|
@ -135,7 +135,7 @@ BVHLayoutMask OneapiDevice::get_bvh_layout_mask(uint requested_features) const
|
|||
}
|
||||
|
||||
# ifdef WITH_EMBREE_GPU
|
||||
void OneapiDevice::build_bvh(BVH *bvh, Progress &progress, bool refit)
|
||||
void OneapiDevice::build_bvh(BVH *bvh, DeviceScene *dscene, Progress &progress, bool refit)
|
||||
{
|
||||
if (embree_device && bvh->params.bvh_layout == BVH_LAYOUT_EMBREE) {
|
||||
BVHEmbree *const bvh_embree = static_cast<BVHEmbree *>(bvh);
|
||||
|
@ -150,7 +150,7 @@ void OneapiDevice::build_bvh(BVH *bvh, Progress &progress, bool refit)
|
|||
}
|
||||
}
|
||||
else {
|
||||
Device::build_bvh(bvh, progress, refit);
|
||||
Device::build_bvh(bvh, dscene, progress, refit);
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
|
|
@ -45,7 +45,7 @@ class OneapiDevice : public Device {
|
|||
|
||||
virtual ~OneapiDevice();
|
||||
# ifdef WITH_EMBREE_GPU
|
||||
void build_bvh(BVH *bvh, Progress &progress, bool refit) override;
|
||||
void build_bvh(BVH *bvh, DeviceScene *dscene, Progress &progress, bool refit) override;
|
||||
# endif
|
||||
bool check_peer_access(Device *peer_device) override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue