diff options
author | Marek Olšák <[email protected]> | 2016-11-18 19:49:55 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-11-22 18:05:51 +0100 |
commit | b818df1e714ed8bd2f1c3a68ee842cd81a0d7cf4 (patch) | |
tree | ec681ad62ab1b0322c8dab0244b2032fa226d5bf /src/mesa/program/prog_print.c | |
parent | 6dfdf52b6af416fccf28420d64585d809d745b0a (diff) |
glsl: add gl_linked_shader::SourceChecksum
for debugging
v2: wrap all checksums in #ifdef DEBUG
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_print.c')
-rw-r--r-- | src/mesa/program/prog_print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index bdeb8fd6752..0a4bc51e954 100644 --- a/src/mesa/program/prog_print.c +++ b/src/mesa/program/prog_print.c @@ -976,7 +976,11 @@ _mesa_write_shader_to_file(const struct gl_shader *shader) return; } +#ifdef DEBUG fprintf(f, "/* Shader %u source, checksum %u */\n", shader->Name, shader->SourceChecksum); +#else + fprintf(f, "/* Shader %u source */\n", shader->Name); +#endif fputs(shader->Source, f); fprintf(f, "\n"); |