summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/distance
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Add '.ir' extension to builtin IR filesPaul Berry2011-10-311-31/+0
| | | | | | | | This patch adds the extension '.ir' to all the files in src/glsl/builtins/ir/, and changes generate_builtins.py so that it no longer globs on '*' to find the files to build. This prevents spurious files (such as EMACS' infamous *~ backup files) from breaking the build.
* glsl/builtins: Remove unnecessary (constant bool (1)) from assignments.Kenneth Graunke2011-01-121-3/+3
| | | | This isn't strictly necessary, but is definitely nicer.
* glsl: Fix for scalar float built-in definitions.Kenneth Graunke2010-09-081-1/+1
| | | | These need abs, and we need more tests.
* glsl/builtins: Simplify degenerate scalar float cases.Kenneth Graunke2010-09-081-3/+1
| | | | | | | The code being generated was just stupid, considering that: - normalize(x) = 1.0 - length(x) = x - distance(x, y) = x - y
* glsl/builtins: Convert assignments to new format (with write mask).Kenneth Graunke2010-09-041-4/+4
|
* glsl2: Rework builtin function generation.Kenneth Graunke2010-08-131-0/+33
Each language version/extension and target now has a "profile" containing all of the available builtin function prototypes. These are written in GLSL, and come directly out of the GLSL spec (except for expanding genType). A new builtins/ir/ folder contains the hand-written IR for each builtin, regardless of what version includes it. Only those definitions that have prototypes in the profile will be included. The autogenerated IR for texture builtins is no longer written to disk, so there's no longer any confusion as to what's hand-written or generated. All scripts are now in python instead of perl.