glsl: set error_emitted true if type not ok for assignment
authorTapani Pälli <tapani.palli@intel.com>
Sat, 14 Mar 2020 06:57:02 +0000 (08:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 26 Mar 2020 12:41:12 +0000 (12:41 +0000)
commit0847fe6e7fa6ee07420c6eed95bfee036748bc6a
tree39aa3bbbbb4fa556044203e04bc1589715196d03
parent05069e1f0794aadd40ce9269f858e50c64254388
glsl: set error_emitted true if type not ok for assignment

Patch changes also existing assert to not trigger when we have
error types in assignment.

v2: simplify, cleanup (Ian)

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2629
Fixes: d1fa69ed61d ("glsl: do not attempt assignment if operand type not parsed correctly")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4178>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4178>
src/compiler/glsl/ast_to_hir.cpp