diff options
author | Marek Olšák <[email protected]> | 2018-02-13 16:02:14 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-07-31 18:09:57 -0400 |
commit | 38ab39f6501f78ea7048e8a16a97fdb075b9d8c7 (patch) | |
tree | 8c1166d4d47c30d4e2a1316f62fa33e971c69bb6 /src/util/half_float.h | |
parent | 5be352b4303a759c8ebbbd047365e94f66a098f0 (diff) |
mesa: add ASTC 2D LDR decoder
Tested-by: Mike Lothian <[email protected]>
Tested-By: Gert Wollny <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/util/half_float.h')
-rw-r--r-- | src/util/half_float.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/half_float.h b/src/util/half_float.h index b3bc3f687ad..01557424735 100644 --- a/src/util/half_float.h +++ b/src/util/half_float.h @@ -32,8 +32,13 @@ extern "C" { #endif +#define FP16_ONE 0x3C00 +#define FP16_ZERO 0 + uint16_t _mesa_float_to_half(float val); float _mesa_half_to_float(uint16_t val); +uint8_t _mesa_half_to_unorm8(uint16_t v); +uint16_t _mesa_uint16_div_64k_to_half(uint16_t v); static inline bool _mesa_half_is_negative(uint16_t h) |