projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595e6ca
)
anv/device: Move mutex initialization to befor block pools
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 18 Sep 2015 01:23:21 +0000
(18:23 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 18 Sep 2015 01:23:21 +0000
(18:23 -0700)
src/vulkan/anv_device.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_device.c
b/src/vulkan/anv_device.c
index
a1c12e0
..
9d3b5db
100644
(file)
--- a/
src/vulkan/anv_device.c
+++ b/
src/vulkan/anv_device.c
@@
-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);