Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Intel GMA + Linux + GLSL = problem?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    6

    Intel GMA + Linux + GLSL = problem?

    Hi all,

    I have a Compaq V6103EA laptop with an Intel GMA 950 graphics card. Its running Ubuntu 8.10, with the "xserver-xorg-video-intel" driver package and the mesa3d implementation.

    I've been doing some OpenGL programming, and up until now, everything has worked very well. Currently I've been trying to learn a bit of GLSL, mainly by studying a source I got hold of. Here is a couple of issues have appeared:

    When I compiled and executed the the code (which was originally written for windows/VC++), first I got a segfault at a call to glCreateShaderObject. I spend a long time trying to figure out what was wrong with the call, until I found something regarding the tests of GLEW_ARB_fragment_shader and GLEW_ARB_vertex_shader respectively. I tried changing them to GL_ARB_... , and then I the test failed. What does all of this mean? Which is the right one? And do I have capabilities of using these or not?

    I not, as far as I know, this can have a couple of different reasons:

    1. my graphics card doesn't support it
    2. my graphics card driver doesn't support it
    3. my opengl implementation (mesa) doesn't support it.

    How can I tell which?

    I know from this table, that my graphics card supports vertex/fragment shaders, so 1. shouldn't be the problem. And according to the official mesa website, the 7.x version implements OpenGL 2.1 which includes GLSL.

    So how can I go about finding out what is causing my problem?
    I'll happily supply you with additional information.

    Thanks!

    I also forgot to show you this. It's the output of glxinfo. I think something seems strange with the OpenGL Version String (1.4 ?).

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,580

    Re: Intel GMA + Linux + GLSL = problem?

    GLEW_ comes from glew lib, it allows easier extension management.
    So it is most probable you had this step wrong.
    Install libglew-dev package, put back the original GLEW_ checks, then verify you do glewInit() correctly :
    http://www.opengl.org/wiki/Getting_s...and_extensions

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    6

    Re: Intel GMA + Linux + GLSL = problem?

    Quote Originally Posted by ZbuffeR
    GLEW_ comes from glew lib, it allows easier extension management.
    So it is most probable you had this step wrong.
    Install libglew-dev package, put back the original GLEW_ checks, then verify you do glewInit() correctly :
    http://www.opengl.org/wiki/Getting_s...and_extensions
    really sorry, but my op contained some major errors! please read it again now that I've corrected it (and note the pastebin link). And also, I am using GLEW already.

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,580

    Re: Intel GMA + Linux + GLSL = problem?

    To run GLSL you need the GL_ARB_shading_language_100 extension.
    It does not looks like it is exposed by your card+driver.
    I am not sure what are the best Intel drivers to use on Linux.
    Maybe someone more used to Intel can help ?

  5. #5
    Super Moderator Frequent Contributor Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    934

    Re: Intel GMA + Linux + GLSL = problem?

    Well, GLSL is not really yet. Some fragment shader ok, vertex shader crash.

    'Advanced' OpenGL programming (behond OpenGL 1.4) on Intel chipset a waist of time.

  6. #6
    Member Regular Contributor
    Join Date
    Apr 2007
    Posts
    269

    Re: Intel GMA + Linux + GLSL = problem?

    Regarding Mesa, they should not tell they support OpenGL 2.0 or OpenGL 2.1 because they support only part of the API. Mesa doesn't support a basic thing like linking of multiple shaders.

    ref: http://www.mesa3d.org/shading.html
    * Unsupported Features
    Linking of multiple shaders is not supported

  7. #7
    Junior Member Newbie
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    6

    Re: Intel GMA + Linux + GLSL = problem?

    ok, so what you mean is that the problem is due to mesa, not my graphics card or driver?

    perhaps this is a stupid question, but what alternatives do i have as an ubuntu user?

  8. #8
    Junior Member Newbie
    Join Date
    Mar 2006
    Location
    Barcelona, SPAIN
    Posts
    12

    Re: Intel GMA + Linux + GLSL = problem?

    GLSL in Mesa is actually not there yet, even though your Intel GPU exposes SM 3.0, you'll not be able to use GLSL then. The DRI driver you're using might give you access to the GL_ARB_fragment_program extension so that you can write pixel shaders using a set of low level assembly instructions. Seeing that in D3D10 assembly shaders have been removed, that really sounds a bit rough nowadays, but it's still currently the only solution to ship software that works almost everywhere on Linux.

  9. #9
    Junior Member Regular Contributor
    Join Date
    Jan 2005
    Posts
    182

    Re: Intel GMA + Linux + GLSL = problem?

    Quote Originally Posted by Kalle
    Hi all,
    1. my graphics card doesn't support it
    2. my graphics card driver doesn't support it
    3. my opengl implementation (mesa) doesn't support it.
    glxinfo. It will tell you GL version and extensions Please post the output here.
    However AFAIK most Intel cards before the GM965 don't support GLSL.

    Philipp

  10. #10
    Junior Member Regular Contributor
    Join Date
    Jan 2005
    Posts
    182

    Re: Intel GMA + Linux + GLSL = problem?

    Quote Originally Posted by overlay
    Regarding Mesa, they should not tell they support OpenGL 2.0 or OpenGL 2.1 because they support only part of the API. Mesa doesn't support a basic thing like linking of multiple shaders.

    ref: http://www.mesa3d.org/shading.html
    * Unsupported Features
    Linking of multiple shaders is not supported
    That document is nearly two years old. It does not represent the current state of Mesa. I'm too lazy to completly check the current situation with Mesa, but this is the first example I found:

    The document you linked to lists, among others:
    * The inverse trig functions asin(), acos(), and atan() are not implemented
    Three month after that document was written Mesa 7.0 was released, which does support these functions. From the release notes:
    Implemented GLSL asin(), acos(), atan() functions.

    Philipp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •