anv: Increate dynamic pool block size from 2k to 16k
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 8 Jan 2016 20:15:29 +0000 (12:15 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 8 Jan 2016 21:03:30 +0000 (13:03 -0800)
This is needed because compute push constant data is replicated per
invocation. For gen7, this can be up to 64. With a push constant data
max of 128 bytes, this is 8k of data. We need additional space for
local-id payloads, so we are going with 16k for now.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/vulkan/anv_device.c

index 74b813e9e4022d98bc476c2d4aac31e992bb7a40..9c54875a7365dbfad500de9bc10492fec2e0d195 100644 (file)
@@ -718,7 +718,7 @@ VkResult anv_CreateDevice(
 
    anv_bo_pool_init(&device->batch_bo_pool, device, ANV_CMD_BUFFER_BATCH_SIZE);
 
-   anv_block_pool_init(&device->dynamic_state_block_pool, device, 2048);
+   anv_block_pool_init(&device->dynamic_state_block_pool, device, 16384);
 
    anv_state_pool_init(&device->dynamic_state_pool,
                        &device->dynamic_state_block_pool);