summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_variable.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-07 19:45:22 -0700
committerEric Anholt <[email protected]>2010-07-07 19:45:22 -0700
commit152b55e74da7bf548d8846538b85960f703d6059 (patch)
tree4ac3a168e20c1fcd230f7c568959812eb50ab555 /src/glsl/ir_variable.cpp
parentea2a03f0a5b8b58ea88ecb607664ea50c9d6e96e (diff)
glsl2: Add support for gl_PointCoord in 1.20.
Fixes glsl-fs-pointcoord on swrast (remains broken on 965, like master)
Diffstat (limited to 'src/glsl/ir_variable.cpp')
-rw-r--r--src/glsl/ir_variable.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp
index 9daad803e96..a0b66b77702 100644
--- a/src/glsl/ir_variable.cpp
+++ b/src/glsl/ir_variable.cpp
@@ -311,6 +311,13 @@ generate_120_fs_variables(exec_list *instructions,
struct _mesa_glsl_parse_state *state)
{
generate_110_fs_variables(instructions, state);
+
+ for (unsigned i = 0
+ ; i < Elements(builtin_120_fs_variables)
+ ; i++) {
+ add_builtin_variable(& builtin_120_fs_variables[i],
+ instructions, state->symbols);
+ }
}
static void