nir: Use nir_builder_at

Reviewed-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 12:57:29 +02:00
committed by Marge Bot
parent c1b472c834
commit 574079e354
17 changed files with 28 additions and 48 deletions
@@ -145,8 +145,8 @@ nir_zero_initialize_shared_memory(nir_shader *shader,
assert(chunk_size > 0);
assert(chunk_size % 4 == 0);
nir_builder b = nir_builder_create(nir_shader_get_entrypoint(shader));
b.cursor = nir_before_cf_list(&b.impl->body);
nir_function_impl *impl = nir_shader_get_entrypoint(shader);
nir_builder b = nir_builder_at(nir_before_cf_list(&impl->body));
assert(!shader->info.workgroup_size_variable);
const unsigned local_count = shader->info.workgroup_size[0] *