From 0680d170d161f2a370e16e2506cb0bf982a8909d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 5 Nov 2014 15:10:37 -0800 Subject: nir: Expose nir_print_instr() for debug prints It's nice to have this present in your default cases so you can see what instruction is triggering an abort. v2: Just pass a NULL state, now that it won't crash when you do. Reviewed-by: Jason Ekstrand --- src/glsl/nir/nir.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/nir/nir.h') diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 41f7ae7..119ca01 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1485,6 +1485,7 @@ void nir_index_ssa_defs(nir_function_impl *impl); void nir_index_blocks(nir_function_impl *impl); void nir_print_shader(nir_shader *shader, FILE *fp); +void nir_print_instr(nir_instr *instr, FILE *fp); #ifdef DEBUG void nir_validate_shader(nir_shader *shader); -- cgit v1.1