radeonsi: Use nir_builder_at

Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23883>
This commit is contained in:
Konstantin Seurer 2023-06-27 13:01:27 +02:00 committed by Marge Bot
parent 977f385e65
commit 364edfefe4

View file

@ -89,11 +89,9 @@ get_vertex_index_for_all_inputs(nir_shader *nir, struct lower_vs_inputs_state *s
{
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
nir_builder builder = nir_builder_create(impl);
nir_builder builder = nir_builder_at(nir_before_cf_list(&impl->body));
nir_builder *b = &builder;
b->cursor = nir_before_cf_list(&impl->body);
const struct si_shader_selector *sel = s->shader->selector;
const union si_shader_key *key = &s->shader->key;