nir: get ffma support from NIR options for nir_lower_flrp
[mesa.git] / src / gallium / drivers / r600 / r600_shader.c
index 346498cd98aaca08fb7cebff8480203cbb540290..f58f8ccbe8bcdb40e8e0bc4cf9fd95e7c4c17523 100644 (file)
@@ -200,9 +200,10 @@ int r600_pipe_shader_create(struct pipe_context *ctx,
                        if (!ctx->screen->get_param(ctx->screen, PIPE_CAP_DOUBLES)) {
                                NIR_PASS_V(sel->nir, nir_lower_regs_to_ssa);
                                NIR_PASS_V(sel->nir, nir_lower_alu_to_scalar, NULL, NULL);
-                               NIR_PASS_V(sel->nir, nir_lower_int64, ~0);
-                               NIR_PASS_V(sel->nir, nir_opt_vectorize);
+                               NIR_PASS_V(sel->nir, nir_lower_int64);
+                               NIR_PASS_V(sel->nir, nir_opt_vectorize, NULL, NULL);
                        }
+                       NIR_PASS_V(sel->nir, nir_lower_flrp, ~0, false);
                }
                nir_tgsi_scan_shader(sel->nir, &sel->info, true);