Mesa (master): nir: allow opt_peephole_select to handle nir_instr_type_deref

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 17 23:53:40 UTC 2018


Module: Mesa
Branch: master
Commit: c4188a9b9f45a2f2f9e3be99fe9861bec091b924
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4188a9b9f45a2f2f9e3be99fe9861bec091b924

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Mon Jul 16 09:26:33 2018 +1000

nir: allow opt_peephole_select to handle nir_instr_type_deref

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/compiler/nir/nir_opt_peephole_select.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/nir/nir_opt_peephole_select.c b/src/compiler/nir/nir_opt_peephole_select.c
index 8fa99117f4..ad9d0abec0 100644
--- a/src/compiler/nir/nir_opt_peephole_select.c
+++ b/src/compiler/nir/nir_opt_peephole_select.c
@@ -89,6 +89,7 @@ block_check_for_allowed_instrs(nir_block *block, unsigned *count, bool alu_ok)
          break;
       }
 
+      case nir_instr_type_deref:
       case nir_instr_type_load_const:
          break;
 




More information about the mesa-commit mailing list