Alternative Upload geometry data in parallel to multiple GPUs using the "Multi-Device" #107552
|
@ -244,7 +244,7 @@ class MultiDevice : public Device {
|
|||
|
||||
if (!bvh_multi->sub_bvhs[id]) {
|
||||
BVHParams params = bvh_multi->params;
|
||||
params.bvh_layout = get_bvh_layout(sub->device, bvh_multi->params.bvh_layout);
|
||||
params.bvh_layout = get_bvh_layout(sub->device.get(), bvh_multi->params.bvh_layout);
|
||||
|
||||
/* Skip building a bottom level acceleration structure for non-instanced geometry on
|
||||
* Embree (since they are put into the top level directly, see bvh_embree.cpp) */
|
||||
|
|
|
@ -174,7 +174,7 @@ void GeometryManager::device_update_sub_bvh(Device *device,
|
|||
// Yes, so setup the device specific sub_bvh in the multi-bvh.
|
||||
BVHParams bparams = bvh->params;
|
||||
// Set the layout to the correct one for the device
|
||||
bparams.bvh_layout = device->get_bvh(device, bvh->params.bvh_layout);
|
||||
bparams.bvh_layout = device->get_bvh_layout(device, bvh->params.bvh_layout);
|
||||
if (sub_bvh != NULL) {
|
||||
delete sub_bvh;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue