summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile_function.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-11-18 17:45:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-11-18 17:45:01 +0000
commit2164cf77306856f7d20965354b4eeff3736ddf64 (patch)
tree9852b69033427e2ecf0e0573012fa136f0a45ebc /src/mesa/shader/slang/slang_compile_function.h
parent4d4373bb0fa06093d82796950ede5a26fbfdd1d4 (diff)
move fix-up code into new slang_fixup_save() function
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_function.h')
-rw-r--r--src/mesa/shader/slang/slang_compile_function.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile_function.h b/src/mesa/shader/slang/slang_compile_function.h
index 6d3b85399c..8835544bf3 100644
--- a/src/mesa/shader/slang/slang_compile_function.h
+++ b/src/mesa/shader/slang/slang_compile_function.h
@@ -41,14 +41,20 @@ typedef enum slang_function_kind_
slang_func_operator
} slang_function_kind;
+
+/**
+ * When we need to fill in addresses which we won't know until the future,
+ * we keep track of them with a fix-up table.
+ */
typedef struct slang_fixup_table_
{
- GLuint *table;
+ GLuint *table; /**< array[count] of addresses */
GLuint count;
} slang_fixup_table;
extern void slang_fixup_table_init(slang_fixup_table *);
extern void slang_fixup_table_free(slang_fixup_table *);
+extern GLboolean slang_fixup_save(slang_fixup_table *fixups, GLuint address);
/**