From 24827fdf505e68234f6099785c659fa84bb33e04 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 26 Apr 2017 07:21:58 -0700 Subject: [PATCH] anv: Drop the instruction pool block size Now that we can allocate states larger than the block size, we no longer need a block size of 1MB which can be rather wasteful. Reviewed-by: Juan A. Suarez Romero --- src/intel/vulkan/anv_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 0773f5f9a54..5e4a62ba575 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1113,8 +1113,7 @@ VkResult anv_CreateDevice( if (result != VK_SUCCESS) goto fail_bo_cache; - result = anv_state_pool_init(&device->instruction_state_pool, device, - 1024 * 1024); + result = anv_state_pool_init(&device->instruction_state_pool, device, 16384); if (result != VK_SUCCESS) goto fail_dynamic_state_pool;