anv/tests: Initialize the BO cache and device mutex
[mesa.git] / src / intel / vulkan / tests / block_pool_no_free.c
index 361336a8e8ee39b392eb26952de5ab2baf45e82b..a9a11d88d33548741d7f3014276685e0a94d9f58 100644 (file)
@@ -118,6 +118,7 @@ static void run_test()
    struct anv_block_pool pool;
 
    pthread_mutex_init(&device.mutex, NULL);
+   anv_bo_cache_init(&device.bo_cache);
    anv_block_pool_init(&pool, &device, 4096, 4096);
 
    for (unsigned i = 0; i < NUM_THREADS; i++) {