GLSL version doesn't match OpenGL version











up vote
0
down vote

favorite












I'm porting an application with OSG Earth from windows to Linux. The OS and softwares are basically the same (Qt 5.9, Linux kernel 3.18.24, Mesa 18.2.3). However, after override export MESA_GL_VERSION_OVERRIDE="4.5" OpenGL behaves very differently on different hardware:



On a Intel i7-4770T:



server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.3
OpenGL core profile shading language version string: 3.30
OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.2.3
OpenGL shading language version string: 3.30


You can see shading language only 3.3 which is below my requirement. On a i7 6700 it's 4.5.



This is weird due to:




  • GLSL should match OpenGL version

  • Intel specs said i7-4770T should support at least OpenGL 4.3.


Sadly "MESA_GLSL_VERSION_OVERRIDE" doesn't work. My app still runs with anomalies like random black or violet on the GUI.



Mesa is built on libdrm-2.4.96 and with this configuration.



/autogen.sh --enable-debug --with-egl-platforms=x11,drm --with-dri-drivers=i915,i965,nouveau --with-gallium-drivers=i915,nouveau --disable-gallium-llvm --prefix=/usr


Please help me to fix this problem










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm porting an application with OSG Earth from windows to Linux. The OS and softwares are basically the same (Qt 5.9, Linux kernel 3.18.24, Mesa 18.2.3). However, after override export MESA_GL_VERSION_OVERRIDE="4.5" OpenGL behaves very differently on different hardware:



    On a Intel i7-4770T:



    server glx version string: 1.4
    client glx version string: 1.4
    GLX version: 1.4
    OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.3
    OpenGL core profile shading language version string: 3.30
    OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.2.3
    OpenGL shading language version string: 3.30


    You can see shading language only 3.3 which is below my requirement. On a i7 6700 it's 4.5.



    This is weird due to:




    • GLSL should match OpenGL version

    • Intel specs said i7-4770T should support at least OpenGL 4.3.


    Sadly "MESA_GLSL_VERSION_OVERRIDE" doesn't work. My app still runs with anomalies like random black or violet on the GUI.



    Mesa is built on libdrm-2.4.96 and with this configuration.



    /autogen.sh --enable-debug --with-egl-platforms=x11,drm --with-dri-drivers=i915,i965,nouveau --with-gallium-drivers=i915,nouveau --disable-gallium-llvm --prefix=/usr


    Please help me to fix this problem










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm porting an application with OSG Earth from windows to Linux. The OS and softwares are basically the same (Qt 5.9, Linux kernel 3.18.24, Mesa 18.2.3). However, after override export MESA_GL_VERSION_OVERRIDE="4.5" OpenGL behaves very differently on different hardware:



      On a Intel i7-4770T:



      server glx version string: 1.4
      client glx version string: 1.4
      GLX version: 1.4
      OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.3
      OpenGL core profile shading language version string: 3.30
      OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.2.3
      OpenGL shading language version string: 3.30


      You can see shading language only 3.3 which is below my requirement. On a i7 6700 it's 4.5.



      This is weird due to:




      • GLSL should match OpenGL version

      • Intel specs said i7-4770T should support at least OpenGL 4.3.


      Sadly "MESA_GLSL_VERSION_OVERRIDE" doesn't work. My app still runs with anomalies like random black or violet on the GUI.



      Mesa is built on libdrm-2.4.96 and with this configuration.



      /autogen.sh --enable-debug --with-egl-platforms=x11,drm --with-dri-drivers=i915,i965,nouveau --with-gallium-drivers=i915,nouveau --disable-gallium-llvm --prefix=/usr


      Please help me to fix this problem










      share|improve this question













      I'm porting an application with OSG Earth from windows to Linux. The OS and softwares are basically the same (Qt 5.9, Linux kernel 3.18.24, Mesa 18.2.3). However, after override export MESA_GL_VERSION_OVERRIDE="4.5" OpenGL behaves very differently on different hardware:



      On a Intel i7-4770T:



      server glx version string: 1.4
      client glx version string: 1.4
      GLX version: 1.4
      OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.3
      OpenGL core profile shading language version string: 3.30
      OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.2.3
      OpenGL shading language version string: 3.30


      You can see shading language only 3.3 which is below my requirement. On a i7 6700 it's 4.5.



      This is weird due to:




      • GLSL should match OpenGL version

      • Intel specs said i7-4770T should support at least OpenGL 4.3.


      Sadly "MESA_GLSL_VERSION_OVERRIDE" doesn't work. My app still runs with anomalies like random black or violet on the GUI.



      Mesa is built on libdrm-2.4.96 and with this configuration.



      /autogen.sh --enable-debug --with-egl-platforms=x11,drm --with-dri-drivers=i915,i965,nouveau --with-gallium-drivers=i915,nouveau --disable-gallium-llvm --prefix=/usr


      Please help me to fix this problem







      linux drivers opengl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      Tiana987642

      93416




      93416






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I found an kernel upgrade fix the problem. For me it's 4.8.16. Another trick is change your main display if you have multi monitors setup. It drives me mad for a few days.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375165%2fglsl-version-doesnt-match-opengl-version%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I found an kernel upgrade fix the problem. For me it's 4.8.16. Another trick is change your main display if you have multi monitors setup. It drives me mad for a few days.






            share|improve this answer

























              up vote
              0
              down vote













              I found an kernel upgrade fix the problem. For me it's 4.8.16. Another trick is change your main display if you have multi monitors setup. It drives me mad for a few days.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I found an kernel upgrade fix the problem. For me it's 4.8.16. Another trick is change your main display if you have multi monitors setup. It drives me mad for a few days.






                share|improve this answer












                I found an kernel upgrade fix the problem. For me it's 4.8.16. Another trick is change your main display if you have multi monitors setup. It drives me mad for a few days.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                Tiana987642

                93416




                93416






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375165%2fglsl-version-doesnt-match-opengl-version%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...