summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_screen.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-06-17 22:56:15 -0700
committerEric Anholt <[email protected]>2015-06-17 23:53:49 -0700
commit62d153ea37b1bf572c39aab8ec46099fc903362d (patch)
tree052721f0c4a868e840aeb3de7f892e955d270ca9 /src/gallium/drivers/vc4/vc4_screen.h
parent2b1cdb0eddb73f62e4848d4b64840067f1f70865 (diff)
vc4: Track the number of BOs allocated and their size.
This is useful for BO leak debugging.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.h b/src/gallium/drivers/vc4/vc4_screen.h
index fb08cc1c7a0..5992e371093 100644
--- a/src/gallium/drivers/vc4/vc4_screen.h
+++ b/src/gallium/drivers/vc4/vc4_screen.h
@@ -67,7 +67,13 @@ struct vc4_screen {
uint32_t size_list_size;
pipe_mutex lock;
+
+ uint32_t bo_size;
+ uint32_t bo_count;
} bo_cache;
+
+ uint32_t bo_size;
+ uint32_t bo_count;
};
static inline struct vc4_screen *