projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb0cdc
)
glsl/types: Handle all bit sizes in glsl_type_is_integer
author
Jason Ekstrand
<jason@jlekstrand.net>
Thu, 6 Jun 2019 16:30:45 +0000
(11:30 -0500)
committer
Jason Ekstrand
<jason@jlekstrand.net>
Wed, 19 Jun 2019 20:28:52 +0000
(20:28 +0000)
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@redhat.com>
src/compiler/nir_types.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/nir_types.cpp
b/src/compiler/nir_types.cpp
index e2dfc40ff0b0c37ab6c4ac7c26a5c6e42691f973..7fa1741515db6742a5cff61a9e7838bf2c2147f2 100644
(file)
--- 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