summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-07-29glsl2: Refactor a bit of ir_if_return for the next changes.Eric Anholt
2010-07-29ir_to_mesa: Don't emit a duplicate return at the end of a function.Eric Anholt
It was harmless, but ugly.
2010-07-29glsl2: Allow use of _mesa_print_ir without a parse state on hand.Eric Anholt
2010-07-29ir_constant_variable: Don't mark variable from outside our scope as constant.Eric Anholt
Fixes (with software, except for alpha): glsl1-function with early return(3)
2010-07-29glsl2: When dumping IR for debug, indent nested blocks.Eric Anholt
No more trying to match parens in my head when looking at the body of a short function containing an if statement.
2010-07-29glsl2: When dumping IR for debug, skip all the empty builtin prototypes.Eric Anholt
2010-07-29glsl2: Fix spelling of "sentinel."Eric Anholt
2010-07-29glsl2: Fix spelling of "initializer."Eric Anholt
2010-07-29glsl2: Remove an inlined unvalued return statement.Eric Anholt
We already have asserts that it was the last call in the function, so it's safe to remove after it got cloned in. Fixes: glsl-fs-functions-4.
2010-07-28glsl2: Actually fix glsl-version-define.Eric Anholt
2010-07-28glcpp: Add __VERSION__ define to the current language version.Eric Anholt
Fixes: glsl-version-define glsl-version-define-110 glsl-version-define-120
2010-07-28glcpp: Print integer tokens as decimal, not hex.Eric Anholt
2010-07-28glsl2: Make lowp, mediump, highp, and precision identifiers pre-1.20.Eric Anholt
Fixes glsl-precision-110.
2010-07-28glsl2/Makefile: Append to DEFINES rather than replacing them.Kenneth Graunke
Otherwise, we lose DEBUG, which causes mtypes.h to set NDEBUG, which causes assertions to not happen, which is no fun for anyone.
2010-07-28ir_to_mesa: Respect the driver if it rejects a shader.Eric Anholt
2010-07-28glsl2: Fix outerProduct builtin.Kenneth Graunke
The type signatures were completely backwards.
2010-07-28ir_constant_expression: Add support for the "outerProduct" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "mix" builtin.Kenneth Graunke
Both 1.10 and 1.30 variants.
2010-07-28ir_constant_expression: Add support for the "transpose" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "smoothstep" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "clamp" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "step" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "faceforward" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "refract" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "reflect" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "normalize" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "matrixCompMult" builtin.Kenneth Graunke
2010-07-28ir_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-28ir_constant_expression: Add support for the "length" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Extract dot product calculation for reuse.Kenneth Graunke
2010-07-28ir_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-28ir_constant_expression: Add support for the "greaterThanEqual" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "greaterThan" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "lessThanEqual" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "lessThan" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "notEqual" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "equal" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "distance" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "degrees" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "radians" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "tanh" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "tan" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "sinh" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for the "cosh" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for "atan" builtins.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for "acos" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for "asin" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for "any" builtin.Kenneth Graunke
2010-07-28ir_constant_expression: Add support for "all" builtin.Kenneth Graunke
2010-07-28ir_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.