nir/lower_doubles: Inline functions directly in lower_doubles
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Mar 2019 21:55:19 +0000 (15:55 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 6 Mar 2019 17:24:57 +0000 (17:24 +0000)
commite02959f442ed6546fb632a153ffc32848968038f
tree7704af3591371b6f8a83765e1cc598c1e1c4e25a
parentf25ca337b40f1d5846ac146f00fba77b1610be37
nir/lower_doubles: Inline functions directly in lower_doubles

Instead of trusting the caller to already have created a softfp64
function shader and added all its functions to our shader, we simply
take the softfp64 shader as an argument and do the function inlining
ouselves.  This means that there's no more nasty functions lying around
that the caller needs to worry about cleaning up.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_double_ops.c
src/gallium/drivers/iris/iris_program.c
src/intel/blorp/blorp.c
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_nir.h
src/intel/vulkan/anv_pipeline.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/state_tracker/st_glsl_to_nir.cpp