Fix crash from attempting ES precision propagation through a constant folded built-in function call when the expression tree has unknown precisions.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24267 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-12-02 16:38:53 +00:00
parent 98434bed00
commit 78fe3ace85
3 changed files with 34 additions and 13 deletions

View File

@@ -33,8 +33,8 @@ ERROR: 0:122: '=' : can't use with samplers or structs containing samplers
ERROR: 0:123: '==' : can't use with samplers or structs containing samplers
ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:132: 'imageBuffer' : Reserved word.
ERROR: 0:132: '' : syntax error
ERROR: 0:138: 'imageBuffer' : Reserved word.
ERROR: 0:138: '' : syntax error
ERROR: 36 compilation errors. No code generated.
@@ -280,6 +280,18 @@ ERROR: node is still EOpNull!
0:129 -9 (const int)
0:129 8 (const int)
0:129 'c1D' (smooth in lowp float)
0:132 Function Definition: foo324( (void)
0:132 Function Parameters:
0:134 Sequence
0:134 Sequence
0:134 move second child to first child (lowp float)
0:134 'p' (lowp float)
0:134 Constant:
0:134 210.712306
0:135 add second child into first child (lowp float)
0:135 'p' (lowp float)
0:135 Constant:
0:135 0.389418
0:? Linker Objects
0:? 's2D' (uniform lowp sampler2D)
0:? 's3D' (uniform lowp sampler3D)