st/mesa: use enum types instead of int/unsigned (v3)
authorBrian Paul <brianp@vmware.com>
Mon, 6 Nov 2017 16:19:55 +0000 (09:19 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 03:35:17 +0000 (20:35 -0700)
commitd4726b13183c45fbc0869596c128f7c030b3cd9c
tree1df729927e75b9de99db4d191e9d2cb3bec9bce0
parentfe81e1f9751cca8de33c3c45f6fc181c626c57f0
st/mesa: use enum types instead of int/unsigned (v3)

Use the proper enum types for various variables.  Makes life in gdb
a little nicer.  Note that the size of enum bitfields must be one
larger so the high bit is always zero (for MSVC).

v2: also increase size of image_format bitfield, per Eric Engestrom.
v3: use the new ASSERT_BITFIELD_SIZE() macro

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi_private.h
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_mesa_to_tgsi.h