summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-01-15 11:08:10 -0700
committerBrian <brian@yutani.localnet.net>2007-01-15 11:08:10 -0700
commita5bbe206a8d6ee13cb90810d8e7011e332697910 (patch)
tree816a2e867e816ce4777ef3890ba4695da94d1dfc /src
parent8de3dc17018a7060c536446803b86abe29386cb8 (diff)
comments
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_emit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 81f8565502..5d7e5b318f 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -302,6 +302,10 @@ alloc_temp_storage(slang_var_table *vt, slang_ir_node *n, GLint size)
}
+/**
+ * Free temporary storage, if n->Store is, in fact, temp storage.
+ * Otherwise, no-op.
+ */
static void
free_temp_storage(slang_var_table *vt, slang_ir_node *n)
{
@@ -316,6 +320,9 @@ free_temp_storage(slang_var_table *vt, slang_ir_node *n)
}
+/**
+ * Allocate storage for a floating point constant.
+ */
static slang_ir_storage *
alloc_constant(const GLfloat v[], GLuint size, struct gl_program *prog)
{