Updated framework for VK_KHR_maintenance4
authorPiers Daniell <pdaniell@nvidia.com>
Thu, 29 Jul 2021 23:57:51 +0000 (17:57 -0600)
committerPeter Kohaut <peter.kohaut@gmail.com>
Sun, 5 Sep 2021 22:13:15 +0000 (00:13 +0200)
This is just the vulkan_core.h and generated framework
for VK_KHR_maintenance4. Other CLs can be chained off
this one.

Affects: nothing

Components: Framework, Vulkan

VK-GL-CTS issue: 2996

Change-Id: Iaddaaa02c1523181b86f4beeeef40a17128c65bb

15 files changed:
external/vulkancts/framework/vulkan/vkBasicTypes.inl
external/vulkancts/framework/vulkan/vkConcreteDeviceInterface.inl
external/vulkancts/framework/vulkan/vkDeviceDriverImpl.inl
external/vulkancts/framework/vulkan/vkDeviceFunctionPointers.inl
external/vulkancts/framework/vulkan/vkExtensionFunctions.inl
external/vulkancts/framework/vulkan/vkFunctionPointerTypes.inl
external/vulkancts/framework/vulkan/vkGetStructureTypeImpl.inl
external/vulkancts/framework/vulkan/vkInitDeviceFunctionPointers.inl
external/vulkancts/framework/vulkan/vkNullDriverImpl.inl
external/vulkancts/framework/vulkan/vkStrUtil.inl
external/vulkancts/framework/vulkan/vkStrUtilImpl.inl
external/vulkancts/framework/vulkan/vkStructTypes.inl
external/vulkancts/framework/vulkan/vkVirtualDeviceInterface.inl
external/vulkancts/framework/vulkan/vkVulkan_c.inl
external/vulkancts/scripts/src/vulkan_core.h

index 536ccfb..5aca8fb 100644 (file)
@@ -703,6 +703,8 @@ enum VkStructureType
        VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT                                                     = 1000392001,
        VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR                                            = 1000413000,
        VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR                                          = 1000413001,
+       VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR                                                         = 1000413002,
+       VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR                                                          = 1000413003,
        VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES                                                     = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES,
        VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES                                        = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES,
        VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT                                                                          = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT,
