Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'glsl2' | Ian Romanick | 2010-08-16 | 468 | -177/+85351 |
|\ | | | | | | | | | Conflicts: src/mesa/program/prog_optimize.c | ||||
| * | glsl2: Refresh autogenerated file builtin_function.cpp. | Kenneth Graunke | 2010-08-16 | 1 | -1952/+11534 |
| | | |||||
| * | glsl2: Add builtins profile for GLSL 1.30. | Kenneth Graunke | 2010-08-16 | 2 | -0/+1986 |
| | | | | | | | | | | Many functions are currently wrapped with #if 0 since we haven't implemented them yet. | ||||
| * | linker: Include compiler.h to avoid spurious warnings about INLINE | Ian Romanick | 2010-08-16 | 1 | -0/+1 |
| | | |||||
| * | glsl2: Silence unused variable warning | Ian Romanick | 2010-08-16 | 1 | -0/+1 |
| | | |||||
| * | glcpp: Refresh autogenerated lexer and parser. | Kenneth Graunke | 2010-08-16 | 2 | -60/+44 |
| | | |||||
| * | glcpp: Remove spurious newline generated by #version handling. | Kenneth Graunke | 2010-08-16 | 2 | -4/+2 |
| | | | | | | | | | | | | This was causing line numbering to be off by one. The newline comes from the NEWLINE token at the end of the line; there's no need to insert one. | ||||
| * | ir_to_mesa: Silence unused variable warnings | Ian Romanick | 2010-08-16 | 1 | -3/+3 |
| | | |||||
| * | ir_to_mesa: Clean up assertions in ir_to_mesa_visitor::visit(ir_texture *) | Ian Romanick | 2010-08-16 | 1 | -1/+4 |
| | | |||||
| * | ir_to_mesa: Support texture rectangle targets | Ian Romanick | 2010-08-16 | 1 | -0/+3 |
| | | |||||
| * | st/mesa: remove output register reads inside shaders | Marek Olšák | 2010-08-16 | 1 | -0/+8 |
| | | | | | | | | This is a GLSL2 regression fix. | ||||
| * | mesa: Check that _XOPEN_SOURCE is defined before using it. | Vinson Lee | 2010-08-15 | 1 | -1/+1 |
| | | |||||
| * | Revert "glsl2: Use stdint.h instead of inttypes.h" | José Fonseca | 2010-08-14 | 4 | -4/+4 |
| | | | | | | | | This reverts commit a77a6bc008b3146c56431fa520a00e1f8dfa3938. | ||||
| * | glsl: Standardize a few more uses of struct vs class keyword. | José Fonseca | 2010-08-14 | 5 | -12/+13 |
| | | |||||
| * | scons: Link talloc. | José Fonseca | 2010-08-14 | 1 | -0/+1 |
| | | |||||
| * | glsl: Silence gcc warning "control reaches end of non-void function". | José Fonseca | 2010-08-14 | 1 | -1/+1 |
| | | |||||
| * | mesa: Silence gcc warning "control reaches end of non-void function". | José Fonseca | 2010-08-14 | 1 | -0/+1 |
| | | |||||
| * | mesa: Silence gcc warning "missing initializer for member". | José Fonseca | 2010-08-14 | 1 | -28/+28 |
| | | |||||
| * | mesa: Recent versions of MSVC define the single precision functions already. | José Fonseca | 2010-08-14 | 1 | -1/+2 |
| | | |||||
| * | scons: Add new source files. | José Fonseca | 2010-08-14 | 1 | -0/+2 |
| | | |||||
| * | mesa: atan2f and powf need two args. | José Fonseca | 2010-08-14 | 1 | -2/+2 |
| | | |||||
| * | Merge branch 'master' into glsl2 | Ian Romanick | 2010-08-13 | 429 | -7546/+10325 |
| |\ | |||||
| * | | mesa: Work-arounds for platforms that lack C99 math functions | Ian Romanick | 2010-08-13 | 1 | -0/+28 |
| | | | |||||
| * | | glsl2/Makefile: Add a 'make builtins' target. | Kenneth Graunke | 2010-08-13 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This copies over a dummy builtin_functions.cpp and rebuilds a bootstrapped version of the compiler, then uses that to generate the proper list of builtins. Finally, it rebuilds the compiler with the new list. Unfortunately, it's no longer automatic, but at least it works. | ||||
| * | | glsl2: Rework builtin function generation. | Kenneth Graunke | 2010-08-13 | 102 | -5685/+15738 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each language version/extension and target now has a "profile" containing all of the available builtin function prototypes. These are written in GLSL, and come directly out of the GLSL spec (except for expanding genType). A new builtins/ir/ folder contains the hand-written IR for each builtin, regardless of what version includes it. Only those definitions that have prototypes in the profile will be included. The autogenerated IR for texture builtins is no longer written to disk, so there's no longer any confusion as to what's hand-written or generated. All scripts are now in python instead of perl. | ||||
| * | | ir_reader: Don't mark functions as defined if their body is empty. | Kenneth Graunke | 2010-08-13 | 1 | -1/+1 |
| | | | |||||
| * | | glsl2: Commit generated file change by commit ab18be74 | Ian Romanick | 2010-08-13 | 1 | -10/+2 |
| | | | | | | | | | | | | | | | This would have been included in commit 23f6017d, but make wisely did not regenerate the file when the .lpp file did not change. | ||||
| * | | glsl2: Add a pass to strip out noop swizzles. | Eric Anholt | 2010-08-13 | 4 | -0/+83 |
| | | | | | | | | | | | | | | | | | | With the glsl2-965 branch, the optimization of glsl-algebraic-rcp-rcp regressed due to noop swizzles hiding information from ir_algebraic. This cleans up those noop swizzles for us. | ||||
| * | | glsl2: Convert ir_constant_propagation to ir_rvalue_visitor. | Eric Anholt | 2010-08-13 | 1 | -55/+9 |
| | | | | | | | | | | | | This one is a little tricky because of the LHS handling. | ||||
| * | | glsl2: Add a generic visitor class to call back with pointers to each rvalue. | Eric Anholt | 2010-08-13 | 5 | -208/+203 |
| | | | | | | | | | | | | | | | I keep copy and pasting this code all over, so consolidate it in one place. | ||||
| * | | mesa: Avoid using c++ keyword in dri_util.h when compiled with c++. | Eric Anholt | 2010-08-13 | 1 | -0/+4 |
| | | | |||||
| * | | intel: Remove include of texmem.h, since we haven't used it in ages. | Eric Anholt | 2010-08-13 | 4 | -4/+2 |
| | | | |||||
| * | | glsl2: Move ir_to_mesa handling to driver CompileShader and LinkShader hooks. | Eric Anholt | 2010-08-13 | 4 | -52/+99 |
| | | | | | | | | | | | | | | | This lets drivers override ir_to_mesa with their own codegen, or at least have a native alternative. | ||||
| * | | glsl2: Add support for ir_unop_neg to ir_mat_op_to_vec | Eric Anholt | 2010-08-13 | 1 | -0/+24 |
| | | | |||||
| * | | glsl2: Move the common optimization passes to a helper function. | Eric Anholt | 2010-08-13 | 4 | -73/+72 |
| | | | | | | | | | | | | | | | 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. | ||||
| * | | glsl2: Refresh autogenerated bison parser. | Kenneth Graunke | 2010-08-13 | 2 | -118/+125 |
| | | | |||||
| * | | Fix an MSVC build error (bugzilla 29570). | Vinson Lee | 2010-08-13 | 1 | -1/+1 |
| | | | |||||
| * | | glsl2: Remove unnecessary use of 'struct' before type names | Ian Romanick | 2010-08-13 | 6 | -58/+57 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | | glsl2: Use stdint.h instead of inttypes.h | Ian Romanick | 2010-08-13 | 4 | -4/+4 |
| | | | |||||
| * | | glsl2: Commit generated file changed by previous commit | Ian Romanick | 2010-08-13 | 1 | -55/+47 |
| | | | |||||
| * | | glsl2: Use --nounistd to fix MSVC build | Ian Romanick | 2010-08-13 | 2 | -2/+3 |
| | | | | | | | | | | | | | | | Also remove the --never-interactive command line option for the preprocessor lexer. This was already done for main compiler lexer. | ||||
| * | | linker: Assign attrib location 0 if gl_Vertex is not used | Ian Romanick | 2010-08-13 | 1 | -1/+36 |
| | | | | | | | | | | | | | | | | | | | | | 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). | ||||
| * | | glsl2: Include string.h in preprocessor | Jakob Bornecrantz | 2010-08-13 | 1 | -0/+1 |
| | | | |||||
| * | | glsl2: Commit generated files changed by previous two commits | Ian Romanick | 2010-08-13 | 3 | -1403/+1314 |
| | | | |||||
| * | | glsl2: Avoid token name collisions with names used by Windows header files | Ian Romanick | 2010-08-13 | 2 | -31/+31 |
| | | | |||||
| * | | glsl2: Eliminate tokens for square matrix short names | Ian Romanick | 2010-08-13 | 2 | -7/+4 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
| * | | scons: Build the new glsl2 code. | José Fonseca | 2010-08-13 | 3 | -43/+78 |
| | | | |||||
| * | | talloc: Make it compile with MSVC, MinGW, and Xcode/gcc4.0. | José Fonseca | 2010-08-13 | 4 | -3/+129 |
| | | | | | | | | | | | | Based on Aras Pranckevičius' patch. | ||||
| * | | talloc: Import 2.0.1 code. | José Fonseca | 2010-08-13 | 5 | -0/+3792 |
| | | | |||||
| * | | glsl2: Use MIN2 from macros.h instead of open coding it | Ian Romanick | 2010-08-12 | 1 | -11/+7 |
| | | |