diff options
author | Lionel Landwerlin <[email protected]> | 2017-11-17 17:26:59 +0000 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-11-22 22:53:27 +0000 |
commit | 118a8c7587d919b3b85cec7855a16d9e778394e6 (patch) | |
tree | bb667f604089aaf9287767ba23a6056e0271eff3 /src/intel/vulkan/tests | |
parent | 799d35087001aa754304d9409d3d52750430e40b (diff) |
anv: setup BO flags at state_pool/block_pool creation
This will allow to set the flags on any anv_bo created/filled from a
state pool or block pool later.
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/vulkan/tests')
-rw-r--r-- | src/intel/vulkan/tests/block_pool_no_free.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool_free_list_only.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool_no_free.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/vulkan/tests/block_pool_no_free.c b/src/intel/vulkan/tests/block_pool_no_free.c index 4ddbbb24bbf..0d08526e632 100644 --- a/src/intel/vulkan/tests/block_pool_no_free.c +++ b/src/intel/vulkan/tests/block_pool_no_free.c @@ -116,7 +116,7 @@ static void run_test() struct anv_block_pool pool; pthread_mutex_init(&device.mutex, NULL); - anv_block_pool_init(&pool, &device, 4096); + anv_block_pool_init(&pool, &device, 4096, 0); for (unsigned i = 0; i < NUM_THREADS; i++) { jobs[i].pool = &pool; diff --git a/src/intel/vulkan/tests/state_pool.c b/src/intel/vulkan/tests/state_pool.c index 249fe64fe92..99ac7968d88 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); + anv_state_pool_init(&state_pool, &device, 256, 0); /* Grab one so a zero offset is impossible */ anv_state_pool_alloc(&state_pool, 16, 16); diff --git a/src/intel/vulkan/tests/state_pool_free_list_only.c b/src/intel/vulkan/tests/state_pool_free_list_only.c index 6a04d641ce4..9370b8680ac 100644 --- a/src/intel/vulkan/tests/state_pool_free_list_only.c +++ b/src/intel/vulkan/tests/state_pool_free_list_only.c @@ -40,7 +40,7 @@ int main(int argc, char **argv) struct anv_state_pool state_pool; pthread_mutex_init(&device.mutex, NULL); - anv_state_pool_init(&state_pool, &device, 4096); + anv_state_pool_init(&state_pool, &device, 4096, 0); /* Grab one so a zero offset is impossible */ anv_state_pool_alloc(&state_pool, 16, 16); diff --git a/src/intel/vulkan/tests/state_pool_no_free.c b/src/intel/vulkan/tests/state_pool_no_free.c index 1ba832cf665..021137337f8 100644 --- a/src/intel/vulkan/tests/state_pool_no_free.c +++ b/src/intel/vulkan/tests/state_pool_no_free.c @@ -61,7 +61,7 @@ static void run_test() struct anv_state_pool state_pool; pthread_mutex_init(&device.mutex, NULL); - anv_state_pool_init(&state_pool, &device, 64); + anv_state_pool_init(&state_pool, &device, 64, 0); pthread_barrier_init(&barrier, NULL, NUM_THREADS); |