From b9af66528e5b7bd5608086557c44e6b9eb2f2d9d Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 2 Dec 2013 13:15:45 -0800 Subject: i965: Externalize conditional_modifier 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(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 0a45f056dbf..d25e145f18c 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 conditional_modifier[16]; extern const char * const reg_encoding[8]; void diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 4de848512ec..5f6cd40765b 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965/brw_disasm.c @@ -101,7 +101,7 @@ const struct opcode_desc opcode_descs[128] = { }; static const struct opcode_desc *opcode = opcode_descs; -static const char * const conditional_modifier[16] = { +const char * const conditional_modifier[16] = { [BRW_CONDITIONAL_NONE] = "", [BRW_CONDITIONAL_Z] = ".e", [BRW_CONDITIONAL_NZ] = ".ne", -- cgit v1.2.3