aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_asm_printer.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-05-19 10:20:37 -0700
committerMatt Turner <[email protected]>2014-05-24 23:03:23 -0700
commitf0f7fb181fc267934a44904da4530f50a698b18d (patch)
treeccdbbb9994000e1a6e02720d5de17c9ab89ebd03 /src/mesa/drivers/dri/i965/intel_asm_printer.h
parentb5fd762474fb7252e7e1158e6398c10f1a035b1a (diff)
i965: Print disassembly after compaction.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_asm_printer.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_asm_printer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_asm_printer.h b/src/mesa/drivers/dri/i965/intel_asm_printer.h
index 893c76bde4f..dfe64d6c2fa 100644
--- a/src/mesa/drivers/dri/i965/intel_asm_printer.h
+++ b/src/mesa/drivers/dri/i965/intel_asm_printer.h
@@ -24,6 +24,10 @@
#ifndef _INTEL_ASM_ANNOTATION_H
#define _INTEL_ASM_ANNOTATION_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct bblock_t;
struct brw_context;
struct gl_program;
@@ -42,6 +46,16 @@ struct annotation {
const char *annotation;
};
+struct annotation_info {
+ void *mem_ctx;
+ struct annotation *ann;
+ int ann_count;
+ int ann_size;
+
+ /** Block index in the cfg. */
+ int cur_block;
+};
+
typedef void (*disassemble_func)(struct brw_context *brw, void *assembly,
int start, int end, FILE *out);
@@ -50,4 +64,8 @@ dump_assembly(void *assembly, int num_annotations, struct annotation *annotation
struct brw_context *brw, const struct gl_program *prog,
disassemble_func disassemble);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* _INTEL_ASM_ANNOTATION_H */