diff options
author | Jason Ekstrand <[email protected]> | 2019-10-30 11:44:12 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-10-31 13:46:09 +0000 |
commit | cc972d72c7ad3fb8f518b8cf8163e253735b51bb (patch) | |
tree | 01d7aef89524e515afb75e0a720f003100249c52 /src/intel/vulkan/tests/state_pool_no_free.c | |
parent | 9076e9f3751341063679eb227116060070549a37 (diff) |
anv/tests: Initialize the BO cache and device mutex
We're about to start depending on the BO cache in the state and block
pools so we need them properly initialized for the tests to work.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/tests/state_pool_no_free.c')
-rw-r--r-- | src/intel/vulkan/tests/state_pool_no_free.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/tests/state_pool_no_free.c b/src/intel/vulkan/tests/state_pool_no_free.c index 687e52606c1..a3d781ada1a 100644 --- a/src/intel/vulkan/tests/state_pool_no_free.c +++ b/src/intel/vulkan/tests/state_pool_no_free.c @@ -63,6 +63,7 @@ static void run_test() struct anv_state_pool state_pool; pthread_mutex_init(&device.mutex, NULL); + anv_bo_cache_init(&device.bo_cache); anv_state_pool_init(&state_pool, &device, 4096, 64); pthread_barrier_init(&barrier, NULL, NUM_THREADS); |