aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2020-03-13 13:56:44 +0100
committerMarge Bot <[email protected]>2020-04-21 21:56:21 +0000
commit013d9e40feed336d983b728357e4ce77b871c36d (patch)
treeaee6961976f2466386c8503903c1583c989810ce /src/mesa
parenta842dc154d3cac5af7ff30f7d0501ae42a1d1d7b (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4648>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_program.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h
index 286fabc0117..7483450eae5 100644
--- a/src/mesa/state_tracker/st_program.h
+++ b/src/mesa/state_tracker/st_program.h
@@ -137,7 +137,7 @@ struct st_fp_variant_key
GLuint lower_two_sided_color:1;
GLuint lower_flatshade:1;
- enum compare_func lower_alpha_func:3;
+ unsigned lower_alpha_func:3;
/** needed for ATI_fragment_shader */
char texture_targets[MAX_NUM_FRAGMENT_REGISTERS_ATI];