diff --git a/src/panfrost/util/pan_lower_helper_invocation.c b/src/panfrost/util/pan_lower_helper_invocation.c index d9f47ecab8e..4c75ae948fe 100644 --- a/src/panfrost/util/pan_lower_helper_invocation.c +++ b/src/panfrost/util/pan_lower_helper_invocation.c @@ -39,16 +39,13 @@ pan_lower_helper_invocation_instr(nir_builder *b, nir_intrinsic_instr *intr, b->cursor = nir_before_instr(&intr->instr); nir_def *mask = nir_load_sample_mask_in(b); - nir_def *eq = nir_ieq_imm(b, mask, 0); - nir_def_rewrite_uses(&intr->def, eq); - + nir_def_replace(&intr->def, nir_ieq_imm(b, mask, 0)); return true; } bool pan_lower_helper_invocation(nir_shader *shader) { - return nir_shader_intrinsics_pass( - shader, pan_lower_helper_invocation_instr, - nir_metadata_control_flow, NULL); + return nir_shader_intrinsics_pass(shader, pan_lower_helper_invocation_instr, + nir_metadata_control_flow, NULL); }