glsl: move half<->float convertion to util
authorRob Clark <robclark@freedesktop.org>
Sat, 10 Oct 2015 17:26:03 +0000 (13:26 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 16 Oct 2015 23:33:37 +0000 (19:33 -0400)
commit183db3a64557d5d231ef58ab5666286f323ff333
treef3216746bf09ad9d42e381b8c623f902f7d41740
parent60690cb3b3082b7397c48769ec28b5570f6b7d7e
glsl: move half<->float convertion to util

Needed in NIR too, so move out of mesa/main/imports.c

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
13 files changed:
src/glsl/Makefile.am
src/glsl/ir_constant_expression.cpp
src/glsl/nir/nir_constant_expressions.py
src/mesa/drivers/dri/i965/brw_sampler_state.c
src/mesa/main/format_utils.h
src/mesa/main/imports.c
src/mesa/main/imports.h
src/mesa/main/mipmap.c
src/mesa/main/texcompress_bptc.c
src/mesa/tnl/t_draw.c
src/util/Makefile.sources
src/util/half_float.c [new file with mode: 0644]
src/util/half_float.h [new file with mode: 0644]