3 Replies Latest reply on Jan 21, 2016 8:44 AM by Bryce@Intel

    GLSL compiler rejects valid input program

    AllyDonaldson

      I find that the following (valid) piece of GLSL is rejected by then Intel GLSL front-end:

       

      #version 150

       

      void foo() {

          vec4 temp = -(mat3x4(0.0)*vec3(0.0));

      }

       

      I get this error:

       

      ERROR: 0:4: '' : unary '-' not allowed for provided data type

       

      Interestingly, if I rewrite the code like this:

       

      #version 150

       

      void foo() {

          vec4 temp = (mat3x4(0.0)*vec3(0.0));

          temp = -temp;

      }

       

      then it is accepted by the front end.

       

      I have an Intel(R) HD Graphics 520 GPU, and I am running driver version 20.19.15.4326 (18/11/2015).

       

      Can others reproduce this, and do you agree that it is a compiler bug?