Mesa (master): iris: Trim "../../src/gallium/drivers/iris/" out of debug dump filenames

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Feb 15 01:17:13 UTC 2020


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Feb 11 11:36:09 2020 -0800

iris: Trim "../../src/gallium/drivers/iris/" out of debug dump filenames

Easier to read.

v2: Also trim "/iris/" (Jordan Justen)

Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3830>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3830>

---

 src/gallium/drivers/iris/iris_batch.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c
index ecc81b9c933..b0341513f2b 100644
--- a/src/gallium/drivers/iris/iris_batch.c
+++ b/src/gallium/drivers/iris/iris_batch.c
@@ -670,6 +670,10 @@ _iris_batch_flush(struct iris_batch *batch, const char *file, int line)
 
    if (unlikely(INTEL_DEBUG &
                 (DEBUG_BATCH | DEBUG_SUBMIT | DEBUG_PIPE_CONTROL))) {
+      const char *basefile = strstr(file, "iris/");
+      if (basefile)
+         file = basefile + 5;
+
       fprintf(stderr, "%19s:%-3d: %s batch [%u] flush with %5db (%0.1f%%) "
               "(cmds), %4d BOs (%0.1fMb aperture)\n",
               file, line, batch_name_to_string(batch->name), batch->hw_ctx_id,



More information about the mesa-commit mailing list