Mesa (master): glsl/types: Handle all bit sizes in glsl_type_is_integer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 19 20:40:16 UTC 2019
Module: Mesa
Branch: master
Commit: 0d1fb380b126a1eb03c0be1abea1969b4419aa9a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d1fb380b126a1eb03c0be1abea1969b4419aa9a
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Thu Jun 6 11:30:45 2019 -0500
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 <kherbst at redhat.com>
---
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
More information about the mesa-commit
mailing list