mesa: add more cases to the gallium vertex_formats table
authorMarek Olšák <marek.olsak@amd.com>
Tue, 8 Nov 2022 00:33:32 +0000 (19:33 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 03:18:53 +0000 (03:18 +0000)
commit1b4278117a58625d20fdedfb1787d0979fae7b25
treec5d69a58099cbc2dc0f4ab18f7d2757d5696da71
parent7089a4c59f20311f841a66e927cb06106ae4e70b
mesa: add more cases to the gallium vertex_formats table

The way we convert gltype to the index changed to handle more enums.
The reason why (gltype & 0x3f) works is because of how the enums are
defined.

Also change the type to uint8_t. We only need the low 7 bits of
the pipe format enum.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19783>
src/mesa/main/varray.c