glsl: fall back to inexact function-match
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 30 Oct 2018 14:15:58 +0000 (15:15 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 2 Nov 2018 10:10:36 +0000 (11:10 +0100)
commitecab2d6f1481e1e50b20b54ae88dd949c1dafab6
tree54527576c50cd9cac6a2a813e94c11329a13a2e0
parente975c5b785f9e6d0c5ccec12a027b19a6073130c
glsl: fall back to inexact function-match

In GLES, we currently either need an exact match with a local function,
or an exact match with a builtin.

However, if we add support for implicit conversions for GLES shaders,
we also need to fall back to a non-exact match in the case where there
were no builtin match either.

Luckily, we already have a variable ready with this, so let's just
return it if the builtin-search failed.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/ast_function.cpp