projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd27825
)
vc4: Add the RCL to CL debug dumping when in simulator mode.
author
Eric Anholt
<eric@anholt.net>
Sun, 22 Nov 2015 03:10:02 +0000
(19:10 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 4 Dec 2015 02:20:39 +0000
(18:20 -0800)
We can't dump it in the real driver, since the kernel doesn't give us a
handle to it (except after a GPU hang, using a root ioctl). In the
simulator we can.
src/gallium/drivers/vc4/vc4_simulator.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_simulator.c
b/src/gallium/drivers/vc4/vc4_simulator.c
index 10dabd09f5e1aa0f648c7b09d52b4d89cbd7a161..4b1df9234b6ff982073cebc12eda6e6fd3b6cbfd 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_simulator.c
+++ b/
src/gallium/drivers/vc4/vc4_simulator.c
@@
-177,6
+177,12
@@
vc4_simulator_flush(struct vc4_context *vc4, struct drm_vc4_submit_cl *args)
if (ret)
return ret;
+ if (vc4_debug & VC4_DEBUG_CL) {
+ fprintf(stderr, "RCL:\n");
+ vc4_dump_cl(screen->simulator_mem_base + exec.ct1ca,
+ exec.ct1ea - exec.ct1ca, true);
+ }
+
if (exec.ct0ca != exec.ct0ea) {
int bfc = simpenrose_do_binning(exec.ct0ca, exec.ct0ea);
if (bfc != 1) {