summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2021-04-19 11:52:12 -0700
committerMarge Bot <eric+marge@anholt.net>2021-04-20 00:28:35 +0000
commit0e2566a8a7e327b21087e7889d8e8028a5cc5edd (patch)
tree12519f11ce54932d2974b1c551afd4fe66e2e231
parent67b5fba62ae578f4748ec9acd667d7b74644cb3c (diff)
shader_enums: Fix MSVC warning C4334 (32bit shift cast to 64bit)
The warning is triggered when assigning into inputs_read, which is 64bit. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-By: Bill Kristiansen <billkris@microsoft.com> Cc: mesa-stable@lists.freedesktop.org Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10331>
-rw-r--r--src/compiler/shader_enums.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h
index 8883e8d2aa7..7522bdbd77c 100644
--- a/src/compiler/shader_enums.h
+++ b/src/compiler/shader_enums.h
@@ -231,7 +231,7 @@ const char *gl_vert_attrib_name(gl_vert_attrib attrib);
#define VERT_BIT_POINT_SIZE BITFIELD_BIT(VERT_ATTRIB_POINT_SIZE)
#define VERT_BIT_GENERIC0 BITFIELD_BIT(VERT_ATTRIB_GENERIC0)
-#define VERT_BIT(i) BITFIELD_BIT(i)
+#define VERT_BIT(i) BITFIELD64_BIT(i)
#define VERT_BIT_ALL BITFIELD_RANGE(0, VERT_ATTRIB_MAX)
#define VERT_BIT_FF(i) VERT_BIT(i)