iris: Trim "../../src/gallium/drivers/iris/" out of debug dump filenames
[mesa.git] / src / gallium / drivers / iris / iris_batch.c
index ecc81b9c9332a3712aed08dbbec653320c0a465b..b0341513f2becb65a47fe1fda38ac2c3aebe99cb 100644 (file)
@@ -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,