From 1cd435f3216c677b78390137cae9fe5380b8dd35 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 17 May 2022 13:16:15 -0500 Subject: [PATCH] c/client: Clarify that wait_image timeout is nanoseconds --- src/xrt/compositor/client/comp_gl_client.c | 4 ++-- src/xrt/compositor/client/comp_vk_client.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xrt/compositor/client/comp_gl_client.c b/src/xrt/compositor/client/comp_gl_client.c index 7fe830516..66ca85fad 100644 --- a/src/xrt/compositor/client/comp_gl_client.c +++ b/src/xrt/compositor/client/comp_gl_client.c @@ -142,12 +142,12 @@ client_gl_swapchain_acquire_image(struct xrt_swapchain *xsc, uint32_t *out_index } static xrt_result_t -client_gl_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout, uint32_t index) +client_gl_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout_ns, uint32_t index) { struct client_gl_swapchain *sc = client_gl_swapchain(xsc); // Pipe down call into native swapchain. - return xrt_swapchain_wait_image(&sc->xscn->base, timeout, index); + return xrt_swapchain_wait_image(&sc->xscn->base, timeout_ns, index); } static xrt_result_t diff --git a/src/xrt/compositor/client/comp_vk_client.c b/src/xrt/compositor/client/comp_vk_client.c index 5b20351a1..21d42c0ab 100644 --- a/src/xrt/compositor/client/comp_vk_client.c +++ b/src/xrt/compositor/client/comp_vk_client.c @@ -285,14 +285,14 @@ client_vk_swapchain_acquire_image(struct xrt_swapchain *xsc, uint32_t *out_index } static xrt_result_t -client_vk_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout, uint32_t index) +client_vk_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout_ns, uint32_t index) { COMP_TRACE_MARKER(); struct client_vk_swapchain *sc = client_vk_swapchain(xsc); // Pipe down call into native swapchain. - return xrt_swapchain_wait_image(&sc->xscn->base, timeout, index); + return xrt_swapchain_wait_image(&sc->xscn->base, timeout_ns, index); } static xrt_result_t