diff options
author | Jason Ekstrand <[email protected]> | 2019-06-06 11:30:45 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-19 20:28:52 +0000 |
commit | 0d1fb380b126a1eb03c0be1abea1969b4419aa9a (patch) | |
tree | 5776762f13731054afe752f48c065dde01828b0a /src/compiler | |
parent | feb0cdcb5249f60522ce024c578b92f11d5269bd (diff) |
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 <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |