Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-03-24 | Add some matrix math tests | Ian Romanick | |
2010-03-24 | Add glsl_type::get_instance method | Ian Romanick | |
Gets the singleton corresponding to a particular scalar, vector, or matrix type. | |||
2010-03-24 | Replace accesses to glsl_type data with query functions | Ian Romanick | |
In these particular cases, using the query functions makes it more obvious what is happening. | |||
2010-03-24 | Add class-private handles to matrix types in glsl_type | Ian Romanick | |
2010-03-24 | Fix typo in swizzle processing loop | Ian Romanick | |
One of the accesses to str in the loop used str[0] instead of str[i]. Reported-by: Kenneth Graunke | |||
2010-03-24 | Trivial cleanups in generate_swizzle | Ian Romanick | |
Add 'const' and 'static const' in a couple of places. | |||
2010-03-24 | Use ir_dereference::set_swizzle | Ian Romanick | |
2010-03-24 | Add method to set the swizzle of an ir_dereference | Ian Romanick | |
2010-03-24 | Allow duplicate symbols at the same scope that are in different name spaces | Ian Romanick | |
2010-03-24 | Merge branch 'anholt' | Ian Romanick | |
2010-03-24 | Add (negative) test for constructing samplers | Ian Romanick | |
2010-03-23 | ir_function constructor now takes the function name as a parameter | Ian Romanick | |
2010-03-23 | Add glsl_type::get_base_type query | Ian Romanick | |
Retreives the glsl_type that corresponds to the base type of a numeric scalar / vector / matrix type. So vec4 returns float, etc. | |||
2010-03-23 | Add glsl_type::is_numeric and glsl_type::is_boolean queries | Ian Romanick | |
2010-03-23 | Begin processing constructors | Ian Romanick | |
Right now, reject constructors for samplers because the are illegal. | |||
2010-03-23 | Add query to determine whether a type is a sampler | Ian Romanick | |
2010-03-23 | Add test for invalid assignment of function return value | Ian Romanick | |
2010-03-23 | Add *some* type checking for assignments | Ian Romanick | |
2010-03-23 | Disallow passing NULL for state to _mesa_glsl_error | Ian Romanick | |
The two places that were still passing NULL had a state pointer to pass. Not passing it in these places prevented termination of compilation of erroneous programs. | |||
2010-03-23 | Fix typographical errors of "FINISHME" | Ian Romanick | |
2010-03-23 | Include other generated sources in BUILT_SOURCES. | Eric Anholt | |
Otherwise, having cleaned glsl_parser.h, we'd never regenerate it because glsl_parser.cpp was already right where it needed to be. | |||
2010-03-23 | Use bash for the built file generation since builtin_types.sh requires it. | Eric Anholt | |
2010-03-23 | Clean the built sources with make clean. | Eric Anholt | |
2010-03-23 | Generate an error for variables declared with type void | Ian Romanick | |
2010-03-23 | Add is_error and is_void type queries | Ian Romanick | |
2010-03-23 | Set the type of a function call to be the return type of the callee | Ian Romanick | |
2010-03-23 | Set, and require, a return type for function signatures | Ian Romanick | |
2010-03-23 | Add `void' type to table of available types | Ian Romanick | |
This will make void-01.glsl test fail, so I may regret this later. However, this will make supporting functions that return void or functions that have a void parameter list easier to handle. | |||
2010-03-23 | Rename test GLSL sources from .txt to .glsl | Ian Romanick | |
2010-03-23 | Add test for declaring variables of type void. | Ian Romanick | |
2010-03-19 | Track the function that is currently being defined | Ian Romanick | |
Later this will allow type checking for return statements. | |||
2010-03-19 | Initial bits for converting AST return nodes to IR return instructions | Ian Romanick | |
2010-03-19 | Implement IR return instructions | Ian Romanick | |
2010-03-19 | Use glsl_symbol_table::name_declared_this_scope | Ian Romanick | |
Prevent most illegal name reuse. | |||
2010-03-19 | Add query to determine whether a name was declared at this scope | Ian Romanick | |
This will be used to prevent a variable and a function with the same name from being declared. As a side effect, the calls to add_{type,name,function} should never fail. | |||
2010-03-19 | Use separate namespaces for types, variables, and functions | Ian Romanick | |
This will allow types and their constructors to be easily stored in the same symbol table. This does add a potential problem that a shader could declare a variable and a function with the same name. This appears to be forbidden by the GLSL spec. | |||
2010-03-19 | Add function to determine the scope where a variable is declared | Ian Romanick | |
2010-03-19 | Use glsl_symbol_table instead of using _mesa_symbol_table directly | Ian Romanick | |
2010-03-19 | Add a GLSL-specific facade to _mesa_symbol_table | Ian Romanick | |
This adds some type saftey and will enable elimination of a bunch of type casts and other ugly crap in the code. | |||
2010-03-19 | Don't track new type names during pass-1 parsing | Ian Romanick | |
This implementation was wrong anyway because it did not respect scoping rules. This will need to be revisited soon. The most likely result is that the grammar is going to need some significant re-work to be able to use a IDENTIFIER in all the places where a TYPE_NAME is currently used. | |||
2010-03-15 | Add multiple include protection to ir.h | Ian Romanick | |
2010-03-15 | Trivial clean-ups to ast_type_specifier(int) constructor | Ian Romanick | |
2010-03-15 | Add new constructors for ast_type_specifier | Ian Romanick | |
Add a constructor that uses an ast_struct_specifier and one that uses a type name. This saves a (trivial) bit of code, but it also ensures some of the class invariants (i.e., type_name != NULL) are met. | |||
2010-03-15 | Ensure that ast_type always has type_name set | Ian Romanick | |
For built-in types, type_name would be NULL. This ensures that type_name is set even for the built-in types. This simplifies code in a few places and centralizes the name setting code. | |||
2010-03-15 | Factor ast_type_specifier code out to ast_type.cpp | Ian Romanick | |
2010-03-15 | Factor guts of function matching code out to match_function_by_name | Ian Romanick | |
This function will be used for matching some types of constructors as well. | |||
2010-03-15 | Move ast_function_expression::hir to ast_function.cpp | Ian Romanick | |
2010-03-15 | Remove DOA hir_function.c file | Ian Romanick | |
2010-03-11 | Change type of function_identifier to silence bison warning | Ian Romanick | |
When the implementation of function_call_header and function_identifier were changed a few commits ago, the types of the production changed. This just updates the types specified for the productions to match reality. | |||
2010-03-11 | Add parameters to function declarations in the correct order | Ian Romanick | |