nir: add a way to print the deref chain

Graphics / Mesa 3D Graphics Library / Mesa - Caio Marcelo de Oliveira Filho [intel.com] - 2 January 2019 18:09 EST

Makes debugging easier when we care about the deref chain and not the deref instruction itself. To make it take a const pointer, constify some of the static functions in nir_print.c.

7d6babf995 nir: add a way to print the deref chain
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_print.c | 17 +++++++++++++----
2 files changed, 14 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share