From 818b8579145196c7a8d4095bd5e65367e02a8fef Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 13 Mar 2017 17:20:15 -0700 Subject: anv: Use the BO cache for DeviceMemory allocations Reviewed-by: Chad Versace --- src/intel/vulkan/anv_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/intel/vulkan/anv_private.h') diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7ebcfefeb12..f06da005809 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -721,6 +721,8 @@ struct anv_device { struct anv_bo_pool batch_bo_pool; + struct anv_bo_cache bo_cache; + struct anv_block_pool dynamic_state_block_pool; struct anv_state_pool dynamic_state_pool; @@ -983,7 +985,7 @@ _anv_combine_address(struct anv_batch *batch, void *location, } struct anv_device_memory { - struct anv_bo bo; + struct anv_bo * bo; uint32_t type_index; VkDeviceSize map_size; void * map; -- cgit v1.2.3