Cycles: Make it more obvious message which initialization failed
This commit is contained in:
parent
05dfe9c318
commit
97c4c2689f
Notes:
blender-bot
2023-04-04 07:45:26 +02:00
Referenced by issue #49465, Cycles OpenCL throws CL_INVALID_BUILD_OPTIONS on AMD R9 280x on Linux
|
@ -114,12 +114,16 @@ OpenCLDeviceBase::OpenCLDeviceBase(DeviceInfo& info, Stats &stats, bool backgrou
|
|||
}
|
||||
|
||||
cqCommandQueue = clCreateCommandQueue(cxContext, cdDevice, 0, &ciErr);
|
||||
if(opencl_error(ciErr))
|
||||
if(opencl_error(ciErr)) {
|
||||
opencl_error("OpenCL: Error creating command queue");
|
||||
return;
|
||||
}
|
||||
|
||||
null_mem = (device_ptr)clCreateBuffer(cxContext, CL_MEM_READ_ONLY, 1, NULL, &ciErr);
|
||||
if(opencl_error(ciErr))
|
||||
if(opencl_error(ciErr)) {
|
||||
opencl_error("OpenCL: Error creating memory buffer for NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf(stderr, "Device init success\n");
|
||||
device_initialized = true;
|
||||
|
|
Loading…
Reference in New Issue