aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-06-17 13:51:55 -0700
committerEric Anholt <[email protected]>2015-06-17 23:53:49 -0700
commit91c73a9a280b749a781cd3f071fc377fcb9758e1 (patch)
tree492ac6cc72f27d6c7938ae8dfb489b1750edcc05 /src
parentdc1fbad2eb5454ed36a066d2a69b575cd5a8abaf (diff)
vc4: Add dumping of VC4_PACKET_TILE_BINNING_MODE_CONFIG.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_cl_dump.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_cl_dump.c b/src/gallium/drivers/vc4/vc4_cl_dump.c
index 14239840d32..69055081daa 100644
--- a/src/gallium/drivers/vc4/vc4_cl_dump.c
+++ b/src/gallium/drivers/vc4/vc4_cl_dump.c
@@ -174,6 +174,37 @@ dump_VC4_PACKET_CLIPPER_Z_SCALING(void *cl, uint32_t offset, uint32_t hw_offset)
}
static void
+dump_VC4_PACKET_TILE_BINNING_MODE_CONFIG(void *cl, uint32_t offset, uint32_t hw_offset)
+{
+ uint32_t *tile_alloc_addr = cl + offset;
+ uint32_t *tile_alloc_size = cl + offset + 4;
+ uint32_t *tile_state_addr = cl + offset + 8;
+ uint8_t *bin_x = cl + offset + 12;
+ uint8_t *bin_y = cl + offset + 13;
+ uint8_t *flags = cl + offset + 14;
+
+ fprintf(stderr, "0x%08x 0x%08x: tile alloc addr 0x%08x\n",
+ offset, hw_offset,
+ *tile_alloc_addr);
+
+ fprintf(stderr, "0x%08x 0x%08x: tile alloc size %db\n",
+ offset + 4, hw_offset + 4,
+ *tile_alloc_size);
+
+ fprintf(stderr, "0x%08x 0x%08x: tile state addr 0x%08x\n",
+ offset + 8, hw_offset + 8,
+ *tile_state_addr);
+
+ fprintf(stderr, "0x%08x 0x%08x: tiles (%d, %d)\n",
+ offset + 12, hw_offset + 12,
+ *bin_x, *bin_y);
+
+ fprintf(stderr, "0x%08x 0x%08x: flags 0x%02x\n",
+ offset + 14, hw_offset + 14,
+ *flags);
+}
+
+static void
dump_VC4_PACKET_TILE_RENDERING_MODE_CONFIG(void *cl, uint32_t offset, uint32_t hw_offset)
{
uint32_t *render_offset = cl + offset;
@@ -311,7 +342,7 @@ static const struct packet_info {
PACKET_DUMP(VC4_PACKET_CLIPPER_XY_SCALING, 9),
PACKET_DUMP(VC4_PACKET_CLIPPER_Z_SCALING, 9),
- PACKET(VC4_PACKET_TILE_BINNING_MODE_CONFIG, 16),
+ PACKET_DUMP(VC4_PACKET_TILE_BINNING_MODE_CONFIG, 16),
PACKET_DUMP(VC4_PACKET_TILE_RENDERING_MODE_CONFIG, 11),
PACKET(VC4_PACKET_CLEAR_COLORS, 14),
PACKET_DUMP(VC4_PACKET_TILE_COORDINATES, 3),