bug 14016: Make vkResetFences take const pFences

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14016
diff --git a/include/vulkan.h b/include/vulkan.h
index e3e25d9..4109b23 100644
--- a/include/vulkan.h
+++ b/include/vulkan.h
@@ -33,7 +33,7 @@
 #include "vk_platform.h"
 
 // Vulkan API version supported by this file
-#define VK_API_VERSION VK_MAKE_VERSION(0, 105, 0)
+#define VK_API_VERSION VK_MAKE_VERSION(0, 106, 0)
 
 #ifdef __cplusplus
 extern "C"
@@ -2069,7 +2069,7 @@
 typedef VkResult (VKAPI *PFN_vkQueueBindSparseBufferMemory)(VkQueue queue, VkBuffer buffer, VkDeviceSize rangeOffset, VkDeviceSize rangeSize, VkDeviceMemory mem, VkDeviceSize memOffset);
 typedef VkResult (VKAPI *PFN_vkQueueBindSparseImageMemory)(VkQueue queue, VkImage image, 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);
@@ -2318,7 +2318,7 @@
 VkResult VKAPI vkResetFences(
     VkDevice                                    device,
     uint32_t                                    fenceCount,
-    VkFence*                                    pFences);
+    const VkFence*                              pFences);
 
 VkResult VKAPI vkGetFenceStatus(
     VkDevice                                    device,
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp
index 52b2e78..099a6b2 100644
--- a/layers/mem_tracker.cpp
+++ b/layers/mem_tracker.cpp
@@ -1291,7 +1291,7 @@
 VK_LAYER_EXPORT VkResult VKAPI vkResetFences(
     VkDevice  device,
     uint32_t  fenceCount,
-    VkFence  *pFences)
+    const VkFence  *pFences)
 {
     /*
      * TODO: Shouldn't we check for error conditions before passing down the chain?
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp
index 822cb42..0bed869 100644
--- a/layers/param_checker.cpp
+++ b/layers/param_checker.cpp
@@ -550,7 +550,7 @@
     return result;
 }
 
-VK_LAYER_EXPORT VkResult VKAPI vkResetFences(VkDevice device, uint32_t fenceCount, VkFence* pFences)
+VK_LAYER_EXPORT VkResult VKAPI vkResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences)
 {
 
     VkResult result = device_dispatch_table(device)->ResetFences(device, fenceCount, pFences);
diff --git a/loader/trampoline.c b/loader/trampoline.c
index 0a1a140..b5e5d7a 100644
--- a/loader/trampoline.c
+++ b/loader/trampoline.c
@@ -409,7 +409,7 @@
     return disp->CreateFence(device, pCreateInfo, pFence);
 }
 
-LOADER_EXPORT VkResult VKAPI vkResetFences(VkDevice device, uint32_t fenceCount, VkFence* pFences)
+LOADER_EXPORT VkResult VKAPI vkResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences)
 {
     const VkLayerDispatchTable *disp;
 
diff --git a/vulkan.py b/vulkan.py
index 7fa074a..e990567 100755
--- a/vulkan.py
+++ b/vulkan.py
@@ -369,7 +369,7 @@
         Proto("VkResult", "ResetFences",
             [Param("VkDevice", "device"),
              Param("uint32_t", "fenceCount"),
-             Param("VkFence*", "pFences")]),
+             Param("const VkFence*", "pFences")]),
 
         Proto("VkResult", "GetFenceStatus",
             [Param("VkDevice", "device"),