gallium: lower raw 64-bit vertex formats in cso/vbuf instead of st/mesa
authorMarek Olšák <marek.olsak@amd.com>
Thu, 27 May 2021 03:45:45 +0000 (23:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 2 Aug 2021 19:58:28 +0000 (19:58 +0000)
commit8b6fd3f786d3cf1d9b1ee1dc5be1c8cb885ed77a
tree0a8418f2442821888d4eca949a3bdf9b4605280c
parent7b23b7c88e5de2a542cfaa2d99c40aa1a2547c5c
gallium: lower raw 64-bit vertex formats in cso/vbuf instead of st/mesa

This lower each 64-bit vertex element into 1 or 2 32-bit vertex elements.
The motivation is to simplify st/mesa, which uses a lot more complicated
code to do the same thing, and do the lowering only on a cso_cache miss.

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11370>
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_helpers.c
src/gallium/auxiliary/util/u_helpers.h
src/gallium/auxiliary/util/u_vbuf.c