summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-12-12 11:13:10 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:20:20 -0800
commitd5410bd8f65b8d0f845dc8beccd498b6fa098660 (patch)
tree4d944b67568f4e49e7c5e91f85ad057593321f11 /src/mesa
parent0e145a951e64e0b955e8315e22edf9e2ab4581ec (diff)
nir: Add an algebraic optimization pass
This pass uses the previously built algebraic transformations framework and should act as an example for anyone else wanting to make an algebraic transformation pass for NIR. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 1a1be97cf1d..120bd5c6d8b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -53,7 +53,7 @@ fs_visitor::emit_nir_code()
nir_validate_shader(nir);
progress |= nir_opt_peephole_select(nir);
nir_validate_shader(nir);
- progress |= nir_opt_peephole_ffma(nir);
+ progress |= nir_opt_algebraic(nir);
nir_validate_shader(nir);
} while (progress);