mesa: also print program params/constants when dumping shaders to disk
authorBrian Paul <brianp@vmware.com>
Mon, 4 May 2009 17:14:35 +0000 (11:14 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 4 May 2009 17:14:35 +0000 (11:14 -0600)
src/mesa/shader/prog_print.c

index 9967f2978de819be589ee71a45020ab56a256c51..e6f9a910690c2c7af57c472474d3f234a2c607d0 100644 (file)
@@ -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);