From 47c9539c882992956a00c756696054e49d91bc4b Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 23 Jan 2018 19:29:17 -0500
Subject: [PATCH] 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: c0f4b7895eca23b2888e8cd4ff4135a578e30255]
---
projects/clr/opencl/api/opencl/amdocl/cl_gl.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_gl.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_gl.cpp
index 54f3608656..8a367cbe4f 100644
--- a/projects/clr/opencl/api/opencl/amdocl/cl_gl.cpp
+++ b/projects/clr/opencl/api/opencl/amdocl/cl_gl.cpp
@@ -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);
}