summaryrefslogtreecommitdiffstats
path: root/src/broadcom/clif/clif_dump.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-06-27 16:58:55 -0700
committerEric Anholt <[email protected]>2018-07-30 14:29:01 -0700
commit2df6f1a3dfcec9abc256c4648484e704b62d5210 (patch)
tree606172ecc0fa9a81210bb3779f1a02510853acc1 /src/broadcom/clif/clif_dump.c
parentc6449e33e3b3ec9ea0509aa7c91d1127c81ef1e5 (diff)
v3d: Include commands to run the BCL and RCL in CLIF dumps.
Diffstat (limited to 'src/broadcom/clif/clif_dump.c')
-rw-r--r--src/broadcom/clif/clif_dump.c35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/broadcom/clif/clif_dump.c b/src/broadcom/clif/clif_dump.c
index a637ba5999f..9562686c6d3 100644
--- a/src/broadcom/clif/clif_dump.c
+++ b/src/broadcom/clif/clif_dump.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "drm-uapi/v3d_drm.h"
#include "clif_dump.h"
#include "clif_private.h"
#include "util/list.h"
@@ -202,11 +203,6 @@ clif_process_worklist(struct clif_dump *clif)
}
}
-void clif_dump(struct clif_dump *clif)
-{
- clif_process_worklist(clif);
-}
-
void
clif_dump_add_cl(struct clif_dump *clif, uint32_t start, uint32_t end)
{
@@ -217,6 +213,35 @@ clif_dump_add_cl(struct clif_dump *clif, uint32_t start, uint32_t end)
}
void
+clif_dump(struct clif_dump *clif, const struct drm_v3d_submit_cl *submit)
+{
+ clif_dump_add_cl(clif, submit->bcl_start, submit->bcl_end);
+ clif_dump_add_cl(clif, submit->rcl_start, submit->rcl_end);
+
+ clif_process_worklist(clif);
+
+ out(clif, "@add_bin 0\n ");
+ out_address(clif, submit->bcl_start);
+ out(clif, "\n ");
+ out_address(clif, submit->bcl_end);
+ out(clif, "\n ");
+ out_address(clif, submit->qma);
+ out(clif, "\n %d\n ", submit->qms);
+ out_address(clif, submit->qts);
+ out(clif, "\n");
+ out(clif, "@wait_bin_all_cores\n");
+
+ out(clif, "@add_render 0\n ");
+ out_address(clif, submit->rcl_start);
+ out(clif, "\n ");
+ out_address(clif, submit->rcl_end);
+ out(clif, "\n ");
+ out_address(clif, submit->qma);
+ out(clif, "\n");
+ out(clif, "@wait_render_all_cores\n");
+}
+
+void
clif_dump_add_bo(struct clif_dump *clif, const char *name,
uint32_t offset, uint32_t size, void *vaddr)
{