aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-12-02 12:58:45 -0800
committerMatt Turner <[email protected]>2013-12-04 20:05:43 -0800
commit21e92e74c84e0422a5868736f6cb3a408220a294 (patch)
tree03e2a2edb2d3d6ce5e6be91f578baa7cfa1739e8
parent729fe77e3bdf64768e8447c281f249ac80c1b9a2 (diff)
i965: Externalize reg_encoding for use in dump_instruction().
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h1
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 97f890652da..0a45f056dbf 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -1827,6 +1827,7 @@ struct opcode_desc {
};
extern const struct opcode_desc opcode_descs[128];
+extern const char * const reg_encoding[8];
void
brw_emit_depthbuffer(struct brw_context *brw);
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 128e717fe9b..4de848512ec 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -244,7 +244,7 @@ static const char * const access_mode[2] = {
[1] = "align16",
};
-static const char * const reg_encoding[8] = {
+const char * const reg_encoding[8] = {
[0] = "UD",
[1] = "D",
[2] = "UW",