Merge branch 'master' of ../mesa into vulkan
[mesa.git] / src / vulkan / tests / state_pool_no_free.c
index 4b3ca78974fd0a823b5f98d0c19d83f1290d9f40..4b248c2ee66b9ff7bb93918324c3671ca8b17217 100644 (file)
@@ -58,6 +58,7 @@ static void run_test()
    struct anv_block_pool block_pool;
    struct anv_state_pool state_pool;
 
+   pthread_mutex_init(&device.mutex, NULL);
    anv_block_pool_init(&block_pool, &device, 64);
    anv_state_pool_init(&state_pool, &block_pool);
 
@@ -106,6 +107,7 @@ static void run_test()
 
    anv_state_pool_finish(&state_pool);
    anv_block_pool_finish(&block_pool);
+   pthread_mutex_destroy(&device.mutex);
 }
 
 int main(int argc, char **argv)