summaryrefslogtreecommitdiff
path: root/src/glsl/builtin_function.cpp
AgeCommit message (Collapse)Author
2010-07-19glsl2: Fix the expression type for atan's pi * sign(y).Eric Anholt
Fixes CorrectFunction.vert.
2010-07-18glsl2: Make cross() be an expression operation.Eric Anholt
ARB_fp, ARB_vp, Mesa IR, and the 965 vertex shader all have instructions for cross. Shaves 12 Mesa instructions off of a 66-instruction shader I have.
2010-07-14Refresh autogenerated file builtin_function.cpp.Kenneth Graunke
2010-07-07glsl: Fix the setup of refract()'s output for vec3/vec4 and k < 0.0.Eric Anholt
caught by valgrind.
2010-07-02Refresh autogenerated file builtin_function.cpp.Kenneth Graunke
2010-07-01glsl2: Add ir_unop_fract as an expression type.Eric Anholt
Most backends will prefer seeing this to seeing (a - floor(a)), so represent it explicitly.
2010-06-30glsl2: Don't break sign() down by vector components.Eric Anholt
2010-06-30glsl2: Fix reversed value of step().Eric Anholt
It's 0.0 if x < edge, not 1.0. Partial fix for glsl-fs-step.
2010-06-30glsl2: Fix up the implementation of fract() for vector types.Eric Anholt
There's no need to split each vector component out, just do vector ops.
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt