Forums - invariant gl_Position bug on adreno 420

2 posts / 0 new
Last post
invariant gl_Position bug on adreno 420
Join Date: 6 Nov 11
Posts: 2
Posted: Thu, 2017-06-29 06:46
I don't know if this is the best place to report bugs, but here it is:
 
 
Even the simplest vertex/fragment shader pairs fails to link when invariant specifier is used for gl_Position:
 
Vertex shader:
invariant gl_Position;
void main(void)
{
   gl_Position = vec4(0.0,0.0,0.0,1.0);
}
 
Fragment Shader:
void main(void)
{
}
 
It gives the following strange error: "built-in variables invariance mismatch."
 
If I remove the invariant or use #pragma STDGL invariant(all) the shaders compile and the program links fine. 
 
/*-->*/

GPU: Adreno 420

Driver version: 'OpenGL ES [email protected] (GIT@I4ea93f0e25)
 

 

 

 

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Fri, 2017-06-30 13:39

The invariance qualifier is working in Adreno 5x drivers, but you are correct that it is not working in Adreno 4x drivers.  We are currently invesigating the issue.  Thanks for reporting it.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.