summaryrefslogtreecommitdiffstats
path: root/src/util/half_float.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/half_float.c')
-rw-r--r--src/util/half_float.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/half_float.c b/src/util/half_float.c
index 422c0b69b78..5ccee81f78a 100644
--- a/src/util/half_float.c
+++ b/src/util/half_float.c
@@ -146,7 +146,7 @@ uint8_t _mesa_half_to_unorm8(uint16_t val)
{
const int m = val & 0x3ff;
const int e = (val >> 10) & 0x1f;
- MAYBE_UNUSED const int s = (val >> 15) & 0x1;
+ ASSERTED const int s = (val >> 15) & 0x1;
/* v = round_to_nearest(1.mmmmmmmmmm * 2^(e-15) * 255)
* = round_to_nearest((1.mmmmmmmmmm * 255) * 2^(e-15))