diff options
author | Brian <brian@nostromo.localnet.net> | 2007-02-25 18:56:57 -0700 |
---|---|---|
committer | Brian <brian@nostromo.localnet.net> | 2007-02-25 18:56:57 -0700 |
commit | b85d4d61a7f93a9f2d58a1d701808584e0fce8c7 (patch) | |
tree | 57e0fddf6af064319e096931b9563a526c52dbd3 /src | |
parent | 33eac56e4a48143aa8acd5757feb68570e860de5 (diff) | |
download | external_mesa3d-b85d4d61a7f93a9f2d58a1d701808584e0fce8c7.zip external_mesa3d-b85d4d61a7f93a9f2d58a1d701808584e0fce8c7.tar.gz external_mesa3d-b85d4d61a7f93a9f2d58a1d701808584e0fce8c7.tar.bz2 |
define and use MAX_PROGRAM_ADDRESS_REGS
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/config.h | 1 | ||||
-rw-r--r-- | src/mesa/shader/prog_execute.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 82ea72a..00df084 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -201,6 +201,7 @@ #define MAX_PROGRAM_MATRIX_STACK_DEPTH 4 #define MAX_PROGRAM_CALL_DEPTH 8 #define MAX_PROGRAM_TEMPS 128 +#define MAX_PROGRAM_ADDRESS_REGS 2 #define MAX_UNIFORMS 128 #define MAX_VARYING 8 /*@}*/ diff --git a/src/mesa/shader/prog_execute.h b/src/mesa/shader/prog_execute.h index 0f4956d..47845e9 100644 --- a/src/mesa/shader/prog_execute.h +++ b/src/mesa/shader/prog_execute.h @@ -57,7 +57,7 @@ struct gl_program_machine GLfloat Outputs[MAX_PROGRAM_OUTPUTS][4]; GLfloat (*EnvParams)[4]; /**< Vertex or Fragment env parameters */ GLuint CondCodes[4]; /**< COND_* value for x/y/z/w */ - GLint AddressReg[MAX_VERTEX_PROGRAM_ADDRESS_REGS][4]; + GLint AddressReg[MAX_PROGRAM_ADDRESS_REGS][4]; GLuint CallStack[MAX_PROGRAM_CALL_DEPTH]; /**< For CAL/RET instructions */ GLuint StackDepth; /**< Index/ptr to top of CallStack[] */ |