From: Samuel Pitoiset Date: Thu, 6 Oct 2016 22:43:51 +0000 (+0200) Subject: nvc0: dump program binary only when NV50_PROG_DEBUG is set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a198883bf75afa7c802609ea265447cec5c10aaf;p=mesa.git nvc0: dump program binary only when NV50_PROG_DEBUG is set When the chipset is forced with NV50_PROG_CHIPSET, we actually only want to output the binary if NV50_PROG_DEBUG is also enabled. Otherwise, this pollutes the shader-db output. Signed-off-by: Samuel Pitoiset --- diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c index 03cda0e72d6..f52cbd29819 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c @@ -677,7 +677,7 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset, info->bin.instructions, info->bin.codeSize); #ifdef DEBUG - if (debug_get_option("NV50_PROG_CHIPSET", NULL)) + if (debug_get_option("NV50_PROG_CHIPSET", NULL) && info->dbgFlags) nvc0_program_dump(prog); #endif