diff options
author | Brian Paul <brianp@vmware.com> | 2011-12-03 10:04:18 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-12-08 08:56:30 -0700 |
commit | 122c6768e3d4c1d1b57203eca70569f9301baab5 (patch) | |
tree | 00e32726c0dd459eb205f5718abe4a3da182b387 /src/mesa/main/accum.h | |
parent | aa6cb952c917f4280d75b322c05885fcf7eb6cdb (diff) | |
download | external_mesa3d-122c6768e3d4c1d1b57203eca70569f9301baab5.zip external_mesa3d-122c6768e3d4c1d1b57203eca70569f9301baab5.tar.gz external_mesa3d-122c6768e3d4c1d1b57203eca70569f9301baab5.tar.bz2 |
mesa: rewrite accum buffer support
Implemented in terms of renderbuffer mapping/unmapping and format
packing/unpacking functions.
The swrast and state tracker code for implementing accumulation are
unused and will be removed in the next commit.
v2: don't use memcpy() in _mesa_clear_accum_buffer()
v3: don't allocate MAX_WIDTH arrays, be more careful with mapping flags
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/accum.h')
-rw-r--r-- | src/mesa/main/accum.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/main/accum.h b/src/mesa/main/accum.h index f16378c..5b3f06a 100644 --- a/src/mesa/main/accum.h +++ b/src/mesa/main/accum.h @@ -42,6 +42,7 @@ struct _glapi_table; struct gl_context; +struct gl_renderbuffer; #if FEATURE_accum @@ -51,6 +52,12 @@ _mesa_ClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ); extern void _mesa_init_accum_dispatch(struct _glapi_table *disp); +extern void +_mesa_accum(struct gl_context *ctx, GLenum op, GLfloat value); + +extern void +_mesa_clear_accum_buffer(struct gl_context *ctx); + #else /* FEATURE_accum */ #include "main/compiler.h" @@ -67,6 +74,17 @@ _mesa_init_accum_dispatch(struct _glapi_table *disp) { } +static inline void +_mesa_accum(struct gl_context *ctx, GLenum op, GLfloat value) +{ +} + +static inline void +_mesa_clear_accum_buffer(struct gl_context *ctx) +{ +} + + #endif /* FEATURE_accum */ extern void |