Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-08-04 | glsl2: Skip talloc_parent in constant_expression of non-constant arrays. | Eric Anholt | |
2010-08-04 | glsl2: Make the clone() method take a talloc context. | Eric Anholt | |
In most cases, we needed to be reparenting the cloned IR to a different context (for example, to the linked shader instead of the unlinked shader), or optimization before the reparent would cause memory usage of the original object to grow and grow. | |||
2010-08-02 | glsl2: Fix typo in clamp() constant builtin using uint instead of int. | Eric Anholt | |
I take back the bad things I've said about the signed/unsigned comparison warning now. | |||
2010-08-02 | glsl2: Don't consider uniform initializers as constant expressions. | Eric Anholt | |
We were happily optimizing away the body of glsl-uniform-initializer-* to never use the uniforms. | |||
2010-07-28 | ir_constant_expression: Add support for the "outerProduct" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "mix" builtin. | Kenneth Graunke | |
Both 1.10 and 1.30 variants. | |||
2010-07-28 | ir_constant_expression: Add support for the "transpose" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "smoothstep" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "clamp" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "step" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "faceforward" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "refract" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "reflect" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "normalize" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "matrixCompMult" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Simplify code that implements the "dot" builtin. | Kenneth Graunke | |
There's no need to use an ir_expression; we have a handy C function. | |||
2010-07-28 | ir_constant_expression: Add support for the "length" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Extract dot product calculation for reuse. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Remove support for dot products of integers. | Kenneth Graunke | |
This shouldn't be required since dot is only defined for floating point types, even in GLSL 4.0. | |||
2010-07-28 | ir_constant_expression: Add support for the "greaterThanEqual" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "greaterThan" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "lessThanEqual" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "lessThan" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "notEqual" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "equal" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "distance" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "degrees" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "radians" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "tanh" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "tan" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "sinh" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for the "cosh" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for "atan" builtins. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for "acos" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for "asin" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for "any" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Add support for "all" builtin. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Implement builtins that wrap an expression. | Kenneth Graunke | |
These builtin functions are represented by ir_expression_operations, so we can just create one of those and ask for its value. | |||
2010-07-28 | ir_constant_expression: Add support for builtins dFdx, dFdy, and fwidth. | Kenneth Graunke | |
These always return zero (the derivative of a constant). | |||
2010-07-28 | ir_constant_expression: Stub out support for constant builtins. | Kenneth Graunke | |
2010-07-28 | ir_constant_expression: Use Mesa's MIN2/MAX2 instead of our own. | Kenneth Graunke | |
2010-07-27 | glsl2: Don't dereference a NULL var in CE handling during a compile error. | Eric Anholt | |
If an undeclared variable was dereferenced in an expression that needed constant expression handling, we would walk off a null ir->var pointer. Fixes: glsl1-TIntermediate::addUnaryMath | |||
2010-07-22 | ir_constant_expression: Fix broken code for floating point modulus. | Kenneth Graunke | |
It's supposed to be x - y * floor(x/y), not (x - y) * floor(x/y). | |||
2010-07-21 | ir_constant_expression: Add support for array == and !=. | Kenneth Graunke | |
Piglit parser tests const-array-03.frag and const-array-04.frag now generate the correct code. | |||
2010-07-21 | ir_constant_expression: Add support for constant arrays. | Kenneth Graunke | |
Fixes piglit test const-array-02.frag. | |||
2010-07-21 | ir_constant_expression: Add support for ir_unop_u2f. | Kenneth Graunke | |
Also make ir_unop_i2f only operate on signed integers. | |||
2010-07-21 | ir_constant_expression: Remove open coded equality comparisons. | Kenneth Graunke | |
The ir_constant::has_value method already does this. | |||
2010-07-20 | ir_constant_expression: Remove pointless use of variable_referenced. | Kenneth Graunke | |
ir_dereference_variable always references an ir_variable, so there's no point in calling a function and NULL-checking the result. | |||
2010-07-20 | ir_constant_expression: Use "this" pointer directly. | Kenneth Graunke | |
In ir_expression's signature, I replaced ir->operands[i] with op[i] as it is more concise; an assertion already ensures these are equal. | |||
2010-07-20 | ir_constant_expression: Convert from a visitor to a virtual function. | Kenneth Graunke | |
The constant_expression_wrapper was already the only external API, and much of the internal code used it anyway. Also, it wouldn't ever visit non-rvalue ir_instructions, so using a visitor seemed a bit unnecessary. This uses "ir_foo *ir = this;" lines to avoid code churn. These should be removed. |