From d5349b1b18b2c9bece7f6491e5bf3918a53fedd2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 7 Jul 2015 17:18:00 -0700 Subject: [PATCH] vk/vulkan.h: Constify the pFences parameter to ResetFences --- include/vulkan/vulkan.h | 4 ++-- src/vulkan/device.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index f196ba1bd58..865c2d5635a 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -1927,7 +1927,7 @@ typedef VkResult (VKAPI *PFN_vkQueueBindObjectMemory)(VkQueue queue, VkObjectTyp typedef VkResult (VKAPI *PFN_vkQueueBindObjectMemoryRange)(VkQueue queue, VkObjectType objType, VkObject object, uint32_t allocationIdx, VkDeviceSize rangeOffset, VkDeviceSize rangeSize, VkDeviceMemory mem, VkDeviceSize memOffset); typedef VkResult (VKAPI *PFN_vkQueueBindImageMemoryRange)(VkQueue queue, VkImage image, uint32_t allocationIdx, const VkImageMemoryBindInfo* pBindInfo, VkDeviceMemory mem, VkDeviceSize memOffset); typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); -typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, VkFence* pFences); +typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout); typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); @@ -2158,7 +2158,7 @@ VkResult VKAPI vkCreateFence( VkResult VKAPI vkResetFences( VkDevice device, uint32_t fenceCount, - VkFence* pFences); + const VkFence* pFences); VkResult VKAPI vkGetFenceStatus( VkDevice device, diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 65f8ce9778f..ca0d41290a5 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1295,7 +1295,7 @@ VkResult anv_CreateFence( VkResult anv_ResetFences( VkDevice _device, uint32_t fenceCount, - VkFence* pFences) + const VkFence* pFences) { struct anv_fence **fences = (struct anv_fence **) pFences; -- 2.30.2