summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-25 16:50:44 -0700
committerEric Anholt <[email protected]>2011-10-28 12:09:47 -0700
commit028ce1cd0f5bb3e0169618cd572ac00968b8bd13 (patch)
tree7366daa9142d59659b8fcda570e5efc521e20e31
parent687e4446bf5c5d3bc4a56ad4e9291a9cf2a2958c (diff)
u_format: Fix bit definition of UF10_MANTISSA_BITS.
This is only used in the code for packing to INF, and resulted in an extra bit set that was set anyway, so it was harmless except for the confusion caused. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/gallium/auxiliary/util/u_format_r11g11b10f.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_format_r11g11b10f.h b/src/gallium/auxiliary/util/u_format_r11g11b10f.h
index 8e0572aa7ce..b1946f8a3d8 100644
--- a/src/gallium/auxiliary/util/u_format_r11g11b10f.h
+++ b/src/gallium/auxiliary/util/u_format_r11g11b10f.h
@@ -37,7 +37,7 @@
#define UF10_EXPONENT_BIAS 15
#define UF10_EXPONENT_BITS 0x1F
#define UF10_EXPONENT_SHIFT 5
-#define UF10_MANTISSA_BITS 0x3F
+#define UF10_MANTISSA_BITS 0x1F
#define UF10_MANTISSA_SHIFT (23 - UF10_EXPONENT_SHIFT)
#define UF10_MAX_EXPONENT (UF10_EXPONENT_BITS << UF10_EXPONENT_SHIFT)