anv: fix uninitialized pthread cond clock domain
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 18 Apr 2019 16:39:36 +0000 (17:39 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 18 Apr 2019 22:23:03 +0000 (23:23 +0100)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 843775bab78a6b ("anv: Rework fences")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c

index aa11ac7d500fea30f90fa3bfb338b654bfd8119f..991ca50f7dd3d36fe454bcb11bf60818cd59b50a 100644 (file)
@@ -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;