diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-04 11:14:35 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-04 11:14:35 -0600 |
commit | f95c0c06c0970d9a7700c7c8cea6396982b4b0dc (patch) | |
tree | e72ec9cfe671a21a144933a7dd937a0a1db52152 /src/mesa/shader | |
parent | 27dbdb1684af42ce3e7962111fa0726cf7ba28d1 (diff) |
mesa: also print program params/constants when dumping shaders to disk
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | 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 9967f2978d..e6f9a91069 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); |