CL / GL interop problem with clCreateFromGLRenderbuffer

CL / GL interop problem with clCreateFromGLRenderbuffer

 

I am experiencing a problem with sharing a buffer between openCL and openGL.

I have a simple OpenGL application that renders into an offscreen FBO.  I then have openCL code that captures the FBO contents using clCreateFromGLRenderbuffer and then post-processes the captured image.  When I call clCreateFromGLRenderbuffer, the contents of the FBO get corrupted.  I have verified this by using glBlitFramebuffer() to view the FBO contents.

After experiencing this problem, I wanted to determine whether or not this was a bug in my code.  So, I ported the code to use the AMD opencl sdk (running on a different machine, with an AMD GPU), and it  works fine there.

-Alec

 

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Alec,

May I ask for a reproducer for this issue? And what are expected and actual(corrupted) image data?

Thanks,
Yuri

Hi Yuri,

I sent you a message with the code that experiences the problem.  Let me know if you have any problems reproducing the issue.

-Alec

 

Thanks Alec,

I have reproduced the problem and I have created a ticket for it.

Yuri

 

Thanks Yuri.  Any suggestions on a work-around?

-Alec

 

Leave a Comment

Please sign in to add a comment. Not a member? Join today