Mesa (master): nvc0: dump program binary only when NV50_PROG_DEBUG is set

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Oct 6 23:02:13 UTC 2016


Module: Mesa
Branch: master
Commit: a198883bf75afa7c802609ea265447cec5c10aaf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a198883bf75afa7c802609ea265447cec5c10aaf

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Oct  7 00:43:51 2016 +0200

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 <samuel.pitoiset at gmail.com>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
index 03cda0e..f52cbd2 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
 




More information about the mesa-commit mailing list