Module: Mesa Branch: master Commit: ac333ffa59344a4448d6d6cd44aa1ffa4c1285f7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac333ffa59344a4448d6d6cd44aa1ffa4c1285f7
Author: Eric Anholt <[email protected]> Date: Mon Jan 21 13:03:09 2019 -0800 v3d: Fix BO stats accounting for imported buffers. --- src/gallium/drivers/v3d/v3d_bufmgr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c index 970c38e08f..f0df1b9837 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
