P4 to Git Change 1506949 by skeely@skeely_LC_linux on 2018/01/23 19:20:01

SWDEV-94389 - Handle interop buffer creation failure.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#56 edit


[ROCm/clr commit: c0f4b7895e]
This commit is contained in:
foreman
2018-01-23 19:29:17 -05:00
parent bec84b6503
commit 47c9539c88
@@ -1624,6 +1624,7 @@ cl_mem clCreateFromGLBufferAMD(Context& amdContext, cl_mem_flags flags, GLuint b
if (NULL == mem) {
LogPrintfError("Can't allocate memory size - 0x%08X bytes!", pBufferGL->getSize());
*not_null(errcode_ret) = CL_INVALID_GL_OBJECT;
return (cl_mem)0;
}
mem->processGLResource(device::Memory::GLDecompressResource);
}