The cuGraphicsEGLRegisterImage is returning an error value of 1 (CUDA_ERROR_INVALID_VALUE). Referring to the docs [1], such an error value is not listed. Anyone knows what it could mean here?
The values I’m sending look completely sane:
static void Process_EGLImage(const char *src, EGLImageKHR image)
{
CUgraphicsResource pResource = NULL;
status = cuGraphicsEGLRegisterImage(&pResource, image,
CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE);
if (status != CUDA_SUCCESS) {
printf("cuGraphicsEGLRegisterImage failed: %d, cuda process stop\n", status);
exit(1);
}
// :
}
The image parameter passed to the function was created by the NvEGLImageFromFd function and checked before being passed.