const GLuint *program;
void *mem_ctx;
GLuint program_size;
- GLuint i;
memset(&c, 0, sizeof(c));
if (unlikely(INTEL_DEBUG & DEBUG_CLIP)) {
fprintf(stderr, "clip:\n");
- for (i = 0; i < program_size / sizeof(struct brw_instruction); i++)
- brw_disasm(stderr, &((struct brw_instruction *)program)[i],
- brw->gen, false);
+ brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
fprintf(stderr, "\n");
}
program = brw_get_program(&c.func, &program_size);
if (unlikely(INTEL_DEBUG & DEBUG_GS)) {
- int i;
-
fprintf(stderr, "gs:\n");
- for (i = 0; i < program_size / sizeof(struct brw_instruction); i++)
- brw_disasm(stderr, &((struct brw_instruction *)program)[i],
- brw->gen, false);
+ brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
fprintf(stderr, "\n");
}
const GLuint *program;
void *mem_ctx;
GLuint program_size;
- GLuint i;
memset(&c, 0, sizeof(c));
if (unlikely(INTEL_DEBUG & DEBUG_SF)) {
fprintf(stderr, "sf:\n");
- for (i = 0; i < program_size / sizeof(struct brw_instruction); i++)
- brw_disasm(stderr, &((struct brw_instruction *)program)[i],
- brw->gen, false);
+ brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
fprintf(stderr, "\n");
}