Fix: Command line Cycles render crash on multi-CUDA device
Since #118841 there are more cases where Cycles would check for the graphics interop support. This could lead to a crash when graphics interop functions are called without having active graphics context. This change makes it so there is no graphics interop calls when doing headless render. In order to achieve this the device creation is now aware of the headless mode. Pull Request: https://projects.blender.org/blender/blender/pulls/122844
This commit is contained in:
committed by
Sergey Sharybin
parent
73d4872f5a
commit
b803d7fabb
@@ -57,8 +57,8 @@ BVHLayoutMask HIPRTDevice::get_bvh_layout_mask(const uint /* kernel_features */)
|
||||
return BVH_LAYOUT_HIPRT;
|
||||
}
|
||||
|
||||
HIPRTDevice::HIPRTDevice(const DeviceInfo &info, Stats &stats, Profiler &profiler)
|
||||
: HIPDevice(info, stats, profiler),
|
||||
HIPRTDevice::HIPRTDevice(const DeviceInfo &info, Stats &stats, Profiler &profiler, bool headless)
|
||||
: HIPDevice(info, stats, profiler, headless),
|
||||
global_stack_buffer(this, "global_stack_buffer", MEM_DEVICE_ONLY),
|
||||
hiprt_context(NULL),
|
||||
scene(NULL),
|
||||
|
||||
Reference in New Issue
Block a user