summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi/exec/tgsi_exec.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-02 14:05:21 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-02 14:05:21 -0600
commit4ad80ad5cfdb9bc23eee15938645a334d227cd72 (patch)
tree12595830401aa347415b37eb27f08f7a14a67a4d /src/mesa/pipe/tgsi/exec/tgsi_exec.h
parent5e49ec339df1d23b1f1790c49c9f102098f42c0d (diff)
Implement CAL/RET and a call stack for subroutines.
The glsl/brick.c shader demo runs now.
Diffstat (limited to 'src/mesa/pipe/tgsi/exec/tgsi_exec.h')
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_exec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.h b/src/mesa/pipe/tgsi/exec/tgsi_exec.h
index 0f2dd7d987..ae5ce8a7c9 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_exec.h
+++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.h
@@ -99,6 +99,7 @@ struct tgsi_exec_labels
#define TGSI_EXEC_MAX_COND_NESTING 10
#define TGSI_EXEC_MAX_LOOP_NESTING 10
+#define TGSI_EXEC_MAX_CALL_NESTING 10
/**
@@ -149,6 +150,9 @@ struct tgsi_exec_machine
uint LoopStack[TGSI_EXEC_MAX_LOOP_NESTING];
int LoopStackTop;
+ uint CallStack[TGSI_EXEC_MAX_CALL_NESTING];
+ int CallStackTop;
+
struct tgsi_full_instruction *Instructions;
uint NumInstructions;