summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-10-07 00:43:51 +0200
committerSamuel Pitoiset <[email protected]>2016-10-07 01:01:17 +0200
commita198883bf75afa7c802609ea265447cec5c10aaf (patch)
treec4345706cb307fe61bbfcdd82086a188740fba14 /src/gallium/drivers/nouveau
parent325b3fd668369e2ed0af937843e80e750d0b91ed (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_program.c2
1 files changed, 1 insertions, 1 deletions
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