diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-05-31 00:57:55 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-05-31 11:51:23 +0200 |
commit | 729f7373deaf98d860ef95be36ef8af267218bc3 (patch) | |
tree | 43225c22bc3089d2ed29b5c73bb2150c67cdee84 /src/amd/vulkan/radv_device.c | |
parent | 70f9e2589e6be7857c9c874aa1967e8b8608db88 (diff) |
radv: Make the sem_info allocate/free functions static.
They are only used in 1 file.
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 93b6e611067..9709e73a4fe 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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)); |