[Mesa-dev] [PATCH 2/2] r600g/compute: Add debug information to promote and demote functions
Bruno Jiménez
brunojimen at gmail.com
Thu Jul 10 14:16:04 PDT 2014
---
src/gallium/drivers/r600/compute_memory_pool.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 1d0ec85..6d47b1a 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -339,6 +339,8 @@ int compute_memory_promote_item(struct compute_memory_pool *pool,
int64_t start_in_dw;
int err = 0;
+ COMPUTE_DBG(pool->screen, "* compute_memory_promote_item()\n"
+ " + Promoting Item: %i\n", item->id);
/* Search for free space in the pool for this item. */
while ((start_in_dw=compute_memory_prealloc_chunk(pool,
@@ -409,6 +411,9 @@ 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\n", item->id);
+
/* First, we remove the item from the item_list */
list_del(&item->link);
--
2.0.1
More information about the mesa-dev
mailing list