From: Brian Paul Date: Mon, 4 May 2009 17:14:35 +0000 (-0600) Subject: mesa: also print program params/constants when dumping shaders to disk X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f95c0c06c0970d9a7700c7c8cea6396982b4b0dc;p=mesa.git mesa: also print program params/constants when dumping shaders to disk --- diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 9967f2978de..e6f9a910690 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);