nir: Look up the shader when printing a single instruction.
authorEric Anholt <eric@anholt.net>
Fri, 28 Aug 2020 19:27:04 +0000 (12:27 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 17:20:43 +0000 (17:20 +0000)
commite281ee04dfe3d035f0da4ad37240392ddf41220c
treed2d60ee3f30201ae4783f171657d2f4b113e5c2e
parenta3a8322dcd7aaede8dedff131c7d73bdbe3f06f9
nir: Look up the shader when printing a single instruction.

If you've inserted the instruction into a block, then we can get to the
shader.  This improves our instruction output, giving you i/o semantics
and variable names in intrinsics.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6496>
src/compiler/nir/nir_print.c