i965: Move program dump to a helper function in brw_eu.c.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_wm_emit.c
index b6defa3d59d90bca2979da66ee00c0005ed2c894..0e73ef89056227e3e260d06c48ab0179f801c05e 100644 (file)
@@ -1919,11 +1919,8 @@ void brw_wm_emit( struct brw_wm_compile *c )
    }
 
    if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
-      int i;
-
-     printf("wm-native:\n");
-     for (i = 0; i < p->nr_insn; i++)
-        brw_disasm(stdout, &p->store[i], p->brw->intel.gen);
+      printf("wm-native:\n");
+      brw_dump_compile(p, stdout, 0, p->next_insn_offset);
       printf("\n");
    }
 }