[Bf-blender-cvs] [97c4c2689f] master: Cycles: Make it more obvious message which initialization failed

Sergey Sharybin noreply at git.blender.org
Wed Mar 8 13:57:38 CET 2017


Commit: 97c4c2689fda8d1da8c98612b10dd6212764f067
Author: Sergey Sharybin
Date:   Wed Mar 8 13:57:21 2017 +0100
Branches: master
https://developer.blender.org/rB97c4c2689fda8d1da8c98612b10dd6212764f067

Cycles: Make it more obvious message which initialization failed

===================================================================

M	intern/cycles/device/opencl/opencl_base.cpp

===================================================================

diff --git a/intern/cycles/device/opencl/opencl_base.cpp b/intern/cycles/device/opencl/opencl_base.cpp
index 04a7a4d5bd..c5f44f84e8 100644
--- a/intern/cycles/device/opencl/opencl_base.cpp
+++ b/intern/cycles/device/opencl/opencl_base.cpp
@@ -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;




More information about the Bf-blender-cvs mailing list