anv/device: Use a 4K block size for surface state blocks
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Sep 2015 23:36:00 +0000 (16:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Sep 2015 23:01:01 +0000 (16:01 -0700)
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

index 3c10545e8bcb7d95aaab2b34246da9201088b9c7..b6f083b4c83fe0d84bb31f32035c4234376ed691 100644 (file)
@@ -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);