summaryrefslogtreecommitdiffstats
path: root/src/mesa/slang/slang_vartable.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-06-10 22:48:16 -0600
committerBrian Paul <[email protected]>2010-06-10 22:48:16 -0600
commitf1c5043f94261fecd8a6e54fe37d786554affcdd (patch)
tree681dcd7ddafb3535629df2b3ccdaf693d1cfd5df /src/mesa/slang/slang_vartable.h
parent7936e06657bc43de80ae4f56ee9db956e193d880 (diff)
mesa: move shader/slang/* sources to main/slang/*
Reduce the source tree depth a bit.
Diffstat (limited to 'src/mesa/slang/slang_vartable.h')
-rw-r--r--src/mesa/slang/slang_vartable.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/mesa/slang/slang_vartable.h b/src/mesa/slang/slang_vartable.h
new file mode 100644
index 00000000000..94bcd63f45a
--- /dev/null
+++ b/src/mesa/slang/slang_vartable.h
@@ -0,0 +1,42 @@
+
+#ifndef SLANG_VARTABLE_H
+#define SLANG_VARTABLE_H
+
+struct slang_ir_storage_;
+
+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 void
+_slang_pop_var_table(slang_var_table *t);
+
+extern void
+_slang_add_variable(slang_var_table *t, struct slang_variable_ *v);
+
+extern struct slang_variable_ *
+_slang_find_variable(const slang_var_table *t, slang_atom name);
+
+extern GLboolean
+_slang_alloc_var(slang_var_table *t, struct slang_ir_storage_ *store);
+
+extern GLboolean
+_slang_alloc_temp(slang_var_table *t, struct slang_ir_storage_ *store);
+
+extern void
+_slang_free_temp(slang_var_table *t, struct slang_ir_storage_ *store);
+
+extern GLboolean
+_slang_is_temp(const slang_var_table *t, const struct slang_ir_storage_ *store);
+
+
+#endif /* SLANG_VARTABLE_H */