mesa/gallium: do not use enum for bit-allocated member
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 13 Mar 2020 12:56:44 +0000 (13:56 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 21:56:21 +0000 (21:56 +0000)
commit013d9e40feed336d983b728357e4ce77b871c36d
treeaee6961976f2466386c8503903c1583c989810ce
parenta842dc154d3cac5af7ff30f7d0501ae42a1d1d7b
mesa/gallium: do not use enum for bit-allocated member

The signedness of enums are undefined, so on platforms with signed
enums, this isn't going to work. One such platform is Microsoft Windows.

So let's just use an unsigned here instead.

Fixes: b1c4c4c7f53 ("mesa/gallium: automatically lower alpha-testing")
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4648>
src/mesa/state_tracker/st_program.h