Sorry, you need to enable JavaScript to visit this website.

OpenGL Shader Language supported

4 posts / 0 new
Francis Giraldeau's picture
Starter
Francis Giraldeau

Jun 13, 2013 - 11:21am

  • 'glxinfo' reports the available GLSL version.

    Mesa 9.0 supports GLSL 1.30 on Gen6+.

    On Mesa 9.1 and Gen6+, you get a OpenGL 3.0 context by default which supports GLSL 1.30.  You can also explicitly ask for a GL 3.1 context (which isn't backwards compatible) and that will give you GLSL 1.40.

    What mesa version are you using?

    What does glxinfo say?

     

    Jun 14, 2013 - 07:00am
  • Here is the error I get when trying to lunch memview, a Qt app that uses a shader:

    [francis@blob memview]$ ./memview sleep 100
    valgrind: failed to start tool 'memview' for platform 'amd64-linux': No such file or directory
    QGLShader::compile(Fragment): 0:1(10): error: GLSL 1.30 is not supported. Supported versions are: 1.00 ES, 1.10, and 1.20
    0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
    
    The error does not occur at C++ compile time, but at runtime, when the actual shader script is compiled for the GPU. 
     
    The header of the file shader.frag is this
    #version 130
    #extension GL_EXT_gpu_shader4 : enable
    
    The hardware PCI ID is the following:
    00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02)
    
    glxinfo gives this (Ubuntu 13.04 raring):
    name of display: :0
    display: :0  screen: 0
    direct rendering: Yes
    server glx vendor string: SGI
    server glx version string: 1.4
    
    I just verified, and the extension GL_EXT_gpu_shader4 seems not listed by glxinfo, so the problem may not be the GLGS version supported, but the use of this special extension... Is that right?
    Thanks!
    Jul 16, 2013 - 08:20am
  • And the mesa version is libgl1-mesa-glx:amd64 9.1.1-0ubuntu3

    Thanks!

     
    Jul 16, 2013 - 08:22am
  • Ops, sorry about my mistake, Unfortunately, our driver currently only supports GLSL 1.20 on your platform (Ironlake), and doesn't support GL_EXT_gpu_shader4 on any platform.  We currently only support 1.30 on Sandybridge and later.

    Chris Forbes is working on GLSL 1.30 for Ironlake, and is also interested in implementing GL_EXT_gpu_shader4, so this may be fixed in the future, but there's no time table for that.

    Thanks,

    Rodrigo.

    Jul 16, 2013 - 12:37pm
  • Topic locked