Kenneth Graunke
|
97b44f040a
|
ir_constant_expression: Support scalar - vector and scalar - matrix.
Fixes piglit tests const-vec-scalar-02.frag and const-mat-scalar-02.frag.
|
2010-07-06 16:03:33 -07:00 |
|
Kenneth Graunke
|
e74dcd7924
|
ir_constant_expression: Support scalar + vector and scalar + matrix.
Fixes piglit tests const-vec-scalar-01.frag, const-vec-scalar-05.frag,
and const-mat-scalar-01.frag.
|
2010-07-06 16:03:33 -07:00 |
|
Kenneth Graunke
|
6fc983b9bb
|
ir_constant_expression: Assert that both operands share a base type.
|
2010-07-06 16:03:33 -07:00 |
|
Kenneth Graunke
|
6bc432e14e
|
ir_constant_expression: Initialize op[0] and op[1] to NULL.
This makes it easy to check if there is a second argument.
|
2010-07-06 16:03:33 -07:00 |
|
Kenneth Graunke
|
c63a1db81f
|
ir_constant_expression: Initialize all components of constant data to 0.
This is probably just a good idea, and will come in useful when
implementing things like matrix multiplication.
|
2010-07-06 16:03:32 -07:00 |
|
Eric Anholt
|
d925c91730
|
glsl2: Add ir_unop_fract as an expression type.
Most backends will prefer seeing this to seeing (a - floor(a)), so
represent it explicitly.
|
2010-07-01 11:07:22 -07:00 |
|
Kenneth Graunke
|
16efab1c4d
|
glsl2: Define new ir_discard instruction.
|
2010-06-30 14:54:58 -07:00 |
|
Eric Anholt
|
2928588267
|
glsl2: Move the compiler to the subdirectory it will live in in Mesa.
|
2010-06-24 15:36:00 -07:00 |
|