mesa: add ASTC 2D LDR decoder

Tested-by: Mike Lothian <mike@fireburn.co.uk>
Tested-By: Gert Wollny <gert.wollny@collabora.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
Marek Olšák
2018-02-13 16:02:14 +01:00
parent 5be352b430
commit 38ab39f650
8 changed files with 2031 additions and 0 deletions

View File

@@ -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)