radv: Make the sem_info allocate/free functions static.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 May 2018 22:57:55 +0000 (00:57 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 31 May 2018 09:51:23 +0000 (11:51 +0200)
They are only used in 1 file.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h

index 93b6e6110675878126c4fdf2cdd0195983f91260..9709e73a4fea7a680efeb742c10d925e9e8b0695 100644 (file)
@@ -2349,7 +2349,8 @@ static VkResult radv_alloc_sem_counts(struct radv_winsys_sem_counts *counts,
        return VK_SUCCESS;
 }
 
-void radv_free_sem_info(struct radv_winsys_sem_info *sem_info)
+static void
+radv_free_sem_info(struct radv_winsys_sem_info *sem_info)
 {
        free(sem_info->wait.syncobj);
        free(sem_info->wait.sem);
@@ -2372,12 +2373,13 @@ static void radv_free_temp_syncobjs(struct radv_device *device,
        }
 }
 
-VkResult radv_alloc_sem_info(struct radv_winsys_sem_info *sem_info,
-                            int num_wait_sems,
-                            const VkSemaphore *wait_sems,
-                            int num_signal_sems,
-                            const VkSemaphore *signal_sems,
-                            VkFence fence)
+static VkResult
+radv_alloc_sem_info(struct radv_winsys_sem_info *sem_info,
+                   int num_wait_sems,
+                   const VkSemaphore *wait_sems,
+                   int num_signal_sems,
+                   const VkSemaphore *signal_sems,
+                   VkFence fence)
 {
        VkResult ret;
        memset(sem_info, 0, sizeof(*sem_info));
index 708cacf7708936faf0b5441cec682ac3f949b586..e241283346acc9d0764209709d7190f800b50769 100644 (file)
@@ -1744,14 +1744,6 @@ struct radv_semaphore {
        uint32_t temp_syncobj;
 };
 
-VkResult radv_alloc_sem_info(struct radv_winsys_sem_info *sem_info,
-                            int num_wait_sems,
-                            const VkSemaphore *wait_sems,
-                            int num_signal_sems,
-                            const VkSemaphore *signal_sems,
-                            VkFence fence);
-void radv_free_sem_info(struct radv_winsys_sem_info *sem_info);
-
 void radv_set_descriptor_set(struct radv_cmd_buffer *cmd_buffer,
                             VkPipelineBindPoint bind_point,
                             struct radv_descriptor_set *set,