nir: Use 'unsigned' instead of enum types in nir_variable::data
authorJesse Natalie <jenatali@microsoft.com>
Wed, 19 Aug 2020 21:34:11 +0000 (14:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 22:22:06 +0000 (22:22 +0000)
commit42d7bbfc2286428de6a12a5071c12314f41b9178
treed8a4bd0623f43b9cad0d9b729927b44939b30d23
parent1ccd681109e80516430a3be489dca1be15316d50
nir: Use 'unsigned' instead of enum types in nir_variable::data

MSVC treats enums as signed, so storing values that use the topmost
bit of the explicitly sized field loads as a negative value instead.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6393>
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.h