From 20a581260633cb6d0d8ca571e7f3e886298a5733 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 11 Nov 2014 12:16:55 -0800 Subject: nir: Add a fused multiply-add peephole --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 22c8c0a39f5..9141dc68196 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -63,6 +63,8 @@ fs_visitor::emit_nir_code() nir_validate_shader(nir); nir_opt_peephole_select(nir); nir_validate_shader(nir); + nir_opt_peephole_ffma(nir); + nir_validate_shader(nir); nir_print_shader(nir, stderr); nir_convert_from_ssa(nir); -- cgit v1.2.3