summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_asm_annotation.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-10-21 15:23:10 -0700
committerMatt Turner <mattst88@gmail.com>2015-11-12 11:00:10 -0800
commit34ed45557e9b8a834af2816e774165a0ee7acdd2 (patch)
tree2633928d03ba0614f7c560810df9028e8c28f54a /src/mesa/drivers/dri/i965/intel_asm_annotation.h
parenta280e83d71bb046098ed5380cb053318f9e8cf8e (diff)
downloadexternal_mesa3d-34ed45557e9b8a834af2816e774165a0ee7acdd2.zip
external_mesa3d-34ed45557e9b8a834af2816e774165a0ee7acdd2.tar.gz
external_mesa3d-34ed45557e9b8a834af2816e774165a0ee7acdd2.tar.bz2
i965: Add annotation_insert_error() and support for printing errors.
Will allow annotations to contain error messages (indicating an instruction violates a rule for instance) that are printed after the disassembly of the block. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_asm_annotation.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_asm_annotation.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_asm_annotation.h b/src/mesa/drivers/dri/i965/intel_asm_annotation.h
index 6c72326..662a4b4 100644
--- a/src/mesa/drivers/dri/i965/intel_asm_annotation.h
+++ b/src/mesa/drivers/dri/i965/intel_asm_annotation.h
@@ -37,6 +37,9 @@ struct cfg_t;
struct annotation {
int offset;
+ size_t error_length;
+ char *error;
+
/* Pointers to the basic block in the CFG if the instruction group starts
* or ends a basic block.
*/
@@ -69,6 +72,10 @@ annotate(const struct brw_device_info *devinfo,
void
annotation_finalize(struct annotation_info *annotation, unsigned offset);
+void
+annotation_insert_error(struct annotation_info *annotation, unsigned offset,
+ const char *error);
+
#ifdef __cplusplus
} /* extern "C" */
#endif