diff options
author | Dave Airlie <airlied@redhat.com> | 2011-09-19 15:06:13 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-08 17:44:58 +0100 |
commit | 8f9edbad6f972792a51234715aad83c406e1845d (patch) | |
tree | f828adb2402c15583136e706e50b9b940ecfb09d /src/mesa/main/pack.h | |
parent | 61285c6cfa9ce6086d62fa08bc9e3813f0b30d3d (diff) |
mesa: add packing for int/uint
This just adds a simple packing for GL_UNSIGNED_INT/GL_INT destination formats.
This is enough for at least the gallium drivers to pack both unsigned and signed types for read pixels.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/pack.h')
-rw-r--r-- | src/mesa/main/pack.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/pack.h b/src/mesa/main/pack.h index 7c76baae4d6..7a0089c2f2c 100644 --- a/src/mesa/main/pack.h +++ b/src/mesa/main/pack.h @@ -144,4 +144,9 @@ _mesa_unpack_image(GLuint dimensions, const struct gl_pixelstore_attrib *unpack); +void +_mesa_pack_rgba_span_int(struct gl_context *ctx, GLuint n, GLuint rgba[][4], + GLenum dstFormat, GLenum dstType, + GLvoid *dstAddr); + #endif |