From: Eric Anholt Date: Mon, 21 Jan 2019 21:03:09 +0000 (-0800) Subject: v3d: Fix BO stats accounting for imported buffers. X-Git-Tag: upstream/19.0.0~258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac333ffa59344a4448d6d6cd44aa1ffa4c1285f7;p=platform%2Fupstream%2Fmesa.git v3d: Fix BO stats accounting for imported buffers. --- diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c index 970c38e..f0df1b9 100644 --- a/src/gallium/drivers/v3d/v3d_bufmgr.c +++ b/src/gallium/drivers/v3d/v3d_bufmgr.c @@ -374,6 +374,9 @@ v3d_bo_open_handle(struct v3d_screen *screen, util_hash_table_set(screen->bo_handles, (void *)(uintptr_t)handle, bo); + screen->bo_count++; + screen->bo_size += bo->size; + done: mtx_unlock(&screen->bo_handles_mutex); return bo;