[Mesa-dev] [PATCH 18/18] anv: Drop the instruction pool block size

Jason Ekstrand jason at jlekstrand.net
Wed Apr 26 14:35:17 UTC 2017


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.
---
 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 a31c758..9e924c8 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1077,8 +1077,7 @@ VkResult anv_CreateDevice(
    if (result != VK_SUCCESS)
       goto fail_batch_bo_pool;
 
-   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;
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list