bkloppenborg / liboi

OpenCL Interferometry Library
https://github.com/bkloppenborg/liboi/wiki
GNU Lesser General Public License v3.0
5 stars 6 forks source link

Support Intel HD Graphics / Intel Iris Graphics on Linux platforms #47

Open bkloppenborg opened 9 years ago

bkloppenborg commented 9 years ago

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:

  1. Get a pointer to the OpenGL texturebuffer
  2. Copy the image to RAM
  3. 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.