Mesa (staging/19.0): anv: fix uninitialized pthread cond clock domain

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 18 23:19:41 UTC 2019


Module: Mesa
Branch: staging/19.0
Commit: 23abb7d3109884fb950ee81c92f9fd62b93ffcc2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23abb7d3109884fb950ee81c92f9fd62b93ffcc2

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Thu Apr 18 17:39:36 2019 +0100

anv: fix uninitialized pthread cond clock domain

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 843775bab78a6b ("anv: Rework fences")
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
(cherry picked from commit dfd79079daf08cba0e1d5defc18dedeffb0c6327)

---

 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index f0583d22774..aa3d948042f 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1866,7 +1866,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;




More information about the mesa-commit mailing list