glsl: add has_implicit_uint_to_int_conversion()-helper
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 25 Oct 2018 14:01:00 +0000 (16:01 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 2 Nov 2018 10:10:36 +0000 (11:10 +0100)
commite975c5b785f9e6d0c5ccec12a027b19a6073130c
tree614c5fca869f3b990956740325babc4f9f7c9781
parent12f001f013c71ac43b67df7bf67f9cd3581c9871
glsl: add has_implicit_uint_to_int_conversion()-helper

This makes the code a bit easier to read, as well as reduces repetition,
especially when we add support for EXT_shader_implicit_conversions.

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