summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-10-27 16:14:05 -0700
committerEric Anholt <[email protected]>2015-11-09 19:17:36 -0800
commit84608e07e7f45b14a77e4f771484f0091a6e7c14 (patch)
tree2cee791a46cc400e02650c308238246d3df43b2c /src
parent855a3ca598734273f53c5e316f1d825aea3dd6da (diff)
vc4: Add CL dumping for GL_ARRAY_PRIMITIVE.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_cl_dump.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_cl_dump.c b/src/gallium/drivers/vc4/vc4_cl_dump.c
index 476d2b5b0b1..a719f276b2e 100644
--- a/src/gallium/drivers/vc4/vc4_cl_dump.c
+++ b/src/gallium/drivers/vc4/vc4_cl_dump.c
@@ -184,6 +184,21 @@ dump_VC4_PACKET_GL_INDEXED_PRIMITIVE(void *cl, uint32_t offset, uint32_t hw_offs
}
static void
+dump_VC4_PACKET_GL_ARRAY_PRIMITIVE(void *cl, uint32_t offset, uint32_t hw_offset)
+{
+ uint8_t *b = cl + offset;
+ uint32_t *count = cl + offset + 1;
+ uint32_t *start = cl + offset + 5;
+
+ fprintf(stderr, "0x%08x 0x%08x: 0x%02x %s\n",
+ offset, hw_offset, b[0], u_prim_name(b[0] & 0x7));
+ fprintf(stderr, "0x%08x 0x%08x: %d verts\n",
+ offset + 1, hw_offset + 1, *count);
+ fprintf(stderr, "0x%08x 0x%08x: 0x%08x start\n",
+ offset + 5, hw_offset + 5, *start);
+}
+
+static void
dump_VC4_PACKET_FLAT_SHADE_FLAGS(void *cl, uint32_t offset, uint32_t hw_offset)
{
uint32_t *bits = cl + offset;
@@ -380,7 +395,7 @@ static const struct packet_info {
PACKET_DUMP(VC4_PACKET_LOAD_TILE_BUFFER_GENERAL),
PACKET_DUMP(VC4_PACKET_GL_INDEXED_PRIMITIVE),
- PACKET(VC4_PACKET_GL_ARRAY_PRIMITIVE),
+ PACKET_DUMP(VC4_PACKET_GL_ARRAY_PRIMITIVE),
PACKET(VC4_PACKET_COMPRESSED_PRIMITIVE),
PACKET(VC4_PACKET_CLIPPED_COMPRESSED_PRIMITIVE),