Kenneth Graunke
74704e80c6
glcpp: Print to the main compiler's infolog, not stdout.
2010-06-21 12:41:05 -07:00
Kenneth Graunke
4a2bbdacfc
Use yy_scan_string and stop caring about shader->SourceLen.
...
We had to call strlen on the preprocessed source, which seemed a bit
pointless; also, we updated shader->SourceLen but not shader->Source,
which was even more confusing. Just leave both untouched.
2010-06-21 12:41:05 -07:00
Kenneth Graunke
04ba86a536
Make the main compiler call the preprocessor.
...
By using a single function, the main compiler doesn't need to include
glcpp.h, which currently has a lot of details about the preprocessor
internals. In particular, this prevents the two yacc grammars from
seeing each other, which would be rather messy to sort out.
2010-06-21 11:31:54 -07:00
Kenneth Graunke
0d80f71867
Add EXT_texture_array support.
2010-06-09 11:14:58 -07:00
Ian Romanick
304ea90233
Convert ast_node use of simple_node to exec_list and exec_node
2010-05-10 11:17:53 -07:00
Eric Anholt
3623df68fa
Store warnings and errors in a parser state infolog.
...
Cleans up compile warning about unused state in _mesa_glsl_warning. We
would want infolog handling roughly like this anyway.
2010-05-03 11:40:26 -07:00
Ian Romanick
a2c6df5566
Track and print user defined structure types
2010-04-28 18:22:54 -07:00
Kenneth Graunke
34350be2cd
Add stub ir_reader and new 'i' mode for reading IR rather than GLSL.
2010-04-28 18:14:53 -07:00
Ian Romanick
0c82465395
Treat texture rectangles as an extension that is enabled be default
2010-04-07 17:13:44 -07:00
Ian Romanick
c77b257094
Add support for GL_ARB_draw_buffers extension
2010-04-07 16:59:46 -07:00
Ian Romanick
56b8b21410
Add _mesa_glsl_warning to emit warnings to the shader log
2010-04-07 16:49:25 -07:00
Ian Romanick
e701761cc8
Begin processing #extension directive
...
Nowhere near complete. It just parses correctly at this point.
2010-04-07 16:49:25 -07:00
Ian Romanick
5bfe30a02b
Add utility function to get the name of a shader target
2010-04-07 16:49:25 -07:00
Ian Romanick
e9d0f265aa
Begin tracking the nesting of loops and switch-statements
2010-04-07 11:42:36 -07:00
Ian Romanick
5185a5f7d5
Add generate_temporary to generate an anonymous temporary
2010-03-29 15:20:42 -07:00
Ian Romanick
41ec6a47ab
Track the function that is currently being defined
...
Later this will allow type checking for return statements.
2010-03-19 17:08:05 -07:00
Ian Romanick
8bde4cec6b
Use glsl_symbol_table instead of using _mesa_symbol_table directly
2010-03-19 11:57:24 -07:00
Ian Romanick
1f58518059
Track generation of errors and halt compilation appropriately
2010-03-11 14:08:33 -08:00
Ian Romanick
f52888fac0
Include cstdlib to be sure size_t is available
2010-03-10 10:42:37 -08:00
Ian Romanick
a87ac255cf
Initial commit. lol
2010-02-22 13:19:34 -08:00