clover: Reserve vector memory in make_text_section
authorMichel Dänzer <mdaenzer@redhat.com>
Mon, 13 Feb 2023 11:54:12 +0000 (12:54 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Feb 2023 12:59:44 +0000 (12:59 +0000)
commit2a626f999a201abf6068578ec1684f12b2b3aefb
tree9d906ae560bd8f090fd962342802cd87c044dcdd
parent53ce756eebef47a37ababc6c3c701752b6451366
clover: Reserve vector memory in make_text_section

This isn't strictly required, but it works around
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100366 , and it might
avoid a memory reallocation.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21236>
src/gallium/frontends/clover/spirv/invocation.cpp