glsl: Fix function return typechecking
authorOscar Blumberg <carnaval@12-10e.me>
Mon, 11 Feb 2019 16:46:20 +0000 (17:46 +0100)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 25 Feb 2019 06:49:06 +0000 (08:49 +0200)
commitda9c0307637b630a8178a8169ee5ede108a77a81
tree5829ef4356403ccff76e98094b40ed80e4127be0
parentbd0ad651e0e99898ef46cb9b73e37de9f6904cb4
glsl: Fix function return typechecking

apply_implicit_conversion only converts and check base types but we
need actual type equality for function returns, otherwise you can
return a vec2 from a function declared as returning a float.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/ast_to_hir.cpp