summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_pack.h
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>2014-10-02 12:37:52 +0200
committerIago Toral Quiroga <itoral@igalia.com>2015-01-12 11:20:28 +0100
commit9567e1048b62635ee2c508dc89710e0a77eac99d (patch)
tree4ef55c543f5975ac466b670f7ea9908dff9b2094 /src/mesa/main/format_pack.h
parente1fdcddafe95ca8a62fc86c8219de459fcbd219e (diff)
downloadexternal_mesa3d-9567e1048b62635ee2c508dc89710e0a77eac99d.zip
external_mesa3d-9567e1048b62635ee2c508dc89710e0a77eac99d.tar.gz
external_mesa3d-9567e1048b62635ee2c508dc89710e0a77eac99d.tar.bz2
mesa: Add _mesa_pack_uint_rgba_row() format conversion function
We will use this later on to handle uint conversion scenarios in a master convert function. v2: - Modify pack_uint_*() function generation to use c.datatype() and f.datatype(). - Remove UINT_TO_FLOAT() macro usage from pack_uint*() - Remove "if not f.is_normalized()" conditional as pack_uint*() functions are only autogenerated for non normalized formats. v3: - Add clamping for non-normalized integer formats in pack_uint*() Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/main/format_pack.h')
-rw-r--r--src/mesa/main/format_pack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/format_pack.h b/src/mesa/main/format_pack.h
index 2577def..1582ad1 100644
--- a/src/mesa/main/format_pack.h
+++ b/src/mesa/main/format_pack.h
@@ -77,6 +77,9 @@ extern void
_mesa_pack_ubyte_rgba_row(mesa_format format, GLuint n,
const GLubyte src[][4], void *dst);
+extern void
+_mesa_pack_uint_rgba_row(mesa_format format, GLuint n,
+ const GLuint src[][4], void *dst);
extern void
_mesa_pack_ubyte_rgba_rect(mesa_format format, GLuint width, GLuint height,