summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-21 13:03:09 -0800
committerEric Anholt <[email protected]>2019-01-27 08:30:03 -0800
commitac333ffa59344a4448d6d6cd44aa1ffa4c1285f7 (patch)
tree576d32bb26d573402da833e27a7877ad496b4c1e /src
parent060575bea8e98c28938d08f953864cbd46447ed8 (diff)
v3d: Fix BO stats accounting for imported buffers.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/v3d/v3d_bufmgr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c
index 970c38e08fe..f0df1b98373 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;