diff options
author | Brian Paul <[email protected]> | 2011-09-17 13:33:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-17 13:36:58 -0600 |
commit | f0f28548c29690fc9e44a2f7b0d1965d9fc564fa (patch) | |
tree | b5da3601133982df52513f506b85ad2074e63ffd /src | |
parent | 6e423253e74b462950445a7c10a913f5ab2a11c1 (diff) |
mesa: implement unpack_SIGNED_GR1616 in format_unpack.c
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/format_unpack.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index 02b57205ed5..dadff05567e 100644 --- a/src/mesa/main/format_unpack.c +++ b/src/mesa/main/format_unpack.c @@ -921,7 +921,11 @@ unpack_SIGNED_R16(const void *src, GLfloat dst[4]) static void unpack_SIGNED_GR1616(const void *src, GLfloat dst[4]) { - /* XXX TODO */ + const GLuint s = *((const GLuint *) src); + dst[RCOMP] = SHORT_TO_FLOAT_TEX( s & 0xffff ); + dst[GCOMP] = SHORT_TO_FLOAT_TEX( s >> 16 ); + dst[BCOMP] = 0.0F; + dst[ACOMP] = 1.0F; } static void |