mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
anv/device: Move mutex initialization to befor block pools
This commit is contained in:
parent
595e6cacf1
commit
a788e7c659
1 changed files with 2 additions and 2 deletions
|
|
@ -605,6 +605,8 @@ VkResult anv_CreateDevice(
|
|||
if (device->context_id == -1)
|
||||
goto fail_fd;
|
||||
|
||||
pthread_mutex_init(&device->mutex, NULL);
|
||||
|
||||
anv_bo_pool_init(&device->batch_bo_pool, device, ANV_CMD_BUFFER_BATCH_SIZE);
|
||||
|
||||
anv_block_pool_init(&device->dynamic_state_block_pool, device, 2048);
|
||||
|
|
@ -624,8 +626,6 @@ VkResult anv_CreateDevice(
|
|||
|
||||
device->compiler = anv_compiler_create(device);
|
||||
|
||||
pthread_mutex_init(&device->mutex, NULL);
|
||||
|
||||
anv_queue_init(device, &device->queue);
|
||||
|
||||
anv_device_init_meta(device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue