spirv,nir: lower frexp_exp/frexp_sig inside a new NIR pass
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 22 Mar 2019 08:24:57 +0000 (09:24 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 22 Mar 2019 18:41:46 +0000 (19:41 +0100)
commit23d30f4099fac0e1fcbd7adf315a186f553e48d2
treec96617c3df226f62b78eefbce74d1b9c1277be3c
parent6ae5797243a6ace4d65088620291884be2a09fa6
spirv,nir: lower frexp_exp/frexp_sig inside a new NIR pass

This lowering isn't needed for RADV because AMDGCN has two
instructions. It will be disabled for RADV in an upcoming series.

While we are at it, factorize a little bit.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/amd/vulkan/radv_shader.c
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_frexp.c [new file with mode: 0644]
src/compiler/spirv/vtn_glsl450.c
src/freedreno/vulkan/tu_shader.c
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
src/intel/vulkan/anv_pipeline.c