summaryrefslogtreecommitdiff
path: root/ir_variable.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-02 23:47:06 -0700
committerEric Anholt <eric@anholt.net>2010-04-05 16:45:02 -0700
commit271e1996734c3948b71b6f28bae37e25b7ec048a (patch)
tree6af825971321fb011435c640f5abcbcc0dadd853 /ir_variable.cpp
parent63f394203a8be9b87f8617cd7a56a0806c0870b3 (diff)
Add definition of gl_ClipDistance[]
Diffstat (limited to 'ir_variable.cpp')
-rw-r--r--ir_variable.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ir_variable.cpp b/ir_variable.cpp
index 0edb19e..d81e056 100644
--- a/ir_variable.cpp
+++ b/ir_variable.cpp
@@ -151,10 +151,14 @@ generate_130_vs_variables(exec_list *instructions,
instructions, symtab);
}
- /* FINISHME: Add support fo gl_ClipDistance. The size of this array is
- * FINISHME: implementation dependent based on the value of
- * FINISHME: GL_MAX_CLIP_DISTANCES.
+ /* FINISHME: The size of this array is implementation dependent based on
+ * FINISHME: the value of GL_MAX_CLIP_DISTANCES.
*/
+ const glsl_type *const clip_distance_array_type =
+ glsl_type::get_array_instance(glsl_type::float_type, 8);
+ add_variable("gl_ClipDistance", ir_var_out, clip_distance_array_type,
+ instructions, symtab);
+
}