diff options
author | Samuel Iglesias Gonsalvez <[email protected]> | 2014-10-08 16:02:21 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-01-12 11:20:28 +0100 |
commit | f8d160fc96cccb46040d47b4dead31c81375e6b6 (patch) | |
tree | 8ebd1fa628e53a6b0a630587b2694769721416a8 /src/mesa/main/format_pack.h | |
parent | 9567e1048b62635ee2c508dc89710e0a77eac99d (diff) |
mesa/format_pack: Add _mesa_pack_int_rgba_row()
This will be used to unify code in pack.c.
v2:
- Modify pack_int_*() function generator to use c.datatype() and
f.datatype()
v3:
- Only autogenerate pack_int_*() functions for non-normalized integer
formats.
v4:
- Use _mesa_unsigned_to_unsigned() in pack_int_*() because, in order
to be able to pack both signed and unsigned formats, we need to
sign-extend.
Signed-off-by: Samuel Iglesias Gonsalvez <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/format_pack.h')
-rw-r--r-- | src/mesa/main/format_pack.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/format_pack.h b/src/mesa/main/format_pack.h index 1582ad12b3d..6087fc381b1 100644 --- a/src/mesa/main/format_pack.h +++ b/src/mesa/main/format_pack.h @@ -68,6 +68,9 @@ extern gl_pack_ubyte_stencil_func _mesa_get_pack_ubyte_stencil_func(mesa_format format); +extern void +_mesa_pack_int_rgba_row(mesa_format format, GLuint n, + const GLint src[][4], void *dst); extern void _mesa_pack_float_rgba_row(mesa_format format, GLuint n, |