summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-14 17:32:03 -0600
committerBrian Paul <brianp@vmware.com>2009-09-14 17:32:03 -0600
commitac3c8e3b53564b659e2ccaf8274b888f1e254511 (patch)
treea5bec49a7e907f36c12f2fdc108baedb15e06cbd /src/mesa
parent3129b2403e8430304c054611eebe709ed8b2ed97 (diff)
glsl: added some link debug code (disabled)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/shader_api.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index c36fc271a0..4d5d1bef3d 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -1471,6 +1471,21 @@ _mesa_link_program(GLcontext *ctx, GLuint program)
FLUSH_VERTICES(ctx, _NEW_PROGRAM);
_slang_link(ctx, program, shProg);
+
+ /* debug code */
+ if (0) {
+ GLuint i;
+
+ _mesa_printf("Link %u shaders in program %u: %s\n",
+ shProg->NumShaders, shProg->Name,
+ shProg->LinkStatus ? "Success" : "Failed");
+
+ for (i = 0; i < shProg->NumShaders; i++) {
+ _mesa_printf(" shader %u, type 0x%x\n",
+ shProg->Shaders[i]->Name,
+ shProg->Shaders[i]->Type);
+ }
+ }
}