Mesa (master): mesa: also print program params/ constants when dumping shaders to disk
Brian Paul
brianp at kemper.freedesktop.org
Mon May 4 17:28:24 UTC 2009
Module: Mesa
Branch: master
Commit: f95c0c06c0970d9a7700c7c8cea6396982b4b0dc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f95c0c06c0970d9a7700c7c8cea6396982b4b0dc
Author: Brian Paul <brianp at vmware.com>
Date: Mon May 4 11:14:35 2009 -0600
mesa: also print program params/constants when dumping shaders to disk
---
src/mesa/shader/prog_print.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index 9967f29..e6f9a91 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -941,6 +941,10 @@ _mesa_write_shader_to_file(const struct gl_shader *shader)
fprintf(f, "/*\n");
_mesa_fprint_program_opt(f, shader->Program, PROG_PRINT_DEBUG, GL_TRUE);
fprintf(f, "*/\n");
+ fprintf(f, "/* Parameters / constants */\n");
+ fprintf(f, "/*\n");
+ _mesa_fprint_parameter_list(f, shader->Program->Parameters);
+ fprintf(f, "*/\n");
}
fclose(f);
More information about the mesa-commit
mailing list