nir: Expose nir_print_instr() for debug prints
authorEric Anholt <eric@anholt.net>
Wed, 5 Nov 2014 23:10:37 +0000 (15:10 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 24 Jan 2015 01:30:11 +0000 (17:30 -0800)
commit0680d170d161f2a370e16e2506cb0bf982a8909d
treed9b28533912ef5cd68b602e6421b998dfab424ba
parent6445a405201420698a3f6e292a3b2363fe7ff7f6
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 <jason.ekstrand@intel.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_print.c