nouveau/compiler: Allow to omit line numbers when printing instructions
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Sun, 12 Nov 2017 01:51:55 +0000 (02:51 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 26 Nov 2017 17:51:30 +0000 (12:51 -0500)
commit068a72fbcb50176f31e9ecd588bd8225922cef2a
treee70e54270aa3820519bce78183d07cd46f43925b
parent0fed7f83bae7721b9351d45342d6ff528c3e2dc9
nouveau/compiler: Allow to omit line numbers when printing instructions

This comes in handy when checking "NV50_PROG_DEBUG=1" outputs with diff!

V2:
 - Use environmental variable (Karol Herbst)
V3:
 - Use the already populated nv50_ir_prog_info to forward information to the
   print pass (Pierre Moreau)
V4:
 - get rid of default value in PrintPass constructor

Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
src/gallium/drivers/nouveau/nouveau_compiler.c
src/gallium/drivers/nouveau/nv50/nv50_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.c