glsl: use NIR function inlining for drivers that use glsl_to_nir()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 20 Feb 2019 06:13:49 +0000 (17:13 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 6 Mar 2019 23:05:20 +0000 (23:05 +0000)
commit7e60d5a501f311fa5e7bca5335adc6013dc1aeb9
tree9dac6cae42a538fd3d904920e11058d8a1c8ba8c
parent7530d4abfcf9d39fb1b4abeb77cdbf6cf1d411a7
glsl: use NIR function inlining for drivers that use glsl_to_nir()

glsl_to_nir() is still missing support for converting certain
functions to NIR, so for those we use the GLSL IR optimisations
to remove the functions.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/glsl/glsl_to_nir.h
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
src/gallium/drivers/panfrost/midgard/cmdline.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/state_tracker/st_glsl_to_nir.cpp