vk/vulkan.h: Constify the pFences parameter to ResetFences
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 8 Jul 2015 00:18:00 +0000 (17:18 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 8 Jul 2015 00:18:00 +0000 (17:18 -0700)
include/vulkan/vulkan.h
src/vulkan/device.c

index f196ba1bd581ce475d79e17b942bba2025a6c618..865c2d5635a810eba3624db9c453c3c3ca4d4164 100644 (file)
@@ -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,
index 65f8ce9778f851fc30cb0e86da3e92e8c525ec0c..ca0d41290a54e64422d6df2f5a910aa2a25cccb4 100644 (file)
@@ -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;