3 Replies Latest reply on Sep 20, 2013 2:49 AM by limdor

    Possible GLSL 4.2 compiler bug


      Dear AMD team,


      I'm a OpenGL developer and I've detected a possible compiler error that not corresponds to the GLSL standard.

      Here I copy the information of glew:

      Log: GL_VENDOR: ATI Technologies Inc.

      Log: GL_RENDERER: AMD Radeon HD 6900 Series

      Log: GL_VERSION: 4.2.12002 Compatibility Profile Context



      Here the shader that I try to compile:

      #version 420


      layout(r32ui) uniform volatile coherent uimage2D countersImage;


      void main()


           unsigned int currentValue = imageAtomicAdd(countersImage, ivec2(gl_FragCoord.x, gl_FragCoord.y), 1);




      And here the error that the compiler give me back:

      Error: shaders/ProjectionGL4.frag: Fragment shader failed to compile with the following errors:

      ERROR: 0:3: error(#392) At most one: memory qualifier is allowed

      ERROR: error(#273) 1 compilation errors.  No code generated


      I will like to confirm if multiple memory qualifiers are supported in driver 13.1. If I'm not wrong, the standard says that multiple memory qualifiers should be possible.

      I'm developing under Windows 7 x64

      My graphic card is: HD6950 2G GDDR5


      Thanks Xavi