st/mesa: optimize uploading zero-stride vertex attribs
authorMarek Olšák <marek.olsak@amd.com>
Tue, 8 Nov 2022 02:18:33 +0000 (21:18 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 03:18:53 +0000 (03:18 +0000)
commit98b7c4ea0967c94bb397d05c19cb4d3abe66bca3
treebcec81aa44b94db30f711c1380fefa2ccced5213
parenta18b9d071df60d5335b69fca793a743dd0a9d8cc
st/mesa: optimize uploading zero-stride vertex attribs

Instead of memcpy into a temporary array and then upload from that,
upload into a buffer directly.

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/state_tracker/st_atom_array.cpp