i965: Externalize reg_encoding for use in dump_instruction().
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Dec 2013 20:58:45 +0000 (12:58 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 5 Dec 2013 04:05:43 +0000 (20:05 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_disasm.c

index 97f890652da57e5a9ff7998103675868a190bceb..0a45f056dbf78020dac5e7fff25db060cb505d12 100644 (file)
@@ -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);
index 128e717fe9b1385f8a9a02ddc01d951bf2f014ff..4de848512ec6e7a9939ea3218814d68610a4afb8 100644 (file)
@@ -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",