X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fformat_utils.h;h=9b6d1c39be746de981951da072a85edefd11f211;hb=6e70508151823ce63e0976b4fa56e4d847a3c9b8;hp=78365cab5332c8ffae68325117499c69ae6e703f;hpb=43d66c8c2d4d3d4dee1309856b6ce6c5393682e5;p=mesa.git diff --git a/src/mesa/main/format_utils.h b/src/mesa/main/format_utils.h index 78365cab533..9b6d1c39be7 100644 --- a/src/mesa/main/format_utils.h +++ b/src/mesa/main/format_utils.h @@ -32,7 +32,7 @@ #define FORMAT_UTILS_H #include "formats.h" -#include "imports.h" + #include "macros.h" #include "util/rounding.h" #include "util/half_float.h" @@ -87,7 +87,7 @@ _mesa_float_to_unorm(float x, unsigned dst_bits) else if (x > 1.0f) return MAX_UINT(dst_bits); else - return _mesa_lroundevenf(x * MAX_UINT(dst_bits)); + return _mesa_i64roundevenf(x * MAX_UINT(dst_bits)); } static inline unsigned