Module: Mesa
Branch: master
Commit: 83e65ca8314ab2cee65ff169d0ae296ee9cd2c5e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=83e65ca8314ab2cee65ff169d0ae296ee9cd2c5e

Author: Eric Anholt <e...@anholt.net>
Date:   Sat Nov 21 19:10:02 2015 -0800

vc4: Add the RCL to CL debug dumping when in simulator mode.

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 |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_simulator.c 
b/src/gallium/drivers/vc4/vc4_simulator.c
index 10dabd0..4b1df92 100644
--- 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) {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to