projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27dbdb1
)
mesa: also print program params/constants when dumping shaders to disk
author
Brian Paul
<brianp@vmware.com>
Mon, 4 May 2009 17:14:35 +0000
(11:14 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 4 May 2009 17:14:35 +0000
(11:14 -0600)
src/mesa/shader/prog_print.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_print.c
b/src/mesa/shader/prog_print.c
index 9967f2978de819be589ee71a45020ab56a256c51..e6f9a910690c2c7af57c472474d3f234a2c607d0 100644
(file)
--- 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);