diff options
author | Jordan Justen <[email protected]> | 2012-06-25 14:08:37 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-08-14 17:07:42 -0700 |
commit | 7ef270867cb1f3e19067c93449e48987a32730d3 (patch) | |
tree | 9bcc2f86d45f84a469676f1e6848d527407442ca /src/mesa/main/pack.h | |
parent | 1938501fbfb5052b1de7d78dc7ca8a8738f814e2 (diff) |
mesa pack: handle uint and int clamping properly
Rename _mesa_pack_rgba_span_int to _mesa_pack_rgba_span_from_uints.
Add _mesa_pack_rgba_span_from_ints.
These separate routines allow the integer clamping to be handled
properly for signed versus unsigned integers.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/pack.h')
-rw-r--r-- | src/mesa/main/pack.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mesa/main/pack.h b/src/mesa/main/pack.h index cd49c74954a..2fbdf911532 100644 --- a/src/mesa/main/pack.h +++ b/src/mesa/main/pack.h @@ -145,9 +145,15 @@ _mesa_unpack_image(GLuint dimensions, void -_mesa_pack_rgba_span_int(struct gl_context *ctx, GLuint n, GLuint rgba[][4], - GLenum dstFormat, GLenum dstType, - GLvoid *dstAddr); +_mesa_pack_rgba_span_from_uints(struct gl_context *ctx, GLuint n, GLuint rgba[][4], + GLenum dstFormat, GLenum dstType, + GLvoid *dstAddr); + + +void +_mesa_pack_rgba_span_from_ints(struct gl_context *ctx, GLuint n, GLint rgba[][4], + GLenum dstFormat, GLenum dstType, + GLvoid *dstAddr); extern void |