From e662bdb82084a9e8136aea1da10423786e103beb Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Thu, 1 Mar 2018 09:25:44 -0800 Subject: anv: Soft-pin state pools The state_pools reserve virtual address space of the full BLOCK_POOL_MEMFD_SIZE, but maintain the current behavior of growing from the middle. v2: - rename block_pool::offset to block_pool::start_address (Jason) - assign state pool start_address statically (Jason) v3: - remove unnecessary bo_flags tampering for the dynamic pool (Jason) Reviewed-by: Jason Ekstrand Reviewed-by: Jordan Justen --- src/intel/vulkan/tests/state_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 99ac7968d88..cb0e403f495 100644 --- a/src/intel/vulkan/tests/state_pool.c +++ b/src/intel/vulkan/tests/state_pool.c @@ -43,7 +43,7 @@ int main(int argc, char **argv) pthread_mutex_init(&device.mutex, NULL); for (unsigned i = 0; i < NUM_RUNS; i++) { - anv_state_pool_init(&state_pool, &device, 256, 0); + anv_state_pool_init(&state_pool, &device, 4096, 256, 0); /* Grab one so a zero offset is impossible */ anv_state_pool_alloc(&state_pool, 16, 16); -- cgit v1.2.3