OpenGLES and OpenCL Together

cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGLES and OpenCL Together

Jump to solution
713 Views
bcompter
Contributor II

I'm working with an imx6 chip and I have been able to compile and run both OpenGLES and OpenCL demonstration programs on my target device without difficulty.

My area of interest is in image processing for a display. I would like to be able to perform pre-processing using OpenCL and then pass that data into OpenGLES textures to be displayed on the screen.  Each works fine by itself but when I combine the applications my screen goes blank.

I initialize OpenGL first and them OpenCL.  I suspect that when I initialize OpenCL I am taking over resources from OpenGLES.  Is it possible to run these two on the same system within the same application?  It seems to me that this should be possible.

Thanks,

Brian

Labels (1)
Tags (2)
1 Solution
94 Views
sebastient
Contributor V

As far as I know the only option for direct CL/GL interoperability such as texture sharing is for the library/driver to support cl_khr_gl_sharing which the Vivante SDK currently does not support.  There is also no zero copy support in their OpenCL implementation so I'm afraid your best bet is probably to implement your filters in GLSL for the time being.

View solution in original post

0 Kudos
1 Reply
95 Views
sebastient
Contributor V

As far as I know the only option for direct CL/GL interoperability such as texture sharing is for the library/driver to support cl_khr_gl_sharing which the Vivante SDK currently does not support.  There is also no zero copy support in their OpenCL implementation so I'm afraid your best bet is probably to implement your filters in GLSL for the time being.

View solution in original post

0 Kudos