summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-03-23 17:11:49 -0700
committerJason Ekstrand <[email protected]>2015-04-01 12:51:03 -0700
commitda294f9b2f666f487001b2a25627c867c40eb3d9 (patch)
tree806d9acaaf59922c3947837fe0611c5c74e90bcc /src/mesa/drivers
parent1779dc060fa8d55d979f887e41f1ec2c793859b7 (diff)
nir/algebraic: Add a seperate section for "late" optimizations
i965/nir: Use the late optimizations Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp3
1 files changed, 3 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 21e52fe0e45..204e713ea55 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -147,6 +147,9 @@ fs_visitor::emit_nir_code()
nir_optimize(nir);
+ nir_opt_algebraic_late(nir);
+ nir_validate_shader(nir);
+
nir_lower_locals_to_regs(nir);
nir_validate_shader(nir);