nir: Add goto_if jump instruction
[mesa.git] / src / compiler / nir / nir_divergence_analysis.c
index fc57220f71070eca2895de72101a15872b67fbb1..05892b440bfb508f0ac2a86d16c2447395f94bc6 100644 (file)
@@ -593,6 +593,11 @@ visit_jump(nir_jump_instr *jump, struct divergence_state *state)
       return state->divergent_loop_break;
    case nir_jump_return:
       unreachable("NIR divergence analysis: Unsupported return instruction.");
+      break;
+   case nir_jump_goto:
+   case nir_jump_goto_if:
+      unreachable("NIR divergence analysis: Unsupported goto_if instruction.");
+      break;
    }
    return false;
 }