[Mesa-dev] [PATCH 6/9] i965: Externalize reg_encoding for use in dump_instruction().
Matt Turner
mattst88 at gmail.com
Mon Dec 2 13:28:39 PST 2013
---
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 97f8906..0a45f05 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 128e717..4de8485 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",
--
1.8.3.2
More information about the mesa-dev
mailing list