glsl: inline functions with unsupported return type before converting to nir
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Fri, 29 May 2020 10:51:32 +0000 (13:51 +0300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 8 Jun 2020 15:01:50 +0000 (15:01 +0000)
commit9f1cf0e4915262c68e5fb8bd8e87fbd0af30dbe2
tree821ad1b7c5d17fa2b99331874e5e0b497acc06d7
parent43e69475ad8bb0edb9a454af690c3c8ac69af866
glsl: inline functions with unsupported return type before converting to nir

glsl_to_nir doesn't expect non-vector/scalar return types in functions.

Fixes: 7e60d5a501f311fa5e7bca5335adc6013dc1aeb9
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3058
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3060
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Tested-by: Witold Baryluk <witold.baryluk@gmail.com>
Reviewed-by: Witold Baryluk <witold.baryluk@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5333>
src/compiler/glsl/glsl_to_nir.cpp