AMD GL_EXT_gpu_shader4 extension












2















I have stumbled into a basic OpenGL driver bug and I'm not sure where to report them.



Here's how the driver identifies itself and how we create the RC:



OpenGL vendor: X.Org
OpenGL renderer: AMD CARRIZO (DRM 3.26.0, 4.18.0-13-generic, LLVM 7.0.0)
OpenGL version: 4.4 (Compatibility Profile) Mesa 18.2.2
v - using GL version 2.0 (core)


It has ARB_gpu_shader5 in its extension list but not EXT_gpu_shader4.



This shader fails to compile



#version 120
#extension GL_EXT_gpu_shader4: enable
...
uniform usampler2D u_stencilTexture;


With this error:



interaction VFWARNING:CompileShader(glprogs/interaction.fs): FAILED
0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
0:27(20): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'


So my question is: how do I get the version 120 shader with the usampler extension to build on seemingly Opengl-4.4 capable GPU/driver?



Preferably in a cross-platform, cross-vendor way.



Please note that the same shader compiles just fine on a wide range of devices/drivers on both Linux and Windows.










share|improve this question



























    2















    I have stumbled into a basic OpenGL driver bug and I'm not sure where to report them.



    Here's how the driver identifies itself and how we create the RC:



    OpenGL vendor: X.Org
    OpenGL renderer: AMD CARRIZO (DRM 3.26.0, 4.18.0-13-generic, LLVM 7.0.0)
    OpenGL version: 4.4 (Compatibility Profile) Mesa 18.2.2
    v - using GL version 2.0 (core)


    It has ARB_gpu_shader5 in its extension list but not EXT_gpu_shader4.



    This shader fails to compile



    #version 120
    #extension GL_EXT_gpu_shader4: enable
    ...
    uniform usampler2D u_stencilTexture;


    With this error:



    interaction VFWARNING:CompileShader(glprogs/interaction.fs): FAILED
    0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
    0:27(20): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'


    So my question is: how do I get the version 120 shader with the usampler extension to build on seemingly Opengl-4.4 capable GPU/driver?



    Preferably in a cross-platform, cross-vendor way.



    Please note that the same shader compiles just fine on a wide range of devices/drivers on both Linux and Windows.










    share|improve this question

























      2












      2








      2








      I have stumbled into a basic OpenGL driver bug and I'm not sure where to report them.



      Here's how the driver identifies itself and how we create the RC:



      OpenGL vendor: X.Org
      OpenGL renderer: AMD CARRIZO (DRM 3.26.0, 4.18.0-13-generic, LLVM 7.0.0)
      OpenGL version: 4.4 (Compatibility Profile) Mesa 18.2.2
      v - using GL version 2.0 (core)


      It has ARB_gpu_shader5 in its extension list but not EXT_gpu_shader4.



      This shader fails to compile



      #version 120
      #extension GL_EXT_gpu_shader4: enable
      ...
      uniform usampler2D u_stencilTexture;


      With this error:



      interaction VFWARNING:CompileShader(glprogs/interaction.fs): FAILED
      0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
      0:27(20): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'


      So my question is: how do I get the version 120 shader with the usampler extension to build on seemingly Opengl-4.4 capable GPU/driver?



      Preferably in a cross-platform, cross-vendor way.



      Please note that the same shader compiles just fine on a wide range of devices/drivers on both Linux and Windows.










      share|improve this question














      I have stumbled into a basic OpenGL driver bug and I'm not sure where to report them.



      Here's how the driver identifies itself and how we create the RC:



      OpenGL vendor: X.Org
      OpenGL renderer: AMD CARRIZO (DRM 3.26.0, 4.18.0-13-generic, LLVM 7.0.0)
      OpenGL version: 4.4 (Compatibility Profile) Mesa 18.2.2
      v - using GL version 2.0 (core)


      It has ARB_gpu_shader5 in its extension list but not EXT_gpu_shader4.



      This shader fails to compile



      #version 120
      #extension GL_EXT_gpu_shader4: enable
      ...
      uniform usampler2D u_stencilTexture;


      With this error:



      interaction VFWARNING:CompileShader(glprogs/interaction.fs): FAILED
      0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
      0:27(20): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'


      So my question is: how do I get the version 120 shader with the usampler extension to build on seemingly Opengl-4.4 capable GPU/driver?



      Preferably in a cross-platform, cross-vendor way.



      Please note that the same shader compiles just fine on a wide range of devices/drivers on both Linux and Windows.







      opengl amdgpu glsl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 3 at 11:18









      Anton DuzenkoAnton Duzenko

      1111




      1111






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          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%2faskubuntu.com%2fquestions%2f1115216%2famd-gl-ext-gpu-shader4-extension%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115216%2famd-gl-ext-gpu-shader4-extension%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

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