From 6a09d1e71d49f75589fd40cd3998c174185dff42 Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Thu, 12 May 2016 18:48:45 +0900 Subject: [PATCH] wsi: Use const qualifier for semaphores in vk_wait_for_semaphores() Change-Id: I99c42eddee86aecf58b2fa315208299638682f24 --- src/null-driver/null-driver.c | 2 +- src/wsi/icd.c | 4 ++-- src/wsi/vulkan-wsi-tizen.h | 2 +- src/wsi/wsi.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/null-driver/null-driver.c b/src/null-driver/null-driver.c index a309e31..2835ef9 100644 --- a/src/null-driver/null-driver.c +++ b/src/null-driver/null-driver.c @@ -2532,7 +2532,7 @@ vk_signal_semaphore(VkSemaphore semaphore) } VkBool32 -vk_wait_for_semaphores(uint32_t count, VkSemaphore *semaphores) +vk_wait_for_semaphores(uint32_t count, const VkSemaphore *semaphores) { return VK_TRUE; } diff --git a/src/wsi/icd.c b/src/wsi/icd.c index b5678a0..146c2ce 100644 --- a/src/wsi/icd.c +++ b/src/wsi/icd.c @@ -43,7 +43,7 @@ struct vk_icd { VkImage (*create_presentable_image)(VkDevice device, const VkImageCreateInfo *info, tbm_surface_h buffer); VkBool32 (*signal_semaphore)(VkSemaphore semaphore); - VkBool32 (*wait_for_semaphores)(uint32_t count, VkSemaphore *semaphores); + VkBool32 (*wait_for_semaphores)(uint32_t count, const VkSemaphore *semaphores); VkBool32 (*signal_fence)(VkFence fence); }; @@ -135,7 +135,7 @@ vk_icd_signal_semaphore(VkSemaphore semaphore) } VkBool32 -vk_icd_wait_for_semaphores(uint32_t count, VkSemaphore *semaphores) +vk_icd_wait_for_semaphores(uint32_t count, const VkSemaphore *semaphores) { return icd.wait_for_semaphores(count, semaphores); } diff --git a/src/wsi/vulkan-wsi-tizen.h b/src/wsi/vulkan-wsi-tizen.h index fede261..27e97f7 100644 --- a/src/wsi/vulkan-wsi-tizen.h +++ b/src/wsi/vulkan-wsi-tizen.h @@ -11,7 +11,7 @@ VkBool32 vk_signal_semaphore(VkSemaphore semaphore); VkBool32 -vk_wait_for_semaphores(uint32_t count, VkSemaphore *semaphores); +vk_wait_for_semaphores(uint32_t count, const VkSemaphore *semaphores); VkBool32 vk_signal_fence(VkFence fence); diff --git a/src/wsi/wsi.h b/src/wsi/wsi.h index 00d1c0e..35761c7 100644 --- a/src/wsi/wsi.h +++ b/src/wsi/wsi.h @@ -89,7 +89,7 @@ VkBool32 vk_icd_signal_semaphore(VkSemaphore semaphore); VkBool32 -vk_icd_wait_for_semaphores(uint32_t count, VkSemaphore *semaphores); +vk_icd_wait_for_semaphores(uint32_t count, const VkSemaphore *semaphores); VkBool32 vk_icd_signal_fence(VkFence fence); -- 2.7.4