r300: add explicit flrp lowering

Even though we set .lower_flrp32 = true there is no actuall flrp
lowering in nir_opt_algebraic. Mesa does not produce any but nine does,
so lower it explicitly to fix nine.

Fixes: f8a5cba3b4
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27467>
(cherry picked from commit d78a913bda8cec60553c515cd106ff2a9b8b6d27)
This commit is contained in:
Pavel Ondračka 2024-02-04 21:55:09 +01:00 committed by Eric Engestrom
parent f36d69d1d6
commit abd5842ed7
2 changed files with 2 additions and 1 deletions

View file

@ -3544,7 +3544,7 @@
"description": "r300: add explicit flrp lowering",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f8a5cba3b4265ccf088c05d9d44f36f42c961e0b",
"notes": null

View file

@ -80,6 +80,7 @@ r300_optimize_nir(struct nir_shader *s, struct pipe_screen *screen)
NIR_PASS_V(s, nir_lower_vars_to_ssa);
NIR_PASS(progress, s, nir_copy_prop);
NIR_PASS(progress, s, r300_nir_lower_flrp);
NIR_PASS(progress, s, nir_opt_algebraic);
if (s->info.stage == MESA_SHADER_VERTEX) {
if (!is_r500)