aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-05-21 00:04:57 +0200
committerKarol Herbst <[email protected]>2019-05-21 08:47:16 +0000
commit67f94968936ea84335a37afbc36033dbc7353c95 (patch)
tree6ff75a56ec8fd0ae851d432f28a53267515ab4fe /src
parent4785e50e7531d9bca5a044f3b57aefb95d463ab1 (diff)
glsl: handle 8 and 16 bit ints in glsl_base_type_is_integer
Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h
index 2fd93f7b945..9e8b093c9de 100644
--- a/src/compiler/glsl_types.h
+++ b/src/compiler/glsl_types.h
@@ -109,7 +109,11 @@ static inline bool glsl_base_type_is_64bit(enum glsl_base_type type)
static inline bool glsl_base_type_is_integer(enum glsl_base_type type)
{
- return type == GLSL_TYPE_UINT ||
+ return type == GLSL_TYPE_UINT8 ||
+ type == GLSL_TYPE_INT8 ||
+ type == GLSL_TYPE_UINT16 ||
+ type == GLSL_TYPE_INT16 ||
+ type == GLSL_TYPE_UINT ||
type == GLSL_TYPE_INT ||
type == GLSL_TYPE_UINT64 ||
type == GLSL_TYPE_INT64 ||