summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-08-03 01:18:09 -0700
committerJason Ekstrand <[email protected]>2015-08-03 01:18:09 -0700
commit5e5a783530aba5c65e9d08683c905fb4cfd329c5 (patch)
treee3d803dafef9f993c79333b90dd79f85e36fa530 /src/vulkan/anv_private.h
parent56ce2194934868b08e13fb9c483cf90bbe6d562d (diff)
vk: Add and use an anv_block_pool_size() helper
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index 563d7a573bd..b30dd7d51ad 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -253,6 +253,12 @@ struct anv_block_pool {
union anv_free_list free_list;
};
+static inline uint32_t
+anv_block_pool_size(struct anv_block_pool *pool)
+{
+ return pool->size;
+}
+
struct anv_block_state {
union {
struct {