summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* glsl2: Remove an inlined unvalued return statement.Eric Anholt2010-07-291-0/+1
| | | | | | | | 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.
* glsl2: Actually fix glsl-version-define.Eric Anholt2010-07-282-6/+0
|
* glcpp: Add __VERSION__ define to the current language version.Eric Anholt2010-07-285-714/+774
| | | | | | | Fixes: glsl-version-define glsl-version-define-110 glsl-version-define-120
* glcpp: Print integer tokens as decimal, not hex.Eric Anholt2010-07-282-2/+2
|
* glsl2: Make lowp, mediump, highp, and precision identifiers pre-1.20.Eric Anholt2010-07-282-16/+72
| | | | Fixes glsl-precision-110.
* glsl2/Makefile: Append to DEFINES rather than replacing them.Kenneth Graunke2010-07-281-1/+1
| | | | | Otherwise, we lose DEBUG, which causes mtypes.h to set NDEBUG, which causes assertions to not happen, which is no fun for anyone.
* ir_to_mesa: Respect the driver if it rejects a shader.Eric Anholt2010-07-282-9/+11
|
* glsl2: Fix outerProduct builtin.Kenneth Graunke2010-07-283-100/+100
| | | | The type signatures were completely backwards.
* ir_constant_expression: Add support for the "outerProduct" builtin.Kenneth Graunke2010-07-281-1/+8
|
* ir_constant_expression: Add support for the "mix" builtin.Kenneth Graunke2010-07-281-1/+13
| | | | Both 1.10 and 1.30 variants.
* ir_constant_expression: Add support for the "transpose" builtin.Kenneth Graunke2010-07-281-1/+8
|
* ir_constant_expression: Add support for the "smoothstep" builtin.Kenneth Graunke2010-07-281-1/+15
|
* ir_constant_expression: Add support for the "clamp" builtin.Kenneth Graunke2010-07-281-1/+24
|
* ir_constant_expression: Add support for the "step" builtin.Kenneth Graunke2010-07-281-1/+5
|
* ir_constant_expression: Add support for the "faceforward" builtin.Kenneth Graunke2010-07-281-1/+4
|
* ir_constant_expression: Add support for the "refract" builtin.Kenneth Graunke2010-07-281-1/+11
|
* ir_constant_expression: Add support for the "reflect" builtin.Kenneth Graunke2010-07-281-1/+4
|
* ir_constant_expression: Add support for the "normalize" builtin.Kenneth Graunke2010-07-281-1/+8
|
* ir_constant_expression: Add support for the "matrixCompMult" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Simplify code that implements the "dot" builtin.Kenneth Graunke2010-07-281-1/+1
| | | | There's no need to use an ir_expression; we have a handy C function.
* ir_constant_expression: Add support for the "length" builtin.Kenneth Graunke2010-07-281-1/+1
|
* ir_constant_expression: Extract dot product calculation for reuse.Kenneth Graunke2010-07-281-7/+14
|
* ir_constant_expression: Remove support for dot products of integers.Kenneth Graunke2010-07-281-13/+2
| | | | | This shouldn't be required since dot is only defined for floating point types, even in GLSL 4.0.
* ir_constant_expression: Add support for the "greaterThanEqual" builtin.Kenneth Graunke2010-07-281-1/+16
|
* ir_constant_expression: Add support for the "greaterThan" builtin.Kenneth Graunke2010-07-281-1/+16
|
* ir_constant_expression: Add support for the "lessThanEqual" builtin.Kenneth Graunke2010-07-281-1/+16
|
* ir_constant_expression: Add support for the "lessThan" builtin.Kenneth Graunke2010-07-281-1/+16
|
* ir_constant_expression: Add support for the "notEqual" builtin.Kenneth Graunke2010-07-281-1/+16
|
* ir_constant_expression: Add support for the "equal" builtin.Kenneth Graunke2010-07-281-1/+16
|
* ir_constant_expression: Add support for the "distance" builtin.Kenneth Graunke2010-07-281-1/+7
|
* ir_constant_expression: Add support for the "degrees" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for the "radians" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for the "tanh" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for the "tan" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for the "sinh" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for the "cosh" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for "atan" builtins.Kenneth Graunke2010-07-281-1/+9
|
* ir_constant_expression: Add support for "acos" builtin.Kenneth Graunke2010-07-281-0/+4
|
* ir_constant_expression: Add support for "asin" builtin.Kenneth Graunke2010-07-281-1/+3
|
* ir_constant_expression: Add support for "any" builtin.Kenneth Graunke2010-07-281-1/+6
|
* ir_constant_expression: Add support for "all" builtin.Kenneth Graunke2010-07-281-1/+6
|
* ir_constant_expression: Implement builtins that wrap an expression.Kenneth Graunke2010-07-281-20/+20
| | | | | These builtin functions are represented by ir_expression_operations, so we can just create one of those and ask for its value.
* ir_constant_expression: Add support for builtins dFdx, dFdy, and fwidth.Kenneth Graunke2010-07-281-2/+2
| | | | These always return zero (the derivative of a constant).
* ast_function: Set constant_value on return value temporaries in 1.20+.Kenneth Graunke2010-07-281-0/+2
|
* ir_constant_expression: Stub out support for constant builtins.Kenneth Graunke2010-07-281-3/+148
|
* ir_constant_expression: Use Mesa's MIN2/MAX2 instead of our own.Kenneth Graunke2010-07-281-9/+7
|
* ir_algebraic: Use ir_constant::zero.Kenneth Graunke2010-07-281-6/+2
|
* glsl2: Add new ir_constant::zero static method.Kenneth Graunke2010-07-282-0/+17
| | | | This conveniently creates a zero value of whatever type you want.
* glsl2: Add the define for ARB_fragment_coord_conventions when present.Eric Anholt2010-07-282-0/+16
| | | | | Fixes: glsl-arb-fragment-coord-conventions-define
* glsl2: Add support for redeclaring layout of gl_FragCoord for ARB_fcc.Eric Anholt2010-07-284-3/+25
| | | | | Fixes: glsl-arb-fragment-coord-conventions