pan/va: Use builder in va_lower_isel
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 22 Jul 2022 19:29:43 +0000 (15:29 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:23 +0000 (16:03 +0000)
commitde1702ef03add6e613236e6cb1009ee1e2e29eb8
tree36000975665d1ee135f3611117deea9a53ca01fe
parentd599deea7f94ca60a59953223be90fbbe08eea12
pan/va: Use builder in va_lower_isel

..where necessary to avoid appending sources. This removes a bunch more cases
where we would need to reallocate sources. The lifetime management is simpler if
we just reallocate the whole instruction. In theory this is a slight overhead
but it's probably worth it to avoid the complexity otherwise.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/valhall/test/test-lower-isel.cpp
src/panfrost/bifrost/valhall/va_compiler.h
src/panfrost/bifrost/valhall/va_lower_isel.c