mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
pan/mdg: call nir_lower_is_helper_invocation
needed to avoid regression from the next patch. backported because the next patch is too Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Cc: mesa-stable 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
d92304852a
commit
e90ccf91a3
1 changed files with 5 additions and 3 deletions
|
|
@ -478,11 +478,13 @@ midgard_preprocess_nir(nir_shader *nir, unsigned gpu_id)
|
|||
/* Midgard image ops coordinates are 16-bit instead of 32-bit */
|
||||
NIR_PASS(_, nir, midgard_nir_lower_image_bitsize);
|
||||
|
||||
if (nir->info.stage == MESA_SHADER_FRAGMENT)
|
||||
if (nir->info.stage == MESA_SHADER_FRAGMENT) {
|
||||
NIR_PASS(_, nir, nir_lower_helper_writes, true);
|
||||
NIR_PASS(_, nir, nir_lower_is_helper_invocation);
|
||||
NIR_PASS(_, nir, pan_lower_helper_invocation);
|
||||
NIR_PASS(_, nir, pan_lower_sample_pos);
|
||||
}
|
||||
|
||||
NIR_PASS(_, nir, pan_lower_helper_invocation);
|
||||
NIR_PASS(_, nir, pan_lower_sample_pos);
|
||||
NIR_PASS(_, nir, midgard_nir_lower_algebraic_early);
|
||||
NIR_PASS(_, nir, nir_lower_alu_to_scalar, mdg_should_scalarize, NULL);
|
||||
NIR_PASS(_, nir, nir_lower_flrp, 16 | 32 | 64, false /* always_precise */);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue