nir: add int_to_float lowering pass
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 1 May 2019 05:25:05 +0000 (22:25 -0700)
committerQiang Yu <yuq825@gmail.com>
Tue, 7 May 2019 01:07:27 +0000 (01:07 +0000)
commit443c5a3cd62d55c7969c873d21bc1af2ee21a600
treee4ed3e0e5e2f7e326efcfc20b77c3b55fc8a231e
parent49025292fbbf285d4473d2c20a83b6c533a79d45
nir: add int_to_float lowering pass

This new pass lowers ints and bools to floats. It allows hardware
that doesn't have native integers (e.g. Mali4x0) use the same
code paths as modern hardware.

It uses newly introduced pass to gather SSA types and should be
used as late as possible.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_int_to_float.c [new file with mode: 0644]