summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile_operation.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-29 17:05:54 -0600
committerBrian Paul <[email protected]>2008-07-29 17:05:54 -0600
commit153407f72d3492f9d35e2424bb877def8b1a1dcd (patch)
treef9afee20c821990f07b4ecec487c0a5c013d4c26 /src/mesa/shader/slang/slang_compile_operation.h
parent527e1357b59a476348b5fd2600fb99e85cc4e897 (diff)
mesa: fix some function inlining bugs
Need to add local vars of original function to the new scope's variable list (though the DECLs were already present). In slang_operation_copy() call slang_replace_scope() for SLANG_OPER_BLOCK_NEW_SCOPE opers.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_operation.h')
-rw-r--r--src/mesa/shader/slang/slang_compile_operation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_operation.h b/src/mesa/shader/slang/slang_compile_operation.h
index d5cbe779a6c..4f92aa9a086 100644
--- a/src/mesa/shader/slang/slang_compile_operation.h
+++ b/src/mesa/shader/slang/slang_compile_operation.h
@@ -128,6 +128,11 @@ slang_operation_construct(slang_operation *);
extern void
slang_operation_destruct(slang_operation *);
+extern void
+slang_replace_scope(slang_operation *oper,
+ slang_variable_scope *oldScope,
+ slang_variable_scope *newScope);
+
extern GLboolean
slang_operation_copy(slang_operation *, const slang_operation *);