index 1b41995..e1c8536 100644 (file)
@@ -197,9 +197,9 @@ virtual void                                cmdCopyBufferToImage2KHR                                                (VkCommandBuffer commandBuffer, co
 virtual void                           cmdCopyImageToBuffer2KHR                                                (VkCommandBuffer commandBuffer, const VkCopyImageToBufferInfo2KHR* pCopyImageToBufferInfo) const;
 virtual void                           cmdBlitImage2KHR                                                                (VkCommandBuffer commandBuffer, const VkBlitImageInfo2KHR* pBlitImageInfo) const;
 virtual void                           cmdResolveImage2KHR                                                             (VkCommandBuffer commandBuffer, const VkResolveImageInfo2KHR* pResolveImageInfo) const;
-virtual void                           getBufferCreateInfoMemoryRequirementsKHR                (VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements) const;
-virtual void                           getImageCreateInfoMemoryRequirementsKHR                 (VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements) const;
-virtual void                           getImageCreateInfoSparseMemoryRequirementsKHR   (VkDevice device, const VkImageCreateInfo* pCreateInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) const;
+virtual void                           getDeviceBufferMemoryRequirementsKHR                    (VkDevice device, const VkDeviceBufferMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements) const;
+virtual void                           getDeviceImageMemoryRequirementsKHR                             (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements) const;
+virtual void                           getDeviceImageSparseMemoryRequirementsKHR               (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) const;
 virtual VkResult                       debugMarkerSetObjectTagEXT                                              (VkDevice device, const VkDebugMarkerObjectTagInfoEXT* pTagInfo) const;
 virtual VkResult                       debugMarkerSetObjectNameEXT                                             (VkDevice device, const VkDebugMarkerObjectNameInfoEXT* pNameInfo) const;
 virtual void                           cmdDebugMarkerBeginEXT                                                  (VkCommandBuffer commandBuffer, const VkDebugMarkerMarkerInfoEXT* pMarkerInfo) const;
index 21ddb00..1888aa3 100644 (file)
@@ -982,19 +982,19 @@ void DeviceDriver::cmdResolveImage2KHR (VkCommandBuffer commandBuffer, const VkR
        m_vk.cmdResolveImage2KHR(commandBuffer, pResolveImageInfo);
 }
 
-void DeviceDriver::getBufferCreateInfoMemoryRequirementsKHR (VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements) const
+void DeviceDriver::getDeviceBufferMemoryRequirementsKHR (VkDevice device, const VkDeviceBufferMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements) const
 {
-       m_vk.getBufferCreateInfoMemoryRequirementsKHR(device, pCreateInfo, pMemoryRequirements);
+       m_vk.getDeviceBufferMemoryRequirementsKHR(device, pInfo, pMemoryRequirements);
 }
 
-void DeviceDriver::getImageCreateInfoMemoryRequirementsKHR (VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements) const
+void DeviceDriver::getDeviceImageMemoryRequirementsKHR (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements) const
 {
-       m_vk.getImageCreateInfoMemoryRequirementsKHR(device, pCreateInfo, pMemoryRequirements);
+       m_vk.getDeviceImageMemoryRequirementsKHR(device, pInfo, pMemoryRequirements);
 }
 
-void DeviceDriver::getImageCreateInfoSparseMemoryRequirementsKHR (VkDevice device, const VkImageCreateInfo* pCreateInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) const
+void DeviceDriver::getDeviceImageSparseMemoryRequirementsKHR (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) const
 {
-       m_vk.getImageCreateInfoSparseMemoryRequirementsKHR(device, pCreateInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
+       m_vk.getDeviceImageSparseMemoryRequirementsKHR(device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
 }
 
 VkResult DeviceDriver::debugMarkerSetObjectTagEXT (VkDevice device, const VkDebugMarkerObjectTagInfoEXT* pTagInfo) const
index 8a5d7b5..b1d9cb0 100644 (file)
@@ -197,9 +197,9 @@ CmdCopyBufferToImage2KHRFunc                                                cmdCopyBufferToImage2KHR;
 CmdCopyImageToBuffer2KHRFunc                                           cmdCopyImageToBuffer2KHR;
 CmdBlitImage2KHRFunc                                                           cmdBlitImage2KHR;
 CmdResolveImage2KHRFunc                                                                cmdResolveImage2KHR;
-GetBufferCreateInfoMemoryRequirementsKHRFunc           getBufferCreateInfoMemoryRequirementsKHR;
-GetImageCreateInfoMemoryRequirementsKHRFunc                    getImageCreateInfoMemoryRequirementsKHR;
-GetImageCreateInfoSparseMemoryRequirementsKHRFunc      getImageCreateInfoSparseMemoryRequirementsKHR;
+GetDeviceBufferMemoryRequirementsKHRFunc                       getDeviceBufferMemoryRequirementsKHR;
+GetDeviceImageMemoryRequirementsKHRFunc                                getDeviceImageMemoryRequirementsKHR;
+GetDeviceImageSparseMemoryRequirementsKHRFunc          getDeviceImageSparseMemoryRequirementsKHR;
 DebugMarkerSetObjectTagEXTFunc                                         debugMarkerSetObjectTagEXT;
 DebugMarkerSetObjectNameEXTFunc                                                debugMarkerSetObjectNameEXT;
 CmdDebugMarkerBeginEXTFunc                                                     cmdDebugMarkerBeginEXT;
index c760104..a048d4e 100644 (file)
@@ -1470,9 +1470,9 @@ void getDeviceExtensionFunctions (uint32_t apiVersion, ::std::string extName, ::
        }
        if (extName == "VK_KHR_maintenance4")
        {
-               functions.push_back("vkGetBufferCreateInfoMemoryRequirementsKHR");
-               functions.push_back("vkGetImageCreateInfoMemoryRequirementsKHR");
-               functions.push_back("vkGetImageCreateInfoSparseMemoryRequirementsKHR");
+               functions.push_back("vkGetDeviceBufferMemoryRequirementsKHR");
+               functions.push_back("vkGetDeviceImageMemoryRequirementsKHR");
+               functions.push_back("vkGetDeviceImageSparseMemoryRequirementsKHR");
                return;
        }
        if (extName == "VK_EXT_debug_report")
index 219b01e..477feb7 100644 (file)
@@ -285,9 +285,9 @@ typedef VKAPI_ATTR void                                     (VKAPI_CALL* CmdCopyBufferToImage2KHRFunc)
 typedef VKAPI_ATTR void                                        (VKAPI_CALL* CmdCopyImageToBuffer2KHRFunc)                                                                                      (VkCommandBuffer commandBuffer, const VkCopyImageToBufferInfo2KHR* pCopyImageToBufferInfo);
 typedef VKAPI_ATTR void                                        (VKAPI_CALL* CmdBlitImage2KHRFunc)                                                                                                      (VkCommandBuffer commandBuffer, const VkBlitImageInfo2KHR* pBlitImageInfo);
 typedef VKAPI_ATTR void                                        (VKAPI_CALL* CmdResolveImage2KHRFunc)                                                                                           (VkCommandBuffer commandBuffer, const VkResolveImageInfo2KHR* pResolveImageInfo);
-typedef VKAPI_ATTR void                                        (VKAPI_CALL* GetBufferCreateInfoMemoryRequirementsKHRFunc)                                                      (VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef VKAPI_ATTR void                                        (VKAPI_CALL* GetImageCreateInfoMemoryRequirementsKHRFunc)                                                       (VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef VKAPI_ATTR void                                        (VKAPI_CALL* GetImageCreateInfoSparseMemoryRequirementsKHRFunc)                                         (VkDevice device, const VkImageCreateInfo* pCreateInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements);
+typedef VKAPI_ATTR void                                        (VKAPI_CALL* GetDeviceBufferMemoryRequirementsKHRFunc)                                                          (VkDevice device, const VkDeviceBufferMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements);
+typedef VKAPI_ATTR void                                        (VKAPI_CALL* GetDeviceImageMemoryRequirementsKHRFunc)                                                           (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements);
+typedef VKAPI_ATTR void                                        (VKAPI_CALL* GetDeviceImageSparseMemoryRequirementsKHRFunc)                                                     (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements);
 typedef VKAPI_ATTR VkResult                            (VKAPI_CALL* CreateDebugReportCallbackEXTFunc)                                                                          (VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback);
 typedef VKAPI_ATTR void                                        (VKAPI_CALL* DestroyDebugReportCallbackEXTFunc)                                                                         (VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator);
 typedef VKAPI_ATTR void                                        (VKAPI_CALL* DebugReportMessageEXTFunc)                                                                                         (VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage);
index d792f46..c9276ae 100644 (file)
@@ -1261,6 +1261,16 @@ template<> VkStructureType getStructureType<VkPhysicalDeviceMaintenance4Properti
        return VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR;
 }
 
+template<> VkStructureType getStructureType<VkDeviceBufferMemoryRequirementsKHR> (void)
+{
+       return VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR;
+}
+
+template<> VkStructureType getStructureType<VkDeviceImageMemoryRequirementsKHR> (void)
+{
+       return VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR;
+}
+
 template<> VkStructureType getStructureType<VkDebugReportCallbackCreateInfoEXT> (void)
 {
        return VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT;
index 5139088..5ed17cc 100644 (file)
@@ -253,9 +253,9 @@ m_vk.cmdCopyBufferToImage2KHR                                                       = (CmdCopyBufferToImage2KHRFunc)                                                GET_PR
 m_vk.cmdCopyImageToBuffer2KHR                                                  = (CmdCopyImageToBuffer2KHRFunc)                                                GET_PROC_ADDR("vkCmdCopyImageToBuffer2KHR");
 m_vk.cmdBlitImage2KHR                                                                  = (CmdBlitImage2KHRFunc)                                                                GET_PROC_ADDR("vkCmdBlitImage2KHR");
 m_vk.cmdResolveImage2KHR                                                               = (CmdResolveImage2KHRFunc)                                                             GET_PROC_ADDR("vkCmdResolveImage2KHR");
-m_vk.getBufferCreateInfoMemoryRequirementsKHR                  = (GetBufferCreateInfoMemoryRequirementsKHRFunc)                GET_PROC_ADDR("vkGetBufferCreateInfoMemoryRequirementsKHR");
-m_vk.getImageCreateInfoMemoryRequirementsKHR                   = (GetImageCreateInfoMemoryRequirementsKHRFunc)                 GET_PROC_ADDR("vkGetImageCreateInfoMemoryRequirementsKHR");
-m_vk.getImageCreateInfoSparseMemoryRequirementsKHR             = (GetImageCreateInfoSparseMemoryRequirementsKHRFunc)   GET_PROC_ADDR("vkGetImageCreateInfoSparseMemoryRequirementsKHR");
+m_vk.getDeviceBufferMemoryRequirementsKHR                              = (GetDeviceBufferMemoryRequirementsKHRFunc)                    GET_PROC_ADDR("vkGetDeviceBufferMemoryRequirementsKHR");
+m_vk.getDeviceImageMemoryRequirementsKHR                               = (GetDeviceImageMemoryRequirementsKHRFunc)                             GET_PROC_ADDR("vkGetDeviceImageMemoryRequirementsKHR");
+m_vk.getDeviceImageSparseMemoryRequirementsKHR                 = (GetDeviceImageSparseMemoryRequirementsKHRFunc)               GET_PROC_ADDR("vkGetDeviceImageSparseMemoryRequirementsKHR");
 m_vk.debugMarkerSetObjectTagEXT                                                        = (DebugMarkerSetObjectTagEXTFunc)                                              GET_PROC_ADDR("vkDebugMarkerSetObjectTagEXT");
 m_vk.debugMarkerSetObjectNameEXT                                               = (DebugMarkerSetObjectNameEXTFunc)                                             GET_PROC_ADDR("vkDebugMarkerSetObjectNameEXT");
 m_vk.cmdDebugMarkerBeginEXT                                                            = (CmdDebugMarkerBeginEXTFunc)                                                  GET_PROC_ADDR("vkCmdDebugMarkerBeginEXT");
index 16716f6..7b2dc84 100644 (file)
@@ -1866,24 +1866,24 @@ VKAPI_ATTR void VKAPI_CALL cmdResolveImage2KHR (VkCommandBuffer commandBuffer, c
        DE_UNREF(pResolveImageInfo);
 }
 
-VKAPI_ATTR void VKAPI_CALL getBufferCreateInfoMemoryRequirementsKHR (VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements)
+VKAPI_ATTR void VKAPI_CALL getDeviceBufferMemoryRequirementsKHR (VkDevice device, const VkDeviceBufferMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements)
 {
        DE_UNREF(device);
-       DE_UNREF(pCreateInfo);
+       DE_UNREF(pInfo);
        DE_UNREF(pMemoryRequirements);
 }
 
-VKAPI_ATTR void VKAPI_CALL getImageCreateInfoMemoryRequirementsKHR (VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements)
+VKAPI_ATTR void VKAPI_CALL getDeviceImageMemoryRequirementsKHR (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements)
 {
        DE_UNREF(device);
-       DE_UNREF(pCreateInfo);
+       DE_UNREF(pInfo);
        DE_UNREF(pMemoryRequirements);
 }
 
-VKAPI_ATTR void VKAPI_CALL getImageCreateInfoSparseMemoryRequirementsKHR (VkDevice device, const VkImageCreateInfo* pCreateInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements)
+VKAPI_ATTR void VKAPI_CALL getDeviceImageSparseMemoryRequirementsKHR (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements)
 {
        DE_UNREF(device);
-       DE_UNREF(pCreateInfo);
+       DE_UNREF(pInfo);
        DE_UNREF(pSparseMemoryRequirementCount);
        DE_UNREF(pSparseMemoryRequirements);
 }
@@ -3581,9 +3581,9 @@ static const tcu::StaticFunctionLibrary::Entry s_deviceFunctions[] =
        VK_NULL_FUNC_ENTRY(vkCmdCopyImageToBuffer2KHR,                                                  cmdCopyImageToBuffer2KHR),
        VK_NULL_FUNC_ENTRY(vkCmdBlitImage2KHR,                                                                  cmdBlitImage2KHR),
        VK_NULL_FUNC_ENTRY(vkCmdResolveImage2KHR,                                                               cmdResolveImage2KHR),
-       VK_NULL_FUNC_ENTRY(vkGetBufferCreateInfoMemoryRequirementsKHR,                  getBufferCreateInfoMemoryRequirementsKHR),
-       VK_NULL_FUNC_ENTRY(vkGetImageCreateInfoMemoryRequirementsKHR,                   getImageCreateInfoMemoryRequirementsKHR),
-       VK_NULL_FUNC_ENTRY(vkGetImageCreateInfoSparseMemoryRequirementsKHR,             getImageCreateInfoSparseMemoryRequirementsKHR),
+       VK_NULL_FUNC_ENTRY(vkGetDeviceBufferMemoryRequirementsKHR,                              getDeviceBufferMemoryRequirementsKHR),
+       VK_NULL_FUNC_ENTRY(vkGetDeviceImageMemoryRequirementsKHR,                               getDeviceImageMemoryRequirementsKHR),
+       VK_NULL_FUNC_ENTRY(vkGetDeviceImageSparseMemoryRequirementsKHR,                 getDeviceImageSparseMemoryRequirementsKHR),
        VK_NULL_FUNC_ENTRY(vkDebugMarkerSetObjectTagEXT,                                                debugMarkerSetObjectTagEXT),
        VK_NULL_FUNC_ENTRY(vkDebugMarkerSetObjectNameEXT,                                               debugMarkerSetObjectNameEXT),
        VK_NULL_FUNC_ENTRY(vkCmdDebugMarkerBeginEXT,                                                    cmdDebugMarkerBeginEXT),
index 45389f0..74e14aa 100644 (file)
@@ -834,6 +834,8 @@ std::ostream&       operator<<      (std::ostream& s, const VkResolveImageInfo2KHR& value);
 std::ostream&  operator<<      (std::ostream& s, const VkFormatPropertiesExtendedKHR& value);
 std::ostream&  operator<<      (std::ostream& s, const VkPhysicalDeviceMaintenance4FeaturesKHR& value);
 std::ostream&  operator<<      (std::ostream& s, const VkPhysicalDeviceMaintenance4PropertiesKHR& value);
+std::ostream&  operator<<      (std::ostream& s, const VkDeviceBufferMemoryRequirementsKHR& value);
+std::ostream&  operator<<      (std::ostream& s, const VkDeviceImageMemoryRequirementsKHR& value);
 std::ostream&  operator<<      (std::ostream& s, const VkDebugReportCallbackCreateInfoEXT& value);
 std::ostream&  operator<<      (std::ostream& s, const VkPipelineRasterizationStateRasterizationOrderAMD& value);
 std::ostream&  operator<<      (std::ostream& s, const VkDebugMarkerObjectNameInfoEXT& value);
index 99b81ca..e56685f 100644 (file)
@@ -704,6 +704,8 @@ const char* getStructureTypeName (VkStructureType value)
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT:                                                       return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT";
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR:                                                      return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR";
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR:                                            return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR";
+               case VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR:                                                           return "VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR";
+               case VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR:                                                            return "VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR";
                case VK_STRUCTURE_TYPE_MAX_ENUM:                                                                                                                        return "VK_STRUCTURE_TYPE_MAX_ENUM";
                default:                                                                                                                                                                        return DE_NULL;
        }
@@ -8753,6 +8755,27 @@ std::ostream& operator<< (std::ostream& s, const VkPhysicalDeviceMaintenance4Pro
        return s;
 }
 
+std::ostream& operator<< (std::ostream& s, const VkDeviceBufferMemoryRequirementsKHR& value)
+{
+       s << "VkDeviceBufferMemoryRequirementsKHR = {\n";
+       s << "\tsType = " << value.sType << '\n';
+       s << "\tpNext = " << value.pNext << '\n';
+       s << "\tpCreateInfo = " << value.pCreateInfo << '\n';
+       s << '}';
+       return s;
+}
+
+std::ostream& operator<< (std::ostream& s, const VkDeviceImageMemoryRequirementsKHR& value)
+{
+       s << "VkDeviceImageMemoryRequirementsKHR = {\n";
+       s << "\tsType = " << value.sType << '\n';
+       s << "\tpNext = " << value.pNext << '\n';
+       s << "\tpCreateInfo = " << value.pCreateInfo << '\n';
+       s << "\tplaneAspect = " << value.planeAspect << '\n';
+       s << '}';
+       return s;
+}
+
 std::ostream& operator<< (std::ostream& s, const VkDebugReportCallbackCreateInfoEXT& value)
 {
        s << "VkDebugReportCallbackCreateInfoEXT = {\n";
index b88089c..9e6bd2d 100644 (file)
@@ -3297,6 +3297,21 @@ struct VkPhysicalDeviceMaintenance4PropertiesKHR
        VkDeviceSize    maxBufferSize;
 };
 
+struct VkDeviceBufferMemoryRequirementsKHR
+{
+       VkStructureType                         sType;
+       const void*                                     pNext;
+       const VkBufferCreateInfo*       pCreateInfo;
+};
+
+struct VkDeviceImageMemoryRequirementsKHR
+{
+       VkStructureType                         sType;
+       const void*                                     pNext;
+       const VkImageCreateInfo*        pCreateInfo;
+       VkImageAspectFlagBits           planeAspect;
+};
+
 struct VkDebugReportCallbackCreateInfoEXT
 {
        VkStructureType                                 sType;
index 39269fb..d04bc54 100644 (file)
@@ -197,9 +197,9 @@ virtual void                                cmdCopyBufferToImage2KHR                                                (VkCommandBuffer commandBuffer, co
 virtual void                           cmdCopyImageToBuffer2KHR                                                (VkCommandBuffer commandBuffer, const VkCopyImageToBufferInfo2KHR* pCopyImageToBufferInfo) const = 0;
 virtual void                           cmdBlitImage2KHR                                                                (VkCommandBuffer commandBuffer, const VkBlitImageInfo2KHR* pBlitImageInfo) const = 0;
 virtual void                           cmdResolveImage2KHR                                                             (VkCommandBuffer commandBuffer, const VkResolveImageInfo2KHR* pResolveImageInfo) const = 0;
-virtual void                           getBufferCreateInfoMemoryRequirementsKHR                (VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements) const = 0;
-virtual void                           getImageCreateInfoMemoryRequirementsKHR                 (VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements) const = 0;
-virtual void                           getImageCreateInfoSparseMemoryRequirementsKHR   (VkDevice device, const VkImageCreateInfo* pCreateInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) const = 0;
+virtual void                           getDeviceBufferMemoryRequirementsKHR                    (VkDevice device, const VkDeviceBufferMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements) const = 0;
+virtual void                           getDeviceImageMemoryRequirementsKHR                             (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, VkMemoryRequirements2* pMemoryRequirements) const = 0;
+virtual void                           getDeviceImageSparseMemoryRequirementsKHR               (VkDevice device, const VkDeviceImageMemoryRequirementsKHR* pInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) const = 0;
 virtual VkResult                       debugMarkerSetObjectTagEXT                                              (VkDevice device, const VkDebugMarkerObjectTagInfoEXT* pTagInfo) const = 0;
 virtual VkResult                       debugMarkerSetObjectNameEXT                                             (VkDevice device, const VkDebugMarkerObjectNameInfoEXT* pNameInfo) const = 0;
 virtual void                           cmdDebugMarkerBeginEXT                                                  (VkCommandBuffer commandBuffer, const VkDebugMarkerMarkerInfoEXT* pMarkerInfo) const = 0;
index 75cc57d..4bc8635 100644 (file)
@@ -1759,6 +1759,8 @@ typedef enum VkStructureType {
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT = 1000392001,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR = 1000413000,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR = 1000413001,
+    VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR = 1000413002,
+    VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR = 1000413003,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES,
     VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT,
@@ -9453,24 +9455,37 @@ typedef struct VkPhysicalDeviceMaintenance4PropertiesKHR {
     VkDeviceSize       maxBufferSize;
 } VkPhysicalDeviceMaintenance4PropertiesKHR;
 
-typedef void (VKAPI_PTR *PFN_vkGetBufferCreateInfoMemoryRequirementsKHR)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef void (VKAPI_PTR *PFN_vkGetImageCreateInfoMemoryRequirementsKHR)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef void (VKAPI_PTR *PFN_vkGetImageCreateInfoSparseMemoryRequirementsKHR)(VkDevice device, const VkImageCreateInfo* pCreateInfo, deUint32* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements);
+typedef struct VkDeviceBufferMemoryRequirementsKHR {
+    VkStructureType                       sType;
+    const void*                           pNext;
+    const VkBufferCreateInfo*             pCreateInfo;
+} VkDeviceBufferMemoryRequirementsKHR;
+
+typedef struct VkDeviceImageMemoryRequirementsKHR {
+    VkStructureType                       sType;
+    const void*                           pNext;
+    const VkImageCreateInfo*              pCreateInfo;
+    VkImageAspectFlagBits                 planeAspect;
+} VkDeviceImageMemoryRequirementsKHR;
+
+typedef void (VKAPI_PTR *PFN_vkGetDeviceBufferMemoryRequirementsKHR)(VkDevice device, const VkDeviceBufferMemoryRequirementsKHR *pInfo, VkMemoryRequirements2 *pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceImageMemoryRequirementsKHR)(VkDevice device, const VkDeviceImageMemoryRequirementsKHR *pInfo, VkMemoryRequirements2 *pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceImageSparseMemoryRequirementsKHR)(VkDevice device, const VkDeviceImageMemoryRequirementsKHR *pInfo, deUint32 *pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 *pSparseMemoryRequirements);
 
 #ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetBufferCreateInfoMemoryRequirementsKHR(
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceBufferMemoryRequirementsKHR(
     VkDevice                                    device,
-    const VkBufferCreateInfo*                   pCreateInfo,
+    const VkDeviceBufferMemoryRequirementsKHR* pInfo,
     VkMemoryRequirements2*                      pMemoryRequirements);
 
-VKAPI_ATTR void VKAPI_CALL vkGetImageCreateInfoMemoryRequirementsKHR(
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageMemoryRequirementsKHR(
     VkDevice                                    device,
-    const VkImageCreateInfo*                    pCreateInfo,
+    const VkDeviceImageMemoryRequirementsKHR* pInfo,
     VkMemoryRequirements2*                      pMemoryRequirements);
 
-VKAPI_ATTR void VKAPI_CALL vkGetImageCreateInfoSparseMemoryRequirementsKHR(
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSparseMemoryRequirementsKHR(
     VkDevice                                    device,
-    const VkImageCreateInfo*                    pCreateInfo,
+    const VkDeviceImageMemoryRequirementsKHR* pInfo,
     deUint32*                                   pSparseMemoryRequirementCount,
     VkSparseImageMemoryRequirements2*           pSparseMemoryRequirements);
 #endif
index d9a13cc..90faf20 100644 (file)
@@ -855,6 +855,8 @@ typedef enum VkStructureType {
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT = 1000392001,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR = 1000413000,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR = 1000413001,
+    VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR = 1000413002,
+    VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR = 1000413003,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES,
     VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES,
     VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT,
@@ -8549,24 +8551,37 @@ typedef struct VkPhysicalDeviceMaintenance4PropertiesKHR {
     VkDeviceSize       maxBufferSize;
 } VkPhysicalDeviceMaintenance4PropertiesKHR;
 
-typedef void (VKAPI_PTR *PFN_vkGetBufferCreateInfoMemoryRequirementsKHR)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef void (VKAPI_PTR *PFN_vkGetImageCreateInfoMemoryRequirementsKHR)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkMemoryRequirements2* pMemoryRequirements);
-typedef void (VKAPI_PTR *PFN_vkGetImageCreateInfoSparseMemoryRequirementsKHR)(VkDevice device, const VkImageCreateInfo* pCreateInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2* pSparseMemoryRequirements);
+typedef struct VkDeviceBufferMemoryRequirementsKHR {
+    VkStructureType                       sType;
+    const void*                           pNext;
+    const VkBufferCreateInfo*             pCreateInfo;
+} VkDeviceBufferMemoryRequirementsKHR;
+
+typedef struct VkDeviceImageMemoryRequirementsKHR {
+    VkStructureType                       sType;
+    const void*                           pNext;
+    const VkImageCreateInfo*              pCreateInfo;
+    VkImageAspectFlagBits                 planeAspect;
+} VkDeviceImageMemoryRequirementsKHR;
+
+typedef void (VKAPI_PTR *PFN_vkGetDeviceBufferMemoryRequirementsKHR)(VkDevice device, const VkDeviceBufferMemoryRequirementsKHR *pInfo, VkMemoryRequirements2 *pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceImageMemoryRequirementsKHR)(VkDevice device, const VkDeviceImageMemoryRequirementsKHR *pInfo, VkMemoryRequirements2 *pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceImageSparseMemoryRequirementsKHR)(VkDevice device, const VkDeviceImageMemoryRequirementsKHR *pInfo, uint32_t *pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 *pSparseMemoryRequirements);
 
 #ifndef VK_NO_PROTOTYPES
-VKAPI_ATTR void VKAPI_CALL vkGetBufferCreateInfoMemoryRequirementsKHR(
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceBufferMemoryRequirementsKHR(
     VkDevice                                    device,
-    const VkBufferCreateInfo*                   pCreateInfo,
+    const VkDeviceBufferMemoryRequirementsKHR* pInfo,
     VkMemoryRequirements2*                      pMemoryRequirements);
 
-VKAPI_ATTR void VKAPI_CALL vkGetImageCreateInfoMemoryRequirementsKHR(
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageMemoryRequirementsKHR(
     VkDevice                                    device,
-    const VkImageCreateInfo*                    pCreateInfo,
+    const VkDeviceImageMemoryRequirementsKHR* pInfo,
     VkMemoryRequirements2*                      pMemoryRequirements);
 
-VKAPI_ATTR void VKAPI_CALL vkGetImageCreateInfoSparseMemoryRequirementsKHR(
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceImageSparseMemoryRequirementsKHR(
     VkDevice                                    device,
-    const VkImageCreateInfo*                    pCreateInfo,
+    const VkDeviceImageMemoryRequirementsKHR* pInfo,
     uint32_t*                                   pSparseMemoryRequirementCount,
     VkSparseImageMemoryRequirements2*           pSparseMemoryRequirements);
 #endif