mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
vulkan/wsi: Delete wsi_init_pthread_cond_monotonic
Reviewed-by: Derek Foreman <derek.foreman@collabora.com> Reviewed-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29924>
This commit is contained in:
parent
3c4e1c918c
commit
6aaf6d090c
3 changed files with 1 additions and 31 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#define VK_SYNC_TIMELINE_H
|
||||
|
||||
#include "c11/threads.h"
|
||||
#include "util/cnd_monotonic.h"
|
||||
#include "util/list.h"
|
||||
#include "util/macros.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -397,32 +397,6 @@ configure_image(const struct wsi_swapchain *chain,
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(HAVE_PTHREAD) && !defined(_WIN32)
|
||||
bool
|
||||
wsi_init_pthread_cond_monotonic(pthread_cond_t *cond)
|
||||
{
|
||||
pthread_condattr_t condattr;
|
||||
bool ret = false;
|
||||
|
||||
if (pthread_condattr_init(&condattr) != 0)
|
||||
goto fail_attr_init;
|
||||
|
||||
if (pthread_condattr_setclock(&condattr, CLOCK_MONOTONIC) != 0)
|
||||
goto fail_attr_set;
|
||||
|
||||
if (pthread_cond_init(cond, &condattr) != 0)
|
||||
goto fail_cond_init;
|
||||
|
||||
ret = true;
|
||||
|
||||
fail_cond_init:
|
||||
fail_attr_set:
|
||||
pthread_condattr_destroy(&condattr);
|
||||
fail_attr_init:
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
VkResult
|
||||
wsi_swapchain_init(const struct wsi_device *wsi,
|
||||
struct wsi_swapchain *chain,
|
||||
|
|
|
|||
|
|
@ -441,11 +441,6 @@ void wsi_headless_finish_wsi(struct wsi_device *wsi_device,
|
|||
VK_DEFINE_NONDISP_HANDLE_CASTS(wsi_swapchain, base, VkSwapchainKHR,
|
||||
VK_OBJECT_TYPE_SWAPCHAIN_KHR)
|
||||
|
||||
#if defined(HAVE_PTHREAD) && !defined(_WIN32)
|
||||
bool
|
||||
wsi_init_pthread_cond_monotonic(pthread_cond_t *cond);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue