From d3ed72e2c2164d0ba5f0d2e6d652d8710030aa2b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 24 Apr 2017 08:50:23 -0700 Subject: anv/allocator: Embed the block_pool in the state_pool Now that the state stream is allocating off of the state pool, there's no reason why we need the block pool to be separate. Reviewed-by: Juan A. Suarez Romero --- src/intel/vulkan/tests/state_pool.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/intel/vulkan/tests/state_pool.c') diff --git a/src/intel/vulkan/tests/state_pool.c b/src/intel/vulkan/tests/state_pool.c index db3f3ec08a4..249fe64fe92 100644 --- a/src/intel/vulkan/tests/state_pool.c +++ b/src/intel/vulkan/tests/state_pool.c @@ -38,14 +38,12 @@ int main(int argc, char **argv) struct anv_device device = { .instance = &instance, }; - struct anv_block_pool block_pool; struct anv_state_pool state_pool; pthread_mutex_init(&device.mutex, NULL); for (unsigned i = 0; i < NUM_RUNS; i++) { - anv_block_pool_init(&block_pool, &device, 4096); - anv_state_pool_init(&state_pool, &block_pool, 256); + anv_state_pool_init(&state_pool, &device, 256); /* Grab one so a zero offset is impossible */ anv_state_pool_alloc(&state_pool, 16, 16); @@ -53,7 +51,6 @@ int main(int argc, char **argv) run_state_pool_test(&state_pool); anv_state_pool_finish(&state_pool); - anv_block_pool_finish(&block_pool); } pthread_mutex_destroy(&device.mutex); -- cgit v1.2.3