summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-13 17:20:15 -0700
committerJason Ekstrand <[email protected]>2017-04-27 20:08:46 -0700
commit818b8579145196c7a8d4095bd5e65367e02a8fef (patch)
tree9392d3ef4b103adc00a1c69f68349453d2ce9947 /src/intel/vulkan/anv_private.h
parent494d6f65a7c5138bd3bda062afd6a1c4adadc1e8 (diff)
anv: Use the BO cache for DeviceMemory allocations
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h4
1 files changed, 3 insertions, 1 deletions
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;