mesa: Include shader target in dumps of GLSL source.

This makes automatic parsing of MESA_GLSL=dump output easier.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2011-05-17 08:21:27 -07:00
parent 8752764076
commit 9bd7e9c6b2
1 changed files with 2 additions and 1 deletions

View File

@ -3172,7 +3172,8 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader)
&ctx->Extensions, ctx->API);
if (ctx->Shader.Flags & GLSL_DUMP) {
printf("GLSL source for shader %d:\n", shader->Name);
printf("GLSL source for %s shader %d:\n",
_mesa_glsl_shader_target_name(state->target), shader->Name);
printf("%s\n", shader->Source);
}