summaryrefslogtreecommitdiff
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-04-18 17:39:36 +0100
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-04-18 23:23:03 +0100
commitdfd79079daf08cba0e1d5defc18dedeffb0c6327 (patch)
treec749011998472fc4a5673f06d45181b027b3887c /src/intel/vulkan/anv_device.c
parente731f2648d24eacc56973a8111cdee3b545817d2 (diff)
downloadmesa-dfd79079daf08cba0e1d5defc18dedeffb0c6327.tar.gz
anv: fix uninitialized pthread cond clock domain
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: 843775bab78a6b ("anv: Rework fences") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index aa11ac7d500..991ca50f7dd 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -2051,7 +2051,7 @@ VkResult anv_CreateDevice(
result = vk_error(VK_ERROR_INITIALIZATION_FAILED);
goto fail_mutex;
}
- if (pthread_cond_init(&device->queue_submit, NULL) != 0) {
+ if (pthread_cond_init(&device->queue_submit, &condattr) != 0) {
pthread_condattr_destroy(&condattr);
result = vk_error(VK_ERROR_INITIALIZATION_FAILED);
goto fail_mutex;