piglit/tests/glslparsertest/shaders/CorrectConstruct.vert: struct s2 { float f; struct s3 { int i; } s3Inst; } s2Inst = s2(1.0, s3(1)); gets Error: s3: undeclared function name Similar error happens on CorrectConstFolding1.vert and CorrectConstFolding2.vert. I can't find similar example in GLSL spec, but http://staffwww.itn.liu.se/~jimjo/courses/TNCG14-2009/documents/GLSLfeatures-110.pdf section 1.3 has this valid example (very similar to piglit cases): struct light { vec4 position; struct tLightColor { vec3 color; float intensity; } lightColor; } light1 = light(v, tLightColor(color, 0.9));
Fixed with glsl2 merge.
verified with mesa master d442a01ac14382d83cdaac87d2832315ceb3e963.
bug/show.html.tmpl processed on Mar 20, 2017 at 09:46:32. (provided by the Example extension).