From: Matt Turner Date: Mon, 2 Dec 2013 20:58:45 +0000 (-0800) Subject: i965: Externalize reg_encoding for use in dump_instruction(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21e92e74c84e0422a5868736f6cb3a408220a294;p=mesa.git i965: Externalize reg_encoding for use in dump_instruction(). Reviewed-by: Eric Anholt --- 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",