mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 16:00:24 +01:00
mesa: implement unpack_SIGNED_GR1616 in format_unpack.c
This commit is contained in:
parent
6e423253e7
commit
f0f28548c2
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue