[Mesa-dev,4/4] i965: use the load-combine pass

Submitted by Iago Toral Quiroga on Oct. 27, 2015, 9:29 a.m.

Details

Message ID 1445938141-28845-5-git-send-email-itoral@igalia.com
State New
Headers show
Series "Nir: implement a load-combine pass" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga Oct. 27, 2015, 9:29 a.m.
---
 src/mesa/drivers/dri/i965/brw_nir.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 11f1113..dd3b06c 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -170,6 +170,8 @@  nir_optimize(nir_shader *nir, bool is_scalar)
       nir_validate_shader(nir);
       progress |= nir_opt_constant_folding(nir);
       nir_validate_shader(nir);
+      progress |= nir_opt_load_combine(nir);
+      nir_validate_shader(nir);
       progress |= nir_opt_dead_cf(nir);
       nir_validate_shader(nir);
       progress |= nir_opt_remove_phis(nir);