r600: Lower lerp after tgsi_to_nir
authorGert Wollny <gert.wollny@collabora.com>
Sat, 9 May 2020 16:03:52 +0000 (18:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 07:52:13 +0000 (07:52 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>

src/gallium/drivers/r600/r600_shader.c

index 346498cd98aaca08fb7cebff8480203cbb540290..0345fad875cb0518f996c6916d98876e4a9df7c2 100644 (file)
@@ -203,6 +203,7 @@ int r600_pipe_shader_create(struct pipe_context *ctx,
                                NIR_PASS_V(sel->nir, nir_lower_int64, ~0);
                                NIR_PASS_V(sel->nir, nir_opt_vectorize);
                        }
+                       NIR_PASS_V(sel->nir, nir_lower_flrp, ~0, false, false);
                }
                nir_tgsi_scan_shader(sel->nir, &sel->info, true);