Mesa (master): i915g: Add ifdef'd out code to dump compiled shaders.

Stephane Marchesin marcheu at kemper.freedesktop.org
Thu Sep 22 01:03:06 UTC 2011


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

Author: Stéphane Marchesin <marcheu at chromium.org>
Date:   Wed Sep 21 17:55:26 2011 -0700

i915g: Add ifdef'd out code to dump compiled shaders.

---

 src/gallium/drivers/i915/i915_fpc_translate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index c75f6c5..05fae22 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -1313,4 +1313,8 @@ i915_translate_fragment_program( struct i915_context *i915,
 
    i915_fini_compile(i915, p);
    i915_optimize_free(i_tokens);
+
+#if 0
+   i915_disassemble_program(NULL, fs->program, fs->program_len);
+#endif
 }




More information about the mesa-commit mailing list