Mesa (master): nvc0: dump program binary when chipset has been forced
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Wed Oct 5 19:16:20 UTC 2016
Module: Mesa
Branch: master
Commit: a41cfbbf2bd2697f4ecf3ca99f2b54fb2573d594
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a41cfbbf2bd2697f4ecf3ca99f2b54fb2573d594
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Sun Oct 2 16:59:10 2016 +0200
nvc0: dump program binary when chipset has been forced
Currently, program binaries are only dumped at upload time, but
when the chipset has been forced via NV50_PROG_CHIPSET we might
want to show the generated code, especially with shaderdb.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
index e058630..03cda0e 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
@@ -676,6 +676,11 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset,
prog->type, info->bin.tlsSpace, prog->num_gprs,
info->bin.instructions, info->bin.codeSize);
+#ifdef DEBUG
+ if (debug_get_option("NV50_PROG_CHIPSET", NULL))
+ nvc0_program_dump(prog);
+#endif
+
out:
FREE(info);
return !ret;
More information about the mesa-commit
mailing list