summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-11 12:16:55 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:01 -0800
commit20a581260633cb6d0d8ca571e7f3e886298a5733 (patch)
treeeec8d244a2621a19da777c66e41544cf19aa9742 /src/mesa/drivers/dri/i965
parent02ee1d22a1c64695cc7d6e9eee441e735a3bf6ad (diff)
nir: Add a fused multiply-add peephole
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp2
1 files changed, 2 insertions, 0 deletions
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);