From 21e92e74c84e0422a5868736f6cb3a408220a294 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 2 Dec 2013 12:58:45 -0800 Subject: i965: Externalize reg_encoding for use in dump_instruction(). Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_context.h | 1 + src/mesa/drivers/dri/i965/brw_disasm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa') 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", -- cgit v1.2.3