From: Lionel Landwerlin Date: Thu, 18 Apr 2019 16:39:36 +0000 (+0100) Subject: anv: fix uninitialized pthread cond clock domain X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfd79079daf08cba0e1d5defc18dedeffb0c6327;p=mesa.git anv: fix uninitialized pthread cond clock domain Signed-off-by: Lionel Landwerlin Fixes: 843775bab78a6b ("anv: Rework fences") Reviewed-by: Jason Ekstrand --- 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;