summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_pack.h
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <[email protected]>2014-10-02 12:37:52 +0200
committerIago Toral Quiroga <[email protected]>2015-01-12 11:20:28 +0100
commit9567e1048b62635ee2c508dc89710e0a77eac99d (patch)
tree4ef55c543f5975ac466b670f7ea9908dff9b2094 /src/mesa/main/format_pack.h
parente1fdcddafe95ca8a62fc86c8219de459fcbd219e (diff)
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 <[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.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 2577def413e..1582ad12b3d 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,