From f258c0dfa8ffbd67819bda45f2903ce8d5bb5130 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 15 Nov 2011 16:47:25 -0800 Subject: [PATCH] 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 --- src/mesa/main/format_unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index 6e2ce7a0516..ae7a04b02ca 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]); } } -- 2.30.2