summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-09-17 15:47:34 -0700
committerTom Stellard <[email protected]>2013-10-16 09:39:31 -0700
commit13ac38b4ef94d3ab32d509e89a1131ce1ce67437 (patch)
tree0c9b67003736bac794f7bfab3a6653721740718c
parentde1de88dfc478db597726d88231c6c0a7f936121 (diff)
r600g/compute Improve debugging output
-rw-r--r--src/gallium/drivers/r600/compute_memory_pool.c8
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 75696d2397d..fd3a04c94fc 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -161,8 +161,9 @@ struct compute_memory_item* compute_memory_postalloc_chunk(
void compute_memory_grow_pool(struct compute_memory_pool* pool,
struct pipe_context * pipe, int new_size_in_dw)
{
- COMPUTE_DBG(pool->screen, "* compute_memory_grow_pool() new_size_in_dw = %d\n",
- new_size_in_dw);
+ COMPUTE_DBG(pool->screen, "* compute_memory_grow_pool() "
+ "new_size_in_dw = %d (%d bytes)\n",
+ new_size_in_dw, new_size_in_dw * 4);
assert(new_size_in_dw >= pool->size_in_dw);
@@ -171,7 +172,8 @@ void compute_memory_grow_pool(struct compute_memory_pool* pool,
} else {
new_size_in_dw += 1024 - (new_size_in_dw % 1024);
- COMPUTE_DBG(pool->screen, " Aligned size = %d\n", new_size_in_dw);
+ COMPUTE_DBG(pool->screen, " Aligned size = %d (%d bytes)\n",
+ new_size_in_dw, new_size_in_dw * 4);
compute_memory_shadow(pool, pipe, 1);
pool->shadow = realloc(pool->shadow, new_size_in_dw*4);
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index e36c3a8d831..bcb8a390fcf 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -934,8 +934,8 @@ void *r600_compute_global_transfer_map(
"width = %u, height = %u, depth = %u)\n", level, usage,
box->x, box->y, box->z, box->width, box->height,
box->depth);
- COMPUTE_DBG(rctx->screen, "Buffer: %u (buffer offset in global memory) "
- "+ %u (box.x)\n", buffer->chunk->start_in_dw, box->x);
+ COMPUTE_DBG(rctx->screen, "Buffer id = %u offset = "
+ "%u (box.x)\n", buffer->chunk->id, box->x);
compute_memory_finalize_pending(pool, ctx_);