X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Futil%2Fformat_r11g11b10f.h;h=f6cd4ac696a1e920568c0bd918fbcbe0010c235a;hb=65ea559465df527d8a2998380c7eb2554780a2ba;hp=c9e967cf31a906a88c10327459b79b6e669003a0;hpb=21f357b66e5638e3640cf3b3fbaa992dc764c49f;p=mesa.git diff --git a/src/util/format_r11g11b10f.h b/src/util/format_r11g11b10f.h index c9e967cf31a..f6cd4ac696a 100644 --- a/src/util/format_r11g11b10f.h +++ b/src/util/format_r11g11b10f.h @@ -191,7 +191,7 @@ static inline float uf10_to_f32(uint16_t val) if (exponent == 0) { if (mantissa != 0) { - const float scale = 1.0 / (1 << 20); + const float scale = 1.0 / (1 << 19); f32.f = scale * mantissa; } } else if (exponent == 31) {