summaryrefslogtreecommitdiff
path: root/src/glsl
AgeCommit message (Collapse)Author
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.
2010-07-28ir_constant_expression: Add support for builtins dFdx, dFdy, and fwidth.Kenneth Graunke
These always return zero (the derivative of a constant).
2010-07-28ast_function: Set constant_value on return value temporaries in 1.20+.Kenneth Graunke
2010-07-28ir_constant_expression: Stub out support for constant builtins.Kenneth Graunke
2010-07-28ir_constant_expression: Use Mesa's MIN2/MAX2 instead of our own.Kenneth Graunke
2010-07-28ir_algebraic: Use ir_constant::zero.Kenneth Graunke
2010-07-28glsl2: Add new ir_constant::zero static method.Kenneth Graunke
This conveniently creates a zero value of whatever type you want.
2010-07-28glsl2: Add the define for ARB_fragment_coord_conventions when present.Eric Anholt
Fixes: glsl-arb-fragment-coord-conventions-define
2010-07-28glsl2: Add support for redeclaring layout of gl_FragCoord for ARB_fcc.Eric Anholt
Fixes: glsl-arb-fragment-coord-conventions
2010-07-28glsl2: Perform some semantic checking of ARB_fcc layout qualifiersIan Romanick
The rest cannot be handled until built-in variables (i.e., gl_FragCoord) can be redeclared to add qualifiers.
2010-07-28glsl2: Parser support for GL_ARB_fragment_coord_conventionsIan Romanick
2010-07-28glsl2: Fail linking where the FS reads a varying that the VS doesn't write.Eric Anholt
Fixes: glsl1-varying read but not written glsl1-varying var mismatch
2010-07-28glsl2: Unmark unwritten varyings as varying.Eric Anholt
This fixes an assertion failure in ir_to_mesa, and the varying won't take up varying space.
2010-07-28glcpp: Add generated source files.Carl Worth
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).
2010-07-28glsl: Ignore glsl_compiler and glsl_parser.output files.Carl Worth
These are generated files where we can do the sane thing, and keep them out of version control.
2010-07-28glsl: Add generated files from flex/bison.Carl Worth
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).
2010-07-28glcpp: Add expected output for a recently-added test.Carl Worth
I simply forgot to add this file when adding the test case originally.
2010-07-28glsl2: Add the remaining builtin uniforms.Eric Anholt
2010-07-28glsl2: Size builtin arrays according to the context constants.Eric Anholt
Cleans up some of the FINISHMEs in this file.
2010-07-28glcpp: Explicitly expect 0 shift/reduce conflicts.Carl Worth
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").
2010-07-28glcpp: Remove 2 shift/reduce conflicts from the grammar.Carl Worth
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.
2010-07-27glsl2: When stealing var->constant_value, steal its children as well.Eric Anholt
Fixes: glsl1-GLSL 1.20 uniform array constructor
2010-07-27glsl2: Actually use the linked dead code eliminator.Eric Anholt
I managed to revert the change from unlinked at some point while cleaning up the changes. glsl-fs-raytrace-bug27060 drops from 389 instructions to 370.
2010-07-27glsl2: 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-27glsl2: Use ir_dead_code's linked version after linking.Eric Anholt
glsl-fs-raytrace-bug27060 goes from 485 Mesa IR instructions to 389 before Mesa IR optimization.
2010-07-27glsl2: Fix the linked version of ir_dead_code.Eric Anholt
If we don't walk into functions, we won't see any usage of variables in the functions.
2010-07-27glsl2: Make the dead code handler make its own talloc context.Eric Anholt
This way, we don't need to pass in a parse state, and the context doesn't grow with the number of passes through optimization.
2010-07-27glsl2: Talloc type names.Eric Anholt
Otherwise, we end up losing structure names after compile time, and dumping IR often ends up reporting some other mysterious string.
2010-07-27glsl2: Add optimization pass for algebraic simplifications.Eric Anholt
This cleans up the assembly output of almost all the non-logic tests glsl-algebraic-*. glsl-algebraic-pow-two needs love (basically, flattening to a temporary and squaring it).
2010-07-27ir_validate: Check the types of expression operations.Eric Anholt
2010-07-27glsl2: Fix missing visit_continue return in ir_validate.Eric Anholt
2010-07-26glsl2: Also steal the constant components of aggregate-typed ir_constants.Eric Anholt
2010-07-26glsl2: Steal ir_variable's constant_value field.Kenneth Graunke
Fixes a link-time crash in glsl-vs-cross-3.
2010-07-26glsl2: Remove old .gitignore file from when we were out of tree.Eric Anholt
2010-07-26Merge remote branch 'origin/master' into glsl2Eric Anholt
This pulls in multiple i965 driver fixes which will help ensure better testing coverage during development, and also gets past the conflicts of the src/mesa/shader -> src/mesa/program move. Conflicts: src/mesa/Makefile src/mesa/main/shaderapi.c src/mesa/main/shaderobj.h
2010-07-22ir_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-22glsl2: Refresh autogenerated file builtin_function.cpp.Kenneth Graunke
2010-07-22glsl2/builtins: Add 1.30 bvec variant of the "mix" builtin.Kenneth Graunke
2010-07-22glsl2/builtins: Fix 1.30 sign implementation for ints.Kenneth Graunke
2010-07-22glsl2/builtins: Fix "mod" builtin to use scalar/vector operations.Kenneth Graunke