nir/gcm: Support deref instructions
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 12 Jan 2019 08:04:14 +0000 (02:04 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 12 Jan 2019 23:55:49 +0000 (17:55 -0600)
Even though no one's been brave enough to ever use this pass, I like to
keep it functionally working.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_opt_gcm.c

index 879a77a884b046e8b307d97996a46a9f745cfb9c..e7d3f8ec424fa352b716382caa1685fd72b820d7 100644 (file)
@@ -128,6 +128,10 @@ gcm_pin_instructions_block(nir_block *block, struct gcm_state *state)
          }
          break;
 
+      case nir_instr_type_deref:
+         instr->pass_flags = 0;
+         break;
+
       case nir_instr_type_tex:
          switch (nir_instr_as_tex(instr)->op) {
          case nir_texop_tex: