gallium: change pipe_vertex_element::src_format to uint8_t
authorMarek Olšák <marek.olsak@amd.com>
Fri, 28 May 2021 19:22:03 +0000 (15:22 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 2 Aug 2021 19:58:28 +0000 (19:58 +0000)
commite002f5a086c7fc8314d3c28a603875f5ec5e5cef
tree167e80d968555f8eece0e266242373e1d4cc9343
parentdf5a2bbb41552cb030000ca4421fd1a4036ca974
gallium: change pipe_vertex_element::src_format to uint8_t

This removes the bitfield packing/unpacking.

pipe_format entries are reordered to have vertex formats first because
vertex formats must be <= 255.

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11370>
src/gallium/drivers/d3d12/d3d12_context.cpp
src/gallium/drivers/swr/swr_state.cpp
src/gallium/include/pipe/p_format.h
src/gallium/include/pipe/p_state.h
src/mesa/main/varray.c