Mesa (master): r600g/compute: Add debug information to promote and demote functions
Tom Stellard
tstellar at kemper.freedesktop.org
Mon Jul 28 15:21:34 UTC 2014
Module: Mesa
Branch: master
Commit: 7f96bea5bcb99c7eafac2bb17dfd5c5c26e6ae33
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f96bea5bcb99c7eafac2bb17dfd5c5c26e6ae33
Author: Bruno Jiménez <brunojimen at gmail.com>
Date: Sun Jul 27 13:56:16 2014 +0200
r600g/compute: Add debug information to promote and demote functions
v2: Add information about the item's starting point and size
v3: Rebased on top of master
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
---
src/gallium/drivers/r600/compute_memory_pool.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 928618c..0ee8ceb 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -382,10 +382,12 @@ int compute_memory_promote_item(struct compute_memory_pool *pool,
struct pipe_resource *dst = (struct pipe_resource *)pool->bo;
struct pipe_box box;
- COMPUTE_DBG(pool->screen, " + Found space for Item %p id = %u "
- "start_in_dw = %u (%u bytes) size_in_dw = %u (%u bytes)\n",
- item, item->id, start_in_dw, start_in_dw * 4,
- item->size_in_dw, item->size_in_dw * 4);
+ COMPUTE_DBG(pool->screen, "* compute_memory_promote_item()\n"
+ " + Promoting Item: %i , starting at: %u (%u bytes) "
+ "size: %u (%u bytes)\n\t\t\tnew start: %u (%u bytes)\n",
+ item->id, item->start_in_dw, item->start_in_dw * 4,
+ item->size_in_dw, item->size_in_dw * 4,
+ start_in_dw, start_in_dw * 4);
/* Remove the item from the unallocated list */
list_del(&item->link);
@@ -427,6 +429,11 @@ void compute_memory_demote_item(struct compute_memory_pool *pool,
struct pipe_resource *dst;
struct pipe_box box;
+ COMPUTE_DBG(pool->screen, "* compute_memory_demote_item()\n"
+ " + Demoting Item: %i, starting at: %u (%u bytes) "
+ "size: %u (%u bytes)\n", item->id, item->start_in_dw,
+ item->start_in_dw * 4, item->size_in_dw, item->size_in_dw * 4);
+
/* First, we remove the item from the item_list */
list_del(&item->link);
More information about the mesa-commit
mailing list