OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
060575b
)
v3d: Fix BO stats accounting for imported buffers.
author
Eric Anholt
<eric@anholt.net>
Mon, 21 Jan 2019 21:03:09 +0000
(13:03 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sun, 27 Jan 2019 16:30:03 +0000
(08:30 -0800)
src/gallium/drivers/v3d/v3d_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/v3d/v3d_bufmgr.c
b/src/gallium/drivers/v3d/v3d_bufmgr.c
index
970c38e
..
f0df1b9
100644
(file)
--- 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;