diff options
author | Brian Paul <[email protected]> | 2012-02-19 20:08:52 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-24 08:03:04 -0700 |
commit | 32bf36106ea433038b524311fc10cc5b835862f1 (patch) | |
tree | 77ab12c5584d98b3b9857c9cb2ac81340dfe97d5 /src/mesa/swrast/s_context.h | |
parent | 401810b658133d9c968be1de7fb4102ec7c4d19e (diff) |
swrast: remove MAX_WIDTH arrays in stencil code
Use some per-context temporary arrays instead.
Diffstat (limited to 'src/mesa/swrast/s_context.h')
-rw-r--r-- | src/mesa/swrast/s_context.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.h b/src/mesa/swrast/s_context.h index 9388c356928..26b97f78dec 100644 --- a/src/mesa/swrast/s_context.h +++ b/src/mesa/swrast/s_context.h @@ -306,6 +306,13 @@ typedef struct /** State used during execution of fragment programs */ struct gl_program_machine FragProgMachine; + /** Temporary arrays for stencil operations. To avoid large stack + * allocations. + */ + struct { + GLubyte *buf1, *buf2, *buf3, *buf4; + } stencil_temp; + } SWcontext; |