anv: fix uninitialized pthread cond clock domain
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 843775bab7
("anv: Rework fences")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e731f2648d
commit
dfd79079da
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue