diff options
author | Eric Anholt <[email protected]> | 2018-01-09 15:23:21 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-12 21:55:49 -0800 |
commit | 34898c8c45a5cbb84a027d74854efb1486d65bc4 (patch) | |
tree | 9f6c1286f9cb36f63f49a2bfb758f4e565126c32 /src/broadcom/clif/clif_dump.c | |
parent | 409696b76eec160e2f70c30bdca50a1a236d0149 (diff) |
broadcom/vc5: Add support for V3D 4.1 CLIF dumping.
Diffstat (limited to 'src/broadcom/clif/clif_dump.c')
-rw-r--r-- | src/broadcom/clif/clif_dump.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/broadcom/clif/clif_dump.c b/src/broadcom/clif/clif_dump.c index 18c20d880f7..1f57a6dbad5 100644 --- a/src/broadcom/clif/clif_dump.c +++ b/src/broadcom/clif/clif_dump.c @@ -81,7 +81,10 @@ static bool clif_dump_packet(struct clif_dump *clif, uint32_t offset, const uint8_t *cl, uint32_t *size) { - return v3d33_clif_dump_packet(clif, offset, cl, size); + if (clif->devinfo->ver >= 41) + return v3d41_clif_dump_packet(clif, offset, cl, size); + else + return v3d33_clif_dump_packet(clif, offset, cl, size); } static void @@ -133,8 +136,15 @@ clif_process_worklist(struct clif_dump *clif) switch (reloc->type) { case reloc_gl_shader_state: - v3d33_clif_dump_gl_shader_state_record(clif, reloc, - vaddr); + if (clif->devinfo->ver >= 41) { + v3d41_clif_dump_gl_shader_state_record(clif, + reloc, + vaddr); + } else { + v3d33_clif_dump_gl_shader_state_record(clif, + reloc, + vaddr); + } break; case reloc_generic_tile_list: clif_dump_cl(clif, reloc->addr, |