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

View File

@@ -103,8 +103,7 @@ static void
lower_bitmap_impl(nir_function_impl *impl,
const nir_lower_bitmap_options *options)
{
nir_builder b = nir_builder_create(impl);
b.cursor = nir_before_cf_list(&impl->body);
nir_builder b = nir_builder_at(nir_before_cf_list(&impl->body));
lower_bitmap(impl->function->shader, &b, options);