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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Thu Jul 18 12:42:27 2019 -0700

panfrost: Trace invisible BOs

Helps make the decode a little more readable (names instead of
addresses).

Signed-off-by: Alyssa Rosenzweig <[email protected]>

---

 src/gallium/drivers/panfrost/pan_drm.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_drm.c 
b/src/gallium/drivers/panfrost/pan_drm.c
index 70051450cae..d1c3168a15e 100644
--- a/src/gallium/drivers/panfrost/pan_drm.c
+++ b/src/gallium/drivers/panfrost/pan_drm.c
@@ -124,10 +124,14 @@ panfrost_drm_create_bo(struct panfrost_screen *screen, 
size_t size,
 
         /* Only mmap now if we know we need to. For CPU-invisible buffers, we
          * never map since we don't care about their contents; they're purely
-         * for GPU-internal use. */
+         * for GPU-internal use. But we do trace them anyway. */
 
         if (!(flags & (PAN_ALLOCATE_INVISIBLE | PAN_ALLOCATE_DELAY_MMAP)))
                 panfrost_drm_mmap_bo(screen, bo);
+        else if (flags & PAN_ALLOCATE_INVISIBLE) {
+                if (pan_debug & PAN_DBG_TRACE)
+                        pandecode_inject_mmap(bo->gpu, NULL, bo->size, NULL);
+        }
 
         pipe_reference_init(&bo->reference, 1);
         return bo;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to