summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_compiler.c
diff options
context:
space:
mode:
authorTobias Klausmann <[email protected]>2017-11-12 02:51:55 +0100
committerIlia Mirkin <[email protected]>2017-11-26 12:51:30 -0500
commit068a72fbcb50176f31e9ecd588bd8225922cef2a (patch)
treee70e54270aa3820519bce78183d07cd46f43925b /src/gallium/drivers/nouveau/nouveau_compiler.c
parent0fed7f83bae7721b9351d45342d6ff528c3e2dc9 (diff)
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 <[email protected]> Reviewed-by: Pierre Moreau <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_compiler.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_compiler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_compiler.c b/src/gallium/drivers/nouveau/nouveau_compiler.c
index 3151a6f420c..f2c175661be 100644
--- a/src/gallium/drivers/nouveau/nouveau_compiler.c
+++ b/src/gallium/drivers/nouveau/nouveau_compiler.c
@@ -122,6 +122,7 @@ nouveau_codegen(int chipset, int type, struct tgsi_token tokens[],
info.optLevel = debug_get_num_option("NV50_PROG_OPTIMIZE", 3);
info.dbgFlags = debug_get_num_option("NV50_PROG_DEBUG", 0);
+ info.omitLineNum = debug_get_num_option("NV50_PROG_DEBUG_OMIT_LINENUM", 0);
ret = nv50_ir_generate_code(&info);
if (ret) {