Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-08-13 | intel: Remove include of texmem.h, since we haven't used it in ages. | Eric Anholt | |
2010-08-13 | glsl2: Move ir_to_mesa handling to driver CompileShader and LinkShader hooks. | Eric Anholt | |
This lets drivers override ir_to_mesa with their own codegen, or at least have a native alternative. | |||
2010-08-13 | glsl2: Add support for ir_unop_neg to ir_mat_op_to_vec | Eric Anholt | |
2010-08-13 | glsl2: Move the common optimization passes to a helper function. | Eric Anholt | |
These are passes that we expect all codegen to be happy with. The other lowering passes for Mesa IR are moved to the Mesa IR generator. | |||
2010-08-13 | glsl2: Refresh autogenerated bison parser. | Kenneth Graunke | |
2010-08-13 | Fix an MSVC build error (bugzilla 29570). | Vinson Lee | |
2010-08-13 | glsl2: Remove unnecessary use of 'struct' before type names | Ian Romanick | |
In C++ you don't have to say 'struct' or 'class' if the declaration of the type has been seen. Some compilers will complain if you use 'struct' when 'class' should have been used and vice versa. Fixes bugzilla #29539. | |||
2010-08-13 | glsl2: Use stdint.h instead of inttypes.h | Ian Romanick | |
2010-08-13 | glsl2: Commit generated file changed by previous commit | Ian Romanick | |
2010-08-13 | glsl2: Use --nounistd to fix MSVC build | Ian Romanick | |
Also remove the --never-interactive command line option for the preprocessor lexer. This was already done for main compiler lexer. | |||
2010-08-13 | linker: Assign attrib location 0 if gl_Vertex is not used | Ian Romanick | |
If gl_Vertex is not used in the shader, then attribute location 0 is available for use. Fixes piglit test case glsl-getattriblocation (bugzilla #29540). | |||
2010-08-13 | glsl2: Include string.h in preprocessor | Jakob Bornecrantz | |
2010-08-13 | glsl2: Commit generated files changed by previous two commits | Ian Romanick | |
2010-08-13 | glsl2: Avoid token name collisions with names used by Windows header files | Ian Romanick | |
2010-08-13 | glsl2: Eliminate tokens for square matrix short names | Ian Romanick | |
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. | |||
2010-08-13 | scons: Build the new glsl2 code. | José Fonseca | |
2010-08-13 | talloc: Make it compile with MSVC, MinGW, and Xcode/gcc4.0. | José Fonseca | |
Based on Aras Pranckevičius' patch. | |||
2010-08-13 | talloc: Import 2.0.1 code. | José Fonseca | |
2010-08-12 | glsl2: Use MIN2 from macros.h instead of open coding it | Ian Romanick | |
2010-08-12 | glsl2: Use Elements from main/compiler.h instead of open-coding | Ian Romanick | |
2010-08-12 | mesa: check for null shader->InfoLog before printing | Brian Paul | |
2010-08-12 | glsl2: Commit generated file changed by previous commit | Ian Romanick | |
2010-08-12 | glsl2: Add missing include of string.h | Ian Romanick | |
Makes the build happy on non-GCC platforms. | |||
2010-08-12 | gallium: Link DRI drivers with g++ and test with CXX | Jakob Bornecrantz | |
New shader compiler need libc++ runtime. This works already if we are using llvm so this just covers the !llvm case. | |||
2010-08-11 | glsl2: Change command line options passed to flex | Ian Romanick | |
Remove --never-interactive because it is already specified in the source using %option. Use -o instead of --outfile. Some of the %option commands may also need to be removed for compatibility with older versions (e.g., 2.5.4) of flex. This should fix bugzilla #29209. | |||
2010-08-11 | glsl2: Commit generated files changed by previous commit | Ian Romanick | |
2010-08-11 | glsl2: Use bison command line option to set prefix | Ian Romanick | |
Bison version 2.3 doesn't seem to support %name-prefix in the source. This should fix bugzilla #29207. | |||
2010-08-11 | glsl2: Commit generated files changed by previous commit | Ian Romanick | |
2010-08-11 | glsl2: Emit error from lexer when illegal reserved word is encountered | Ian Romanick | |
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. | |||
2010-08-11 | glsl2: Don't declare a variable called sig that shadows the other one | Ian Romanick | |
Accidentally having a variable called 'sig' within an if-statement cause the higher scope 'sig' to always be NULL. As a result a new function signature was created for a function definition even when one already existed from a prototype declaration. Fixes piglit test case glsl-function-prototype (bugzilla #29520). | |||
2010-08-11 | glcpp: Fix "unterminated if" diagnostic. | Carl Worth | |
This was previously being appended to the output string *after* a copy of the supposedly final string was made and handed to the caller. So the diagnostic was never actually visible to the user. We fix this by moving the check for an unterminated #if from glcpp_parser_destroy to the calling function, preprocess. This fixes the test case 083-unterminated-if.c. | |||
2010-08-11 | glccp: Regenerate glcpp-parse.c | Carl Worth | |
Due to a recent change to glcpp-parse.y. | |||
2010-08-11 | glcpp: Add an explicit diagnostic for #if with no expression. | Carl Worth | |
This is more clear than the previously-generated diagnostic which was something confusing like "enexpected newline". This change makse test 080-if-witout-expression.c now pass. | |||
2010-08-11 | glcpp: Reword diagnostic for #elif with no expression | Carl Worth | |
Rather than telling the user what to fix, the standard convention is to describe what the detected problem is. With this change, test 081-elif-without-expression now passes. | |||
2010-08-11 | glcpp: Add several tests for diagnostics. | Carl Worth | |
Which are proving to be useful since some of these tests are not yet acting as desired, (in particular, the unterminated if test is not generating any diagnostic). | |||
2010-08-11 | glcpp: Regenerate glcpp-lex.c | Carl Worth | |
After a recent change to glcpp-lex.l | |||
2010-08-11 | glcpp: Initialize line and column numbers to 1, not 0. | Carl Worth | |
Error messages make more sense this way since the convention is for the first line of a file to be numbered from 1, rather than 0. | |||
2010-08-11 | glcpp-test: Capture the stderr output of the preprocessor. | Carl Worth | |
This allows writing tests that verify diagnostics from the preprocessor. | |||
2010-08-11 | osmesa: link with new libglsl.a lib | Brian Paul | |
2010-08-11 | glsl2: added casts to silence warnings | Brian Paul | |
2010-08-11 | glsl2: remove stray semicolon | Brian Paul | |
2010-08-11 | glsl2: added casts to silence warnings | Brian Paul | |
2010-08-11 | glsl2: add cast to silence warning | Brian Paul | |
2010-08-11 | glsl2: remove stray semicolon | Brian Paul | |
2010-08-11 | glsl2: move declarations before code | Brian Paul | |
2010-08-11 | glsl2: remove trailing comma to silence warning | Brian Paul | |
2010-08-11 | glcpp: Clean up intermediate file when test suite is interrupted. | Carl Worth | |
The glcpp-test script was leaving around bogus *.valgrind-errors files if a valgrind test was interrupted. | |||
2010-08-11 | glcpp: Regenerate glcpp-parse.c | Carl Worth | |
After a recent change to glcpp-parse.y | |||
2010-08-11 | glcpp: Additional fixes for not evaluating skipped #if/#elif expressions. | Carl Worth | |
This adds a couple of test cases to expand our coverage of invalid #if and being skipped, (either by being nested inside an #if/#elif that evaluates to zero or by being after an #if/#elif that evaluates to non-zero). | |||
2010-08-10 | glcpp/tests: Commit forgotten file 074-elif-undef.c.expected. | Kenneth Graunke | |