Reading over the Beignet mailing lists it appears that it will be some time before OpenCL - OpenGL interop is enabled on Linux systems. A suitable workaround for this platform would be to:
Get a pointer to the OpenGL texturebuffer
Copy the image to RAM
Copy the image back to the GPU, but to an OpenCL buffer.
We will need to implement some new functionality in CLibOI::SetImageSource, perhaps catching the else // mImage_gl == NULL block to notify CRoutine_ImageToBuffer that the buffer is pure OpenGL without any interop enabled.
Reading over the Beignet mailing lists it appears that it will be some time before OpenCL - OpenGL interop is enabled on Linux systems. A suitable workaround for this platform would be to:
We will need to implement some new functionality in
CLibOI::SetImageSource
, perhaps catching theelse // mImage_gl == NULL
block to notifyCRoutine_ImageToBuffer
that the buffer is pure OpenGL without any interop enabled.