mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: compute, print shader checksum
This commit is contained in:
parent
b501263bf5
commit
f7783badb5
1 changed files with 6 additions and 2 deletions
|
|
@ -1431,6 +1431,9 @@ _mesa_shader_source(GLcontext *ctx, GLuint shader, const GLchar *source)
|
|||
}
|
||||
sh->Source = source;
|
||||
sh->CompileStatus = GL_FALSE;
|
||||
#ifdef DEBUG
|
||||
sh->SourceChecksum = _mesa_str_checksum(sh->Source);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1506,9 +1509,10 @@ _mesa_use_program(GLcontext *ctx, GLuint program)
|
|||
GLuint i;
|
||||
_mesa_printf("Use Shader %u\n", shProg->Name);
|
||||
for (i = 0; i < shProg->NumShaders; i++) {
|
||||
_mesa_printf(" shader %u, type 0x%x\n",
|
||||
_mesa_printf(" shader %u, type 0x%x, checksum %u\n",
|
||||
shProg->Shaders[i]->Name,
|
||||
shProg->Shaders[i]->Type);
|
||||
shProg->Shaders[i]->Type,
|
||||
shProg->Shaders[i]->SourceChecksum);
|
||||
}
|
||||
if (shProg->VertexProgram)
|
||||
printf(" vert prog %u\n", shProg->VertexProgram->Base.Id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue