From 0d1fb380b126a1eb03c0be1abea1969b4419aa9a Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 6 Jun 2019 11:30:45 -0500 Subject: [PATCH] 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 --- src/compiler/nir_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2