summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_cmd_buffer.c
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_cmd_buffer.c
parent56ce2194934868b08e13fb9c483cf90bbe6d562d (diff)
vk: Add and use an anv_block_pool_size() helper
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
-rw-r--r--src/vulkan/anv_cmd_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c
index 3b9e67fdd0f..9ee5cf8b247 100644
--- a/src/vulkan/anv_cmd_buffer.c
+++ b/src/vulkan/anv_cmd_buffer.c
@@ -136,7 +136,8 @@ anv_cmd_buffer_emit_state_base_address(struct anv_cmd_buffer *cmd_buffer)
struct anv_device *device = cmd_buffer->device;
struct anv_bo *scratch_bo = NULL;
- cmd_buffer->state.scratch_size = device->scratch_block_pool.size;
+ cmd_buffer->state.scratch_size =
+ anv_block_pool_size(&device->scratch_block_pool);
if (cmd_buffer->state.scratch_size > 0)
scratch_bo = &device->scratch_block_pool.bo;