From: Kenneth Graunke Date: Mon, 18 Jun 2018 07:39:10 +0000 (-0700) Subject: iris: print refcounts in INTEL_DEBUG=submit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a43c9defa7700e21e574813d061010d46afc2da;p=mesa.git iris: print refcounts in INTEL_DEBUG=submit --- diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 17d32bd9d12..7e90d7bb162 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -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); } }