glshim

Discussion in 'General Discussions' started by lunixbochs, Jan 11, 2013.

  1. dimag0g

    dimag0g Very Active Member

    Joined:
    Jan 12, 2011
    Messages:
    607
    Location:
    Strasbourg, France
    I'll try to debug this on my side when I have the time. Fortunately, the crash happens at the very end, so 3D games can still be played.

    Quick update:

    - setting a breakpoint to XCloseDisplay reveals that it's called twice with two different pointers, and crashes the second time.

    - running with LIBGL_STACKTRACE=1 shows the following:
    Stacktrace: 2
    /usr/lib/libGL.so.1(+0x54500)[0xb6e1a500]
    /lib/arm-linux-gnueabihf/libc.so.6(+0x26ae0)[0xb6c88ae0]​

    Do you have any advice on how to find this place +0x54500 in the source code? I've tried to do break *0xXXXXXXXX+0x54500 in gdb (XXXXXXXX being the start address of libGL as reported by info sharedlibrary), but that breakpoint seems to be never hit.
     
    Last edited: Jun 16, 2016
  2. JonnyH

    JonnyH Member

    Joined:
    Aug 9, 2014
    Messages:
    85
    Location:
    (No longer) PowerVR
    That's normal if using memory set by an ioctl that valgrind doesn't know about, which is extremely likely when using the mali gpu driver. Valgrind can't trace into the kernel, so it's probably been correctly initialized there, but as valgrind doesn't know what the mali-private ioctls do it spews warnings like this. So you can safely ignore any 'using uninitialized memory' warnings in the gpu driver, and any memory allocated from the gpu drivers (mapped buffers etc.)
     
  3. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,849
    Is there any chance this will ever support OpenGL 2?
     
    ingoreis likes this.
  4. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,179
    Location:
    France, near Lyon
    Maybe one day, you never know...
     
    ingoreis likes this.
  5. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,069
    And OpenGL 3 ?
     
    ingoreis likes this.
  6. ingoreis

    ingoreis Advanced Member

    Joined:
    Mar 7, 2012
    Messages:
    3,030
    Location:
    49.491276,8.423518
    I like this Positive Thinking :D

    OpenGL 3 exist realy?
    Never heard of it
     
  7. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,179
    Location:
    France, near Lyon
    There is OpenGL 4.5.

    Jokes asside, OpenGL 3 has a different syntax for Shaders, and will make the translation to GLES 2 more difficult in a general case, and probably impossible in some cases. Anyway, the next millestone is OpenGL 2.x, not 3.x.
     
    _jr_ likes this.
  8. legolas2106

    legolas2106 Newbie

    Joined:
    Dec 17, 2016
    Messages:
    1
    Do not know if I wait until it is not :D

    Continue to hope so:cool:
     
  9. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,179
    Location:
    France, near Lyon
    My current roadmap for gl4es is as follow:
    v1.0 (almost there) => internal tracking of all fixed pipeline function (like matrix, light, material..), and support most GL1.5 function using GLES 1.1
    v2.0 => Support most GL1.5 function using GLES2 (using a GLSL fixed pipeline emulator). GLES1.1 still available. This version will be probably usable on WebGL with emscriptem.
    v3.0 => Add support to GL2.1 function on the GLES2 backend (using a GLSL translator).

    I'm working slowly toward v1.0, getting ready for v2.0.
     
  10. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,069
    You should change the source license to proprietary and ask money for it.
     
  11. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,179
    Location:
    France, near Lyon
    [​IMG]
     
  12. ElPoco

    ElPoco Very Active Member

    Joined:
    Feb 16, 2012
    Messages:
    634
    Location:
    Paris, France
    So, when should we expect the Pandora port of Doom 4? ;)
     

Share This Page

Loading...