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

Juan A. Suarez Romero jasuarez at igalia.com
Thu Apr 27 16:33:32 UTC 2017


Reviewed-by: Juan A. Suarez Romero <jasuarez at igalia.com>



On Wed, 2017-04-26 at 07:35 -0700, Jason Ekstrand wrote:
> 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;
>  


More information about the mesa-dev mailing list