summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_unpack.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-11-03 17:08:16 -0700
committerEric Anholt <[email protected]>2011-11-09 12:59:20 -0800
commite34c9edcda9167c634fe8381bd039f1a65925d0a (patch)
treeab3264abf9c3941a950aa77b0ea823d1c7a8cc07 /src/mesa/main/format_unpack.h
parent84277cb7d325cdeade8ce75eb4154adb744626dc (diff)
mesa: Add support for unpacking 32-bit integer formats to int spans.
This is the inverse operation to _mesa_pack_rgba_span_int. The 16-bit code isn't done because of lack of testing and not being sure how sign extension/clamping should be handled between, say, 16-bit int and 32-bit int or uint. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/format_unpack.h')
-rw-r--r--src/mesa/main/format_unpack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/format_unpack.h b/src/mesa/main/format_unpack.h
index a8a829c8867..0d13a2d39a5 100644
--- a/src/mesa/main/format_unpack.h
+++ b/src/mesa/main/format_unpack.h
@@ -29,12 +29,20 @@ _mesa_unpack_rgba_row(gl_format format, GLuint n,
const void *src, GLfloat dst[][4]);
+void
+_mesa_unpack_int_rgba_row(gl_format format, GLuint n,
+ const void *src, GLuint dst[][4]);
+
extern void
_mesa_unpack_rgba_block(gl_format format,
const void *src, GLint srcRowStride,
GLfloat dst[][4], GLint dstRowStride,
GLuint x, GLuint y, GLuint width, GLuint height);
+extern void
+_mesa_unpack_uint_rgba_row(gl_format format, GLuint n,
+ const void *src, GLuint dst[][4]);
+
extern void
_mesa_unpack_float_z_row(gl_format format, GLuint n,