7 Replies Latest reply on Jun 19, 2014 1:54 AM by pinform

    CL-GL Interop: CL_INVALID_IMAGE_FORMAT_DESCRIPTOR with recent APP SDK or fglrx driver

    gagcl

      Hi!

       

      The example I mentioned in http://devgurus.amd.com/thread/159639: https://code.google.com/p/opencl-book-samples/source/browse/trunk/src/Chapter_10/GLinterop/GLinterop.cpp doesn't work anymore since APP SDK 2.8 and fglrx driver 13.2~beta3 under Debian GNU/Linux on Intel Core 2 Duo T7250 and GM45 integrated video. (The last working are APP SDK 2.7 and fglrx 13.1)

       

      The call to

      *p_cl_tex_mem = clCreateFromGLTexture(context, CL_MEM_READ_WRITE, GL_TEXTURE_RECTANGLE_ARB, 0, texture, &errNum );

      fails with

      CL_INVALID_IMAGE_FORMAT_DESCRIPTOR

       

      According to http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateFromGLTexture.html:

      Using GL_TEXTURE_RECTANGLE for texture_target requires OpenGL 3.1. Alternatively, GL_TEXTURE_RECTANGLE_ARB may be specified if the OpenGL extension GL_ARB_texture_rectangle is supported.

      Mesa infos:

      $ glxinfo | grep OpenGL
      OpenGL vendor string: Tungsten Graphics, Inc
      OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset
      OpenGL version string: 2.1 Mesa 8.0.5
      OpenGL shading language version string: 1.20
      OpenGL extensions:
      $ glxinfo | grep GL_ARB_texture_rectangle
          GL_ARB_texture_rectangle, GL_EXT_packed_float, GL_EXT_pixel_buffer_object,
      $ glxinfo | grep 'GLX ver'
      GLX version: 1.4

       

      Does AMD already aware of this regression or I'm missing something?

       

      Thanks.