pan/lower_helper_invocation: clean up

drive-by.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33939>
This commit is contained in:
Alyssa Rosenzweig 2025-03-07 09:56:09 -05:00 committed by Marge Bot
parent bc6b527b52
commit 0568e57d21

View file

@ -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);
}