From: Jason Ekstrand Date: Thu, 6 Jun 2019 16:30:45 +0000 (-0500) Subject: glsl/types: Handle all bit sizes in glsl_type_is_integer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d1fb380b126a1eb03c0be1abea1969b4419aa9a;p=mesa.git glsl/types: Handle all bit sizes in glsl_type_is_integer All of the callers of this function really just want to know if the type is an integer and don't care about bit size. Reviewed-by: Karol Herbst --- diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index e2dfc40ff0b..7fa1741515d 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -355,7 +355,7 @@ glsl_type_is_boolean(const struct glsl_type *type) bool glsl_type_is_integer(const struct glsl_type *type) { - return type->is_integer(); + return glsl_base_type_is_integer(type->base_type); } bool