mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-26 00:30:31 +01:00
glsl: handle 8 and 16 bit ints in glsl_base_type_is_integer
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>
This commit is contained in:
parent
4785e50e75
commit
67f9496893
1 changed files with 5 additions and 1 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue