i965: additional debug output

This commit is contained in:
Brian Paul 2009-02-20 08:31:02 -07:00
parent c0b59420ee
commit d8de0a2f3a
1 changed files with 8 additions and 0 deletions

View File

@ -2509,12 +2509,20 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c)
*/
void brw_wm_glsl_emit(struct brw_context *brw, struct brw_wm_compile *c)
{
if (INTEL_DEBUG & DEBUG_WM) {
_mesa_printf("brw_wm_glsl_emit:\n");
}
/* initial instruction translation/simplification */
brw_wm_pass_fp(c);
/* actual code generation */
brw_wm_emit_glsl(brw, c);
if (INTEL_DEBUG & DEBUG_WM) {
brw_wm_print_program(c, "brw_wm_glsl_emit done");
}
c->prog_data.total_grf = c->reg_index;
c->prog_data.total_scratch = 0;
}