iris: print refcounts in INTEL_DEBUG=submit
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Jun 2018 07:39:10 +0000 (00:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_batch.c

index 17d32bd9d12061b1419d5e5ff8a01cfe916348dc..7e90d7bb1628c479e4688a7e1d52f406666323dc 100644 (file)
@@ -60,14 +60,15 @@ dump_validation_list(struct iris_batch *batch)
       uint64_t flags = batch->validation_list[i].flags;
       assert(batch->validation_list[i].handle ==
              batch->exec_bos[i]->gem_handle);
-      fprintf(stderr, "[%2d]: %2d %-14s %p %-7s @ 0x%016llx (%"PRIu64"B)\n",
+      fprintf(stderr, "[%2d]: %2d %-14s %p %-7s @ 0x%016llx (%"PRIu64"B) - %d refs\n",
               i,
               batch->validation_list[i].handle,
               batch->exec_bos[i]->name,
               batch->exec_bos[i],
               (flags & EXEC_OBJECT_WRITE) ? "(write)" : "",
               batch->validation_list[i].offset,
-              batch->exec_bos[i]->size);
+              batch->exec_bos[i]->size,
+              batch->exec_bos[i]->refcount);
    }
 }