summaryrefslogtreecommitdiff
path: root/src/glsl/ir_constant_expression.cpp
AgeCommit message (Collapse)Author
2010-07-07glsl2: Avoid null deref in scalar constant unop expressions.Eric Anholt
2010-07-06glsl2: Clone methods return the type of the thing being clonedIan Romanick
This is as opposed to returning the type of the base class of the hierarchy.
2010-07-06ir_constant_expression: Declare loop counting variables in the loops.Kenneth Graunke
Fixes "name lookup of 'c' changed" warning.
2010-07-06ir_constant_expression: Add support for dot products.Kenneth Graunke
2010-07-06ir_constant_expression: Add support for matrix multiplication.Kenneth Graunke
Also handles matrix/vector and vector/matrix multiplication. Fixes piglit tests const-matrix-multiply-01.frag, const-matrix-multiply-02.frag, and const-vec-mat.frag.
2010-07-06ir_constant_expression: Support scalar * vector and scalar * matrix.Kenneth Graunke
The test here is slightly different since we need to keep matrix multiplication separate. Fixes piglit tests const-vec-scalar-03.frag and const-mat-scalar-03.frag.
2010-07-06ir_constant_expression: Support scalar / vector and scalar / matrix.Kenneth Graunke
Fixes piglit tests const-vec-scalar-04.frag and const-mat-scalar-04.frag.
2010-07-06ir_constant_expression: Support scalar - vector and scalar - matrix.Kenneth Graunke
Fixes piglit tests const-vec-scalar-02.frag and const-mat-scalar-02.frag.
2010-07-06ir_constant_expression: Support scalar + vector and scalar + matrix.Kenneth Graunke
Fixes piglit tests const-vec-scalar-01.frag, const-vec-scalar-05.frag, and const-mat-scalar-01.frag.
2010-07-06ir_constant_expression: Assert that both operands share a base type.Kenneth Graunke
2010-07-06ir_constant_expression: Initialize op[0] and op[1] to NULL.Kenneth Graunke
This makes it easy to check if there is a second argument.
2010-07-06ir_constant_expression: Initialize all components of constant data to 0.Kenneth Graunke
This is probably just a good idea, and will come in useful when implementing things like matrix multiplication.
2010-07-01glsl2: Add ir_unop_fract as an expression type.Eric Anholt
Most backends will prefer seeing this to seeing (a - floor(a)), so represent it explicitly.
2010-06-30glsl2: Define new ir_discard instruction.Kenneth Graunke
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt