glsl: handle 8 and 16 bit ints in glsl_base_type_is_integer
authorKarol Herbst <kherbst@redhat.com>
Mon, 20 May 2019 22:04:57 +0000 (00:04 +0200)
committerKarol Herbst <karolherbst@gmail.com>
Tue, 21 May 2019 08:47:16 +0000 (08:47 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl_types.h

index 2fd93f7b945281e813c085262b75e246630dfe05..9e8b093c9de78b470c76bdf54aa8f36e746d67ba 100644 (file)
@@ -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 ||