diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 54545c0df74..1cd9095f2ea 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -210,6 +210,15 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) _mesa_associate_uniform_storage(ctx, shProg, prog->Parameters); _mesa_reference_program(ctx, &prog, NULL); + + if (ctx->Shader.Flags & GLSL_DUMP) { + static const char *target_strings[] + = { "vertex", "fragment", "geometry" }; + printf("\n"); + printf("GLSL IR for linked %s program %d:\n", target_strings[stage], + shProg->Name); + _mesa_print_ir(shader->base.ir, NULL); + } } if (!brw_shader_precompile(ctx, shProg)) |