mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 10:20:20 +01:00
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:
parent
bc6b527b52
commit
0568e57d21
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue