diff options
author | Brian Paul <brianp@vmware.com> | 2012-02-20 11:07:01 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-02-24 08:03:12 -0700 |
commit | 70d3363757d286f2fa97c9b60268a96156fdb224 (patch) | |
tree | 75bf65f59430709f26d2fc50d94fa353d18c8368 /src/mesa/program/prog_execute.h | |
parent | 0a543eb5c4b299a4e819895455913a77a44f52b9 (diff) | |
download | external_mesa3d-70d3363757d286f2fa97c9b60268a96156fdb224.zip external_mesa3d-70d3363757d286f2fa97c9b60268a96156fdb224.tar.gz external_mesa3d-70d3363757d286f2fa97c9b60268a96156fdb224.tar.bz2 |
mesa: remove MAX_WIDTH from prog_execute.h
define a PROG_MAX_WIDTH var instead. It has to match MAX_WIDTH in
swrast. More elaborate refactoring could fix that (someday).
Diffstat (limited to 'src/mesa/program/prog_execute.h')
-rw-r--r-- | src/mesa/program/prog_execute.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/program/prog_execute.h b/src/mesa/program/prog_execute.h index cdf3708..1ae302c3 100644 --- a/src/mesa/program/prog_execute.h +++ b/src/mesa/program/prog_execute.h @@ -39,6 +39,10 @@ typedef void (*FetchTexelDerivFunc)(struct gl_context *ctx, const GLfloat texcoo GLuint unit, GLfloat color[4]); +/** NOTE: This must match SWRAST_MAX_WIDTH */ +#define PROG_MAX_WIDTH 16384 + + /** * Virtual machine state used during execution of vertex/fragment programs. */ @@ -47,7 +51,7 @@ struct gl_program_machine const struct gl_program *CurProgram; /** Fragment Input attributes */ - GLfloat (*Attribs)[MAX_WIDTH][4]; + GLfloat (*Attribs)[PROG_MAX_WIDTH][4]; GLfloat (*DerivX)[4]; GLfloat (*DerivY)[4]; GLuint NumDeriv; /**< Max index into DerivX/Y arrays */ |