From: Samuel Pitoiset Date: Fri, 21 Apr 2017 08:42:12 +0000 (+0200) Subject: glsl: simplify glsl_type::is_integer_32_64() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=362d9de29ce18eff404a9e5fb23d0c7d98827f71;p=mesa.git glsl: simplify glsl_type::is_integer_32_64() Signed-off-by: Samuel Pitoiset Reviewed-by: Samuel Iglesias Gonsálvez Reviewed-by: Edward O'Callaghan --- diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index b98ce66c48d..403663f7b87 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -491,8 +491,7 @@ struct glsl_type { */ bool is_integer_32_64() const { - return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT) || - (base_type == GLSL_TYPE_UINT64) || (base_type == GLSL_TYPE_INT64); + return is_integer() || is_integer_64(); } /**