treewide: Remove all usage of nir_builder_init with nir_builder_create and nir_builder_at
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24038>
This commit is contained in:
@@ -144,8 +144,8 @@ anv_nir_compute_push_layout(nir_shader *nir,
|
||||
|
||||
if (has_push_intrinsic) {
|
||||
nir_foreach_function_impl(impl, nir) {
|
||||
nir_builder build, *b = &build;
|
||||
nir_builder_init(b, impl);
|
||||
nir_builder build = nir_builder_create(impl);
|
||||
nir_builder *b = &build;
|
||||
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
|
||||
Reference in New Issue
Block a user