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