| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The caret is a special character, and needs to be quoted or escaped.
|
|
|
|
| |
Commit for generated file glsl_lexer.cpp follows this commit.
|
|
|
|
|
|
| |
Commit for generated file glsl_lexer.cpp follows this commit.
Reviewed-by: Ian Romanick <[email protected]>
|
|
|
|
|
| |
Only layout(location=#) is supported. Setting the index requires GLSL
1.30 and GL_ARB_blend_func_extended.
|
| |
|
|
|
|
|
|
|
|
| |
All pragmas are currently ignored. Also, the error messages when a
pragma is used incorrectly (i.e., '#pragma debug(on)' inside a
function) are crap, but I think this is sufficient for now.
Fixes piglit test cases pragma-0[1-8].(vert|frag).
|
| |
|
|
|
|
|
|
| |
MAT2 and MAT2X2, for example, are treated identically by the parser.
The language version based error checking (becuase mat2x2 is not
available in GLSL 1.10) is already done in the lexer.
|
|
|
|
|
|
|
|
| |
Without this, the parser will generate obtuse, useless error
diagnostics when reservered word that are not used by the grammar are
encountered in a shader.
Fixes bugzilla #29519.
|
| |
|
|
|
|
| |
Fixes glsl-floating-constant-120.
|
|
|
|
| |
Fixes glsl-mat-110.
|
|
|
|
| |
Fixes glsl-precision-110.
|
| |
|
|
|
|
|
|
|
|
| |
When faced with a constructor like 'ivec4(0, 2, 0, 0)', we would
manage to get a value of 2 instead of 0 for the first "0". Usually 2
characters past "0" would point at some junk and lex as 0 anyway.
Fixes glsl-octal and glsl-unused-varyings.
|
| |
|
|
|
|
|
| |
This prevents conflicts with defines elsewhere in Mesa and allows
including mtypes.h in the compiler.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_mesa_glsl_parse_state should be the parent for all temporary allocation
done while compiling a shader. glsl_shader should only be used as the
parent for the shader's final IR---the _result_ of compilation.
Since many IR instructions may be added or discarded during optimization
passes, IR should not ever be allocated to glsl_shader directly.
Done via sed -i s/talloc_parent(state)/state/g and s/talloc_parent(st)/st/g.
This also removes a ton of talloc_parent calls, which may help performance.
|
|
|