Re: [Mesa-dev] fixing GLSL NEW_IDENTIFIER error messages

2015-08-05 Thread Ilia Mirkin
Not sure how much help this is, but (gdb) p yyvsa[5] $20 = {n = 7289280, real = 1.02144569e-38, dreal = 3.6013828309176816e-317, identifier = 0x6f39c0 "sampler2DMS", type_qualifier = { But how do you figure out that it's at 5? Don't know. yyval appears to be yyvsa[4], so maybe *(&yyval+1)? Nope..

[Mesa-dev] fixing GLSL NEW_IDENTIFIER error messages

2015-08-05 Thread Brian Paul
If a shader contains a declaration such as: uniform sampler2DMS tex; but it doesn't specify "#extension GL_ARB_texture_multisample: enable" we get a GLSL error saying something like "0:2(21): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'" There are other cases where the erro