From 0e94446b25632523e5d9901a2e5e61c9c6f28ed9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 22 Sep 2015 16:36:00 -0700 Subject: [PATCH] anv/device: Use a 4K block size for surface state blocks We want to start using the surface state block pool for binding tables and binding tables. In order to do this, we need to be able to set surface state base address to the address of a block and surface state base address has a 4K alignment requriement. --- src/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 3c10545e8bc..b6f083b4c83 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -621,7 +621,7 @@ VkResult anv_CreateDevice( &device->dynamic_state_block_pool); anv_block_pool_init(&device->instruction_block_pool, device, 2048); - anv_block_pool_init(&device->surface_state_block_pool, device, 2048); + anv_block_pool_init(&device->surface_state_block_pool, device, 4096); anv_state_pool_init(&device->surface_state_pool, &device->surface_state_block_pool); -- 2.30.2