Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-03-26 | Add support for ast_to_hir of pre inc/dec. | Eric Anholt | |
2010-03-26 | Add support for ast_to_hir of post inc/dec. | Eric Anholt | |
2010-03-26 | Make read-only variables not be considered lvalues. | Eric Anholt | |
This should fix tests trying to assign to builtin "in" variables, and will also be relied on for post_inc/dec handling. | |||
2010-03-26 | Add constructors for immediate hir constants. | Eric Anholt | |
This will make ast_to_hir for inc/dec easier. | |||
2010-03-26 | Add support for %= in ast_to_hir. | Eric Anholt | |
2010-03-26 | Factor out assignment setup in ast_to_hir. | Eric Anholt | |
2010-03-26 | IR print visitor: Print out something for the operator. | Eric Anholt | |
2010-03-26 | IR print visitor: Print expressions a little better | Ian Romanick | |
2010-03-26 | Initial implementation of constructor handling code | Ian Romanick | |
All of the scalar, vector, and matrix constructors *except* "from bool" constructors should be handled. Array and structure constructors are also not yet handled. | |||
2010-03-26 | IR print visitor: print function calls | Ian Romanick | |
2010-03-26 | Add hack ir_call::callee_name to get the name of the called function | Ian Romanick | |
2010-03-26 | Be sure to set ir_function_signature::definition for constructors | Ian Romanick | |
2010-03-26 | Add ir_call::iterator to iterate over actual parameters | Ian Romanick | |
2010-03-26 | Add missing parenthesis in foreach_iter | Ian Romanick | |
This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'. | |||
2010-03-26 | Add some simple constructor tests | Ian Romanick | |
2010-03-26 | Add unary operator to convert unsigned integer to float | Ian Romanick | |
2010-03-26 | Slightly change the representation of numeric types | Ian Romanick | |
For numeric types, vector_elements and matrix_columns must be at least 1. Previously matrix_columns was 0 for vectors, and both were 0 for scalars. This change simplifies things in some places. | |||
2010-03-26 | Add glsl_type::components to query total number of components in a type | Ian Romanick | |
2010-03-26 | Replace remaining use of is_error_type with glsl_type::is_error | Ian Romanick | |
2010-03-26 | Replace remaining uses of is_numeric_base_type with glsl_type::is_numeric | Ian Romanick | |
2010-03-26 | Replace is_integer_base_type macro with glsl_type::is_integer method | Ian Romanick | |
2010-03-26 | Make glsl_*_type glsl_type class static data | Ian Romanick | |
2010-03-26 | Use glsl_type::is_error instead of comparison with glsl_error_type pointer | Ian Romanick | |
2010-03-26 | Move swizzles out of ir_dereference and into their own class. | Kenneth Graunke | |
Also turn generate_swizzle into a static "create" method of the new class; we'll want to use it for the IR reader as well. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> | |||
2010-03-26 | Add new abstract ir_rvalue class; rework accordingly. | Kenneth Graunke | |
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> | |||
2010-03-26 | Replace "mode" type tag with virtual as_foo() downcasting functions. | Kenneth Graunke | |
These should work well even in a non-flat IR hierarchy. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> | |||
2010-03-25 | Merge branch 'anholt' | Ian Romanick | |
2010-03-25 | IR print visitor: Finish printing constants | Ian Romanick | |
2010-03-25 | IR print visitor: Remove most of the newlines from the printed output | Ian Romanick | |
This makes it a lot easier to read... if you have a really wide display. | |||
2010-03-25 | IR print visitor: print expressions | Ian Romanick | |
Not quite complete. The operator is not yet printed. | |||
2010-03-25 | IR print visitor: print ir_dereference instructions | Ian Romanick | |
Also make a slight change to ir_variable. The ir_dereference tracks the number of nested dereferences. If an ir_variable is visited and the count is non-zero, just print the name of the variable. | |||
2010-03-25 | IR print visitor: Less newlines when printing ir_variables | Ian Romanick | |
2010-03-25 | Fix assignment operators: *=, /=, +=, -=. | Eric Anholt | |
Basically, replace everything different from operator_assign other than the creation of the rhs value from the lvalue and rvalue with the contents of operator_assign. Fixes a segfault in CorrectSwizzle1.frag, and fixes parser10.frag. | |||
2010-03-25 | Before generating HIR for user code, generate constructors for built-in types | Ian Romanick | |
2010-03-25 | Add dereference constructor for array element dereferences | Ian Romanick | |
This should have gone in before the previous commit. | |||
2010-03-25 | Add functions to generate constructors for built-in types. | Ian Romanick | |
Currently only vector and matrix types are supported. Structure types will be added later. | |||
2010-03-25 | Fix up the operator printing for the logic or and beyond, check array bounds. | Eric Anholt | |
2010-03-25 | Merge branch 'anholt' | Ian Romanick | |
2010-03-25 | Set up fragment shader builtin variables. | Eric Anholt | |
2010-03-25 | Make the standalone parser return an exit code so we can automate testing. | Eric Anholt | |
2010-03-25 | More matrix compilation tests | Ian Romanick | |
2010-03-25 | Merge branch 'kwg' | Ian Romanick | |
2010-03-25 | Fix matrix dimensioning | Ian Romanick | |
Newb GL mistake: matrices in GL are column-major. This means that vector_elements is the number of rows. Making these changes causes matrix-08.glsl to pass. | |||
2010-03-25 | Use glsl_type::row_type and glsl_type::column type in arithmetic_result_type | Ian Romanick | |
This substantially clarifies the code for matching matrix types. It also eliminates some uses of glsl_type member data. | |||
2010-03-25 | Replace several glsl_type field comparisons with a single pointer comparison | Ian Romanick | |
This simplifies the process of matching function parameter types. More simplifications are probably possible here, but arrays and structures need to be implemented first. | |||
2010-03-25 | Add queries to get the glsl_type of a row or column of a matrix | Ian Romanick | |
2010-03-25 | Widen num_components to handle vec4 correctly. | Kenneth Graunke | |
2010-03-25 | Typo fixes: de/re/ference. | Kenneth Graunke | |
2010-03-24 | Replace several field comparisons with a single pointer comparison | Ian Romanick | |
The only way the specified type fields can match is if the types are the same. Previous tests (and assertions) have filtered away all other possible cases. | |||
2010-03-24 | Remove unused _mesa_glsl_get_vector_type | Ian Romanick | |
This function has been completely replaced by glsl_type::get_instance. |