From 67f94968936ea84335a37afbc36033dbc7353c95 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Tue, 21 May 2019 00:04:57 +0200 Subject: [PATCH] glsl: handle 8 and 16 bit ints in glsl_base_type_is_integer Signed-off-by: Karol Herbst Reviewed-by: Timothy Arceri Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Jason Ekstrand --- src/compiler/glsl_types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 || -- 2.30.2