radeonsi: just save buffer sizes instead of buffers while recording IBs
[mesa.git] / src / gallium / drivers / radeonsi / si_debug.c
index 220ce13dab33aa6631abbc66cc78dc7ce64e2e35..57a930f4fe1081260ae4a50700e8950e3fb6979a 100644 (file)
@@ -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",