[Beignet] [PATCH] add render cache data port disassembly info.
xionghu.luo at intel.com
xionghu.luo at intel.com
Tue Apr 14 01:32:07 PDT 2015
From: Luo Xionghu <xionghu.luo at intel.com>
the image related disassembly message is "unsupported" before.
Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
backend/src/backend/gen/gen_mesa_disasm.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/backend/src/backend/gen/gen_mesa_disasm.c b/backend/src/backend/gen/gen_mesa_disasm.c
index 711b943..ed947a1 100644
--- a/backend/src/backend/gen/gen_mesa_disasm.c
+++ b/backend/src/backend/gen/gen_mesa_disasm.c
@@ -449,6 +449,16 @@ static const char *data_port1_data_cache_msg_type[] = {
[13] = "Typed Surface Write",
};
+static const char *data_port_render_cache_msg_type[] = {
+ [4] = "Media Block Read",
+ [5] = "Typed Surface Read",
+ [6] = "Typed Atomic Operation",
+ [7] = "Memory Fence",
+ [10] = "Media Block Write",
+ [12] = "Render Target Write",
+ [13] = "Typed Surface Write",
+};
+
static int column;
static int gen_version;
@@ -1294,6 +1304,13 @@ int gen_disasm (FILE *file, const void *inst, uint32_t deviceID, uint32_t compac
MSG_GW_ACKREQ(inst));
break;
+ case GEN_SFID_DATAPORT_RENDER:
+ format(file, " (bti: %d, rgba: %d, %s)",
+ UNTYPED_RW_BTI(inst),
+ UNTYPED_RW_RGBA(inst),
+ data_port_render_cache_msg_type[UNTYPED_RW_MSG_TYPE(inst)]);
+ break;
+
default:
format(file, "unsupported target %d", target);
break;
--
1.9.1
More information about the Beignet
mailing list