From ed3912d0daae717d70af9c595f1c36d817d9ceec Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 8 Jul 2016 18:03:56 +0200 Subject: radeonsi: just save buffer sizes instead of buffers while recording IBs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit whole buffer objects are not needed Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/radeonsi') diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 220ce13dab3..57a930f4fe1 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -609,13 +609,13 @@ static void si_dump_bo_list(struct si_context *sctx, /* Note: Buffer sizes are expected to be aligned to 4k by the winsys. */ const unsigned page_size = sctx->b.screen->info.gart_page_size; uint64_t va = saved->bo_list[i].vm_address; - uint64_t size = saved->bo_list[i].buf->size; + uint64_t size = saved->bo_list[i].bo_size; bool hit = false; /* If there's unused virtual memory between 2 buffers, print it. */ if (i) { uint64_t previous_va_end = saved->bo_list[i-1].vm_address + - saved->bo_list[i-1].buf->size; + saved->bo_list[i-1].bo_size; if (va > previous_va_end) { fprintf(f, " %10"PRIu64" -- hole --\n", -- cgit v1.2.3