* IN THE SOFTWARE.
*/
+#undef NDEBUG
+
#include <pthread.h>
#include "anv_private.h"
static void run_test()
{
- struct anv_device device;
- struct anv_block_pool block_pool;
+ struct anv_instance instance = { };
+ struct anv_device device = {
+ .instance = &instance,
+ };
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);
+ anv_state_pool_init(&state_pool, &device, 4096, 64);
pthread_barrier_init(&barrier, NULL, NUM_THREADS);
}
anv_state_pool_finish(&state_pool);
- anv_block_pool_finish(&block_pool);
pthread_mutex_destroy(&device.mutex);
}