Mesa (master): mesa: Fix unpack for MESA_FORMAT_INTENSITY_FLOAT16.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Nov 22 22:09:48 UTC 2011
Module: Mesa
Branch: master
Commit: f258c0dfa8ffbd67819bda45f2903ce8d5bb5130
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f258c0dfa8ffbd67819bda45f2903ce8d5bb5130
Author: Eric Anholt <eric at anholt.net>
Date: Tue Nov 15 16:47:25 2011 -0800
mesa: Fix unpack for MESA_FORMAT_INTENSITY_FLOAT16.
Fixes failures in i965 on fbo-blending-formats when the format is enabled.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/main/format_unpack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
index 6e2ce7a..ae7a04b 100644
--- a/src/mesa/main/format_unpack.c
+++ b/src/mesa/main/format_unpack.c
@@ -936,7 +936,7 @@ unpack_INTENSITY_FLOAT16(const void *src, GLfloat dst[][4], GLuint n)
dst[i][RCOMP] =
dst[i][GCOMP] =
dst[i][BCOMP] =
- dst[i][ACOMP] = s[i];
+ dst[i][ACOMP] = _mesa_half_to_float(s[i]);
}
}
More information about the mesa-commit
mailing list