Mesa (master): mesa: Include shader target in dumps of GLSL source.
Eric Anholt
anholt at kemper.freedesktop.org
Fri May 27 16:50:08 UTC 2011
Module: Mesa
Branch: master
Commit: 9bd7e9c6b29b212a97bd4ca6c62836160b2f7698
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9bd7e9c6b29b212a97bd4ca6c62836160b2f7698
Author: Eric Anholt <eric at anholt.net>
Date: Tue May 17 08:21:27 2011 -0700
mesa: Include shader target in dumps of GLSL source.
This makes automatic parsing of MESA_GLSL=dump output easier.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/program/ir_to_mesa.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 510aeab..0086997 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -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);
}
More information about the mesa-commit
mailing list