This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

clCreateFromEGLImageKHR

why I use clCreateFromEGLImageKHR return -30?

EGL image is create success

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
glCtx->param.inImage = eglCreateImageKHR(glCtx->Display, glCtx->context, EGL_NATIVE_BUFFER_ANDROID, (EGLClientBuffer)glCtx->param.input, 0);
glCtx->param.outImage = eglCreateImageKHR(glCtx->Display, glCtx->context, EGL_NATIVE_BUFFER_ANDROID, (EGLClientBuffer)glCtx->param.output, 0);
if ((glCtx->param.inImage == EGL_NO_IMAGE_KHR) || (glCtx->param.outImage == EGL_NO_IMAGE_KHR)) {
LOGD("eglCreateImageKHR err \n");
}
cl_int ret;
clArg->memory[0].mem = clCreateFromEGLImageKHR(clArg->ctx, (CLeglDisplayKHR)glCtx->Display, ((CLeglImageKHR)glCtx->param.inImage), CL_MEM_READ_ONLY, 0, &ret);//(CLeglImageKHR)glCtx->param.inImage (CLeglDisplayKHR)glCtx->Display
if ((clArg->memory[0].mem == NULL) || (ret != CL_SUCCESS)) {
LOGD("clCreateFromEGLImageKHR err errNum is %d \n", ret);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0