Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ir_constant_expression: Add support for the "step" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+5 |
| | |||||
* | ir_constant_expression: Add support for the "faceforward" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+4 |
| | |||||
* | ir_constant_expression: Add support for the "refract" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+11 |
| | |||||
* | ir_constant_expression: Add support for the "reflect" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+4 |
| | |||||
* | ir_constant_expression: Add support for the "normalize" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+8 |
| | |||||
* | ir_constant_expression: Add support for the "matrixCompMult" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Simplify code that implements the "dot" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -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 Graunke | 2010-07-28 | 1 | -1/+1 |
| | |||||
* | ir_constant_expression: Extract dot product calculation for reuse. | Kenneth Graunke | 2010-07-28 | 1 | -7/+14 |
| | |||||
* | ir_constant_expression: Remove support for dot products of integers. | Kenneth Graunke | 2010-07-28 | 1 | -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 Graunke | 2010-07-28 | 1 | -1/+16 |
| | |||||
* | ir_constant_expression: Add support for the "greaterThan" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+16 |
| | |||||
* | ir_constant_expression: Add support for the "lessThanEqual" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+16 |
| | |||||
* | ir_constant_expression: Add support for the "lessThan" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+16 |
| | |||||
* | ir_constant_expression: Add support for the "notEqual" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+16 |
| | |||||
* | ir_constant_expression: Add support for the "equal" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+16 |
| | |||||
* | ir_constant_expression: Add support for the "distance" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+7 |
| | |||||
* | ir_constant_expression: Add support for the "degrees" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for the "radians" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for the "tanh" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for the "tan" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for the "sinh" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for the "cosh" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for "atan" builtins. | Kenneth Graunke | 2010-07-28 | 1 | -1/+9 |
| | |||||
* | ir_constant_expression: Add support for "acos" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -0/+4 |
| | |||||
* | ir_constant_expression: Add support for "asin" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+3 |
| | |||||
* | ir_constant_expression: Add support for "any" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+6 |
| | |||||
* | ir_constant_expression: Add support for "all" builtin. | Kenneth Graunke | 2010-07-28 | 1 | -1/+6 |
| | |||||
* | ir_constant_expression: Implement builtins that wrap an expression. | Kenneth Graunke | 2010-07-28 | 1 | -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 Graunke | 2010-07-28 | 1 | -2/+2 |
| | | | | These always return zero (the derivative of a constant). | ||||
* | ast_function: Set constant_value on return value temporaries in 1.20+. | Kenneth Graunke | 2010-07-28 | 1 | -0/+2 |
| | |||||
* | ir_constant_expression: Stub out support for constant builtins. | Kenneth Graunke | 2010-07-28 | 1 | -3/+148 |
| | |||||
* | ir_constant_expression: Use Mesa's MIN2/MAX2 instead of our own. | Kenneth Graunke | 2010-07-28 | 1 | -9/+7 |
| | |||||
* | ir_algebraic: Use ir_constant::zero. | Kenneth Graunke | 2010-07-28 | 1 | -6/+2 |
| | |||||
* | glsl2: Add new ir_constant::zero static method. | Kenneth Graunke | 2010-07-28 | 2 | -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 Anholt | 2010-07-28 | 2 | -0/+16 |
| | | | | | Fixes: glsl-arb-fragment-coord-conventions-define | ||||
* | glsl2: Add support for redeclaring layout of gl_FragCoord for ARB_fcc. | Eric Anholt | 2010-07-28 | 4 | -3/+25 |
| | | | | | Fixes: glsl-arb-fragment-coord-conventions | ||||
* | glsl2: Perform some semantic checking of ARB_fcc layout qualifiers | Ian Romanick | 2010-07-28 | 1 | -0/+13 |
| | | | | | The rest cannot be handled until built-in variables (i.e., gl_FragCoord) can be redeclared to add qualifiers. | ||||
* | glsl2: Parser support for GL_ARB_fragment_coord_conventions | Ian Romanick | 2010-07-28 | 8 | -1801/+2009 |
| | |||||
* | glsl2: Fail linking where the FS reads a varying that the VS doesn't write. | Eric Anholt | 2010-07-28 | 1 | -7/+30 |
| | | | | | | Fixes: glsl1-varying read but not written glsl1-varying var mismatch | ||||
* | glsl2: Unmark unwritten varyings as varying. | Eric Anholt | 2010-07-28 | 1 | -0/+1 |
| | | | | | This fixes an assertion failure in ir_to_mesa, and the varying won't take up varying space. | ||||
* | glcpp: Add generated source files. | Carl Worth | 2010-07-28 | 4 | -3/+6693 |
| | | | | | | | This is now consistent with other usage of flex/bison througout mesa, (which is that these generated files are added to source control so that the build system does not require external tools like flex/bison for non-developers). | ||||
* | glsl: Ignore glsl_compiler and glsl_parser.output files. | Carl Worth | 2010-07-28 | 1 | -0/+2 |
| | | | | | These are generated files where we can do the sane thing, and keep them out of version control. | ||||
* | glsl: Add generated files from flex/bison. | Carl Worth | 2010-07-28 | 3 | -0/+8490 |
| | | | | | | | The mesa build environment does not (currently) accept external dependencies such as flex and bison. The compromise is to commit the generated output files, (in spite of the pain that comes from having generated files under version control). | ||||
* | glcpp: Add expected output for a recently-added test. | Carl Worth | 2010-07-28 | 1 | -0/+3 |
| | | | | I simply forgot to add this file when adding the test case originally. | ||||
* | ir_to_mesa: Add remaining state variable (builtin uniforms) support. | Eric Anholt | 2010-07-28 | 1 | -0/+201 |
| | | | | | | | | | | Fixes: glsl1-GL state variable reference (diffuse product) glsl1-GL state variable reference (gl_FrontMaterial.ambient) glsl1-GL state variable reference (gl_LightSource[0].diffuse) glsl1-GL state variable reference (point attenuation) glsl1-GL state variable reference (point size) glsl1-linear fog | ||||
* | glsl2: Add the remaining builtin uniforms. | Eric Anholt | 2010-07-28 | 1 | -15/+53 |
| | |||||
* | glsl2: Size builtin arrays according to the context constants. | Eric Anholt | 2010-07-28 | 1 | -13/+5 |
| | | | | Cleans up some of the FINISHMEs in this file. | ||||
* | glcpp: Explicitly expect 0 shift/reduce conflicts. | Carl Worth | 2010-07-28 | 1 | -0/+1 |
| | | | | | | The "%expect 0" construct will make bison emit an error if any future changes to the grammar introduce shift/reduce conflicts, (without also increasing the number after "%expect"). | ||||
* | glcpp: Remove 2 shift/reduce conflicts from the grammar. | Carl Worth | 2010-07-28 | 1 | -1/+0 |
| | | | | | | | Since we have productions to turn "defined FOO" and "defined ( FOO )" into a conditional_token we don't need to list DEFINED as an operator as well. Doing so just introduces the shift/reduce ambiguity with no benefit. |