wsi: Use const qualifier for semaphores in vk_wait_for_semaphores() 62/69262/1
authorTaekyun Kim <tkq.kim@samsung.com>
Thu, 12 May 2016 09:48:45 +0000 (18:48 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Thu, 12 May 2016 09:48:45 +0000 (18:48 +0900)
Change-Id: I99c42eddee86aecf58b2fa315208299638682f24

src/null-driver/null-driver.c
src/wsi/icd.c
src/wsi/vulkan-wsi-tizen.h
src/wsi/wsi.h

index a309e31..2835ef9 100644 (file)
@@ -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;
 }
index b5678a0..146c2ce 100644 (file)
@@ -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);
 }
index fede261..27e97f7 100644 (file)
@@ -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);
index 00d1c0e..35761c7 100644 (file)
@@ -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);