summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_vartable.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-28 12:49:47 -0700
committerBrian <[email protected]>2007-01-28 12:49:47 -0700
commit4de6fac4daecac25bb3f4339610312022b457b46 (patch)
tree5b05109132bca7c6a9ede0fe80da0d3ed70e8c06 /src/mesa/shader/slang/slang_vartable.h
parent602dc1a63888af10b2ae491bdbb3afcb28004770 (diff)
Lots of vartable clean-ups, fixes. Report an error message when we run out
of registers, rather than crash.
Diffstat (limited to 'src/mesa/shader/slang/slang_vartable.h')
-rw-r--r--src/mesa/shader/slang/slang_vartable.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_vartable.h b/src/mesa/shader/slang/slang_vartable.h
index 51c2a1f77c5..8a3b992c969 100644
--- a/src/mesa/shader/slang/slang_vartable.h
+++ b/src/mesa/shader/slang/slang_vartable.h
@@ -9,9 +9,15 @@ typedef struct slang_var_table_ slang_var_table;
struct slang_variable_;
extern slang_var_table *
+_slang_new_var_table(GLuint maxRegisters);
+
+extern void
+_slang_delete_var_table(slang_var_table *vt);
+
+extern void
_slang_push_var_table(slang_var_table *parent);
-extern slang_var_table *
+extern void
_slang_pop_var_table(slang_var_table *t);
extern void
@@ -30,7 +36,7 @@ extern void
_slang_free_temp(slang_var_table *t, struct _slang_ir_storage *store);
extern GLboolean
-_slang_is_temp(slang_var_table *t, struct _slang_ir_storage *store);
+_slang_is_temp(const slang_var_table *t, const struct _slang_ir_storage *store);
#endif /* SLANG_VARTABLE_H */