mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 04:20:26 +01:00
v3d: Fix BO stats accounting for imported buffers.
This commit is contained in:
parent
060575bea8
commit
ac333ffa59
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue