v3d: 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:
committed by
Marge Bot
parent
8ce27e7ed2
commit
5c8c2ec85c
@@ -88,9 +88,7 @@ static void
|
||||
initialise_coverage_var(struct lower_line_smooth_state *state,
|
||||
nir_function_impl *impl)
|
||||
{
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
|
||||
b.cursor = nir_before_block(nir_start_block(impl));
|
||||
nir_builder b = nir_builder_at(nir_before_block(nir_start_block(impl)));
|
||||
|
||||
nir_ssa_def *line_width = nir_load_line_width(&b);
|
||||
|
||||
|
||||
@@ -385,10 +385,7 @@ v3d_nir_lower_logic_ops_block(nir_block *block, struct v3d_compile *c)
|
||||
continue;
|
||||
}
|
||||
|
||||
nir_function_impl *impl =
|
||||
nir_cf_node_get_function(&block->cf_node);
|
||||
nir_builder b = nir_builder_create(impl);
|
||||
b.cursor = nir_before_instr(&intr->instr);
|
||||
nir_builder b = nir_builder_at(nir_before_instr(&intr->instr));
|
||||
v3d_nir_lower_logic_op_instr(c, &b, intr, rt);
|
||||
|
||||
progress = true;
|
||||
|
||||
Reference in New Issue
Block a user