aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile_variable.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2006-12-13 14:48:36 -0700
committerBrian <[email protected]>2006-12-13 14:48:36 -0700
commitaff8e204d205b5d424d2c39a5d9e004caaa1eab1 (patch)
tree91d06d422f8900af461233186bcc79351c3025f6 /src/mesa/shader/slang/slang_compile_variable.h
parent5b35132b41427798e02a66a8e39583fffbe9d232 (diff)
Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly instructions.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_variable.h')
-rw-r--r--src/mesa/shader/slang/slang_compile_variable.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile_variable.h b/src/mesa/shader/slang/slang_compile_variable.h
index b0910e855ea..d52e2660dc0 100644
--- a/src/mesa/shader/slang/slang_compile_variable.h
+++ b/src/mesa/shader/slang/slang_compile_variable.h
@@ -78,9 +78,10 @@ typedef struct slang_variable_
GLuint array_len; /**< only if type == slang_spec_array */
struct slang_operation_ *initializer; /**< Optional initializer code */
GLuint address; /**< Storage location */
- GLuint address2; /**< Storage location */
GLuint size; /**< Variable's size in bytes */
GLboolean global; /**< A global var? */
+ GLboolean used; /**< Ever referenced by code? */
+ GLboolean declared; /**< Declared by slang_variable_decl? */
void *aux; /**< Used during code gen */
} slang_variable;
@@ -95,6 +96,10 @@ typedef struct slang_variable_scope_
struct slang_variable_scope_ *outer_scope;
} slang_variable_scope;
+
+extern slang_variable_scope *
+_slang_variable_scope_new(slang_variable_scope *parent);
+
extern GLvoid
_slang_variable_scope_ctr(slang_variable_scope *);