Commit 04576c15 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winevulkan: Skip unsupported functions in a few more places.

parent 692625a3
...@@ -2292,7 +2292,7 @@ class VkGenerator(object): ...@@ -2292,7 +2292,7 @@ class VkGenerator(object):
self.struct_chain_conversions = [] self.struct_chain_conversions = []
self.host_structs = [] self.host_structs = []
for func in self.registry.funcs.values(): for func in self.registry.funcs.values():
if not func.is_required(): if not func.needs_exposing():
continue continue
conversions = func.get_conversions() conversions = func.get_conversions()
...@@ -2517,7 +2517,7 @@ class VkGenerator(object): ...@@ -2517,7 +2517,7 @@ class VkGenerator(object):
f.write("/* For use by vkDevice and children */\n") f.write("/* For use by vkDevice and children */\n")
f.write("struct vulkan_device_funcs\n{\n") f.write("struct vulkan_device_funcs\n{\n")
for vk_func in self.registry.device_funcs: for vk_func in self.registry.device_funcs:
if not vk_func.is_required(): if not vk_func.needs_exposing():
continue continue
if not vk_func.needs_dispatch(): if not vk_func.needs_dispatch():
...@@ -2530,7 +2530,7 @@ class VkGenerator(object): ...@@ -2530,7 +2530,7 @@ class VkGenerator(object):
f.write("/* For use by vkInstance and children */\n") f.write("/* For use by vkInstance and children */\n")
f.write("struct vulkan_instance_funcs\n{\n") f.write("struct vulkan_instance_funcs\n{\n")
for vk_func in self.registry.instance_funcs + self.registry.phys_dev_funcs: for vk_func in self.registry.instance_funcs + self.registry.phys_dev_funcs:
if not vk_func.is_required(): if not vk_func.needs_exposing():
continue continue
if not vk_func.needs_dispatch(): if not vk_func.needs_dispatch():
...@@ -2543,7 +2543,7 @@ class VkGenerator(object): ...@@ -2543,7 +2543,7 @@ class VkGenerator(object):
f.write("#define ALL_VK_DEVICE_FUNCS() \\\n") f.write("#define ALL_VK_DEVICE_FUNCS() \\\n")
first = True first = True
for vk_func in self.registry.device_funcs: for vk_func in self.registry.device_funcs:
if not vk_func.is_required(): if not vk_func.needs_exposing():
continue continue
if not vk_func.needs_dispatch(): if not vk_func.needs_dispatch():
...@@ -2560,7 +2560,7 @@ class VkGenerator(object): ...@@ -2560,7 +2560,7 @@ class VkGenerator(object):
f.write("#define ALL_VK_INSTANCE_FUNCS() \\\n") f.write("#define ALL_VK_INSTANCE_FUNCS() \\\n")
first = True first = True
for vk_func in self.registry.instance_funcs + self.registry.phys_dev_funcs: for vk_func in self.registry.instance_funcs + self.registry.phys_dev_funcs:
if not vk_func.is_required(): if not vk_func.needs_exposing():
continue continue
if not vk_func.needs_dispatch(): if not vk_func.needs_dispatch():
......
...@@ -2152,18 +2152,6 @@ static inline void convert_VkImageViewHandleInfoNVX_win32_to_host(const VkImageV ...@@ -2152,18 +2152,6 @@ static inline void convert_VkImageViewHandleInfoNVX_win32_to_host(const VkImageV
#endif /* USE_STRUCT_CONVERSION */ #endif /* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION) #if defined(USE_STRUCT_CONVERSION)
static inline void convert_VkMemoryGetWin32HandleInfoKHR_win32_to_host(const VkMemoryGetWin32HandleInfoKHR *in, VkMemoryGetWin32HandleInfoKHR_host *out)
{
if (!in) return;
out->sType = in->sType;
out->pNext = in->pNext;
out->memory = in->memory;
out->handleType = in->handleType;
}
#endif /* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static inline void convert_VkMicromapBuildSizesInfoEXT_win32_to_host(const VkMicromapBuildSizesInfoEXT *in, VkMicromapBuildSizesInfoEXT_host *out) static inline void convert_VkMicromapBuildSizesInfoEXT_win32_to_host(const VkMicromapBuildSizesInfoEXT *in, VkMicromapBuildSizesInfoEXT_host *out)
{ {
if (!in) return; if (!in) return;
......
...@@ -1410,18 +1410,6 @@ typedef VkImageViewHandleInfoNVX VkImageViewHandleInfoNVX_host; ...@@ -1410,18 +1410,6 @@ typedef VkImageViewHandleInfoNVX VkImageViewHandleInfoNVX_host;
#endif #endif
#if defined(USE_STRUCT_CONVERSION) #if defined(USE_STRUCT_CONVERSION)
typedef struct VkMemoryGetWin32HandleInfoKHR_host
{
VkStructureType sType;
const void *pNext;
VkDeviceMemory memory;
VkExternalMemoryHandleTypeFlagBits handleType;
} VkMemoryGetWin32HandleInfoKHR_host;
#else
typedef VkMemoryGetWin32HandleInfoKHR VkMemoryGetWin32HandleInfoKHR_host;
#endif
#if defined(USE_STRUCT_CONVERSION)
typedef struct VkMicromapBuildSizesInfoEXT_host typedef struct VkMicromapBuildSizesInfoEXT_host
{ {
VkStructureType sType; VkStructureType sType;
...@@ -2308,8 +2296,6 @@ struct vulkan_device_funcs ...@@ -2308,8 +2296,6 @@ struct vulkan_device_funcs
VkResult (*p_vkGetImageViewAddressNVX)(VkDevice, VkImageView, VkImageViewAddressPropertiesNVX_host *); VkResult (*p_vkGetImageViewAddressNVX)(VkDevice, VkImageView, VkImageViewAddressPropertiesNVX_host *);
uint32_t (*p_vkGetImageViewHandleNVX)(VkDevice, const VkImageViewHandleInfoNVX_host *); uint32_t (*p_vkGetImageViewHandleNVX)(VkDevice, const VkImageViewHandleInfoNVX_host *);
VkResult (*p_vkGetMemoryHostPointerPropertiesEXT)(VkDevice, VkExternalMemoryHandleTypeFlagBits, const void *, VkMemoryHostPointerPropertiesEXT *); VkResult (*p_vkGetMemoryHostPointerPropertiesEXT)(VkDevice, VkExternalMemoryHandleTypeFlagBits, const void *, VkMemoryHostPointerPropertiesEXT *);
VkResult (*p_vkGetMemoryWin32HandleKHR)(VkDevice, const VkMemoryGetWin32HandleInfoKHR_host *, HANDLE *);
VkResult (*p_vkGetMemoryWin32HandlePropertiesKHR)(VkDevice, VkExternalMemoryHandleTypeFlagBits, HANDLE, VkMemoryWin32HandlePropertiesKHR *);
void (*p_vkGetMicromapBuildSizesEXT)(VkDevice, VkAccelerationStructureBuildTypeKHR, const VkMicromapBuildInfoEXT_host *, VkMicromapBuildSizesInfoEXT_host *); void (*p_vkGetMicromapBuildSizesEXT)(VkDevice, VkAccelerationStructureBuildTypeKHR, const VkMicromapBuildInfoEXT_host *, VkMicromapBuildSizesInfoEXT_host *);
VkResult (*p_vkGetPerformanceParameterINTEL)(VkDevice, VkPerformanceParameterTypeINTEL, VkPerformanceValueINTEL *); VkResult (*p_vkGetPerformanceParameterINTEL)(VkDevice, VkPerformanceParameterTypeINTEL, VkPerformanceValueINTEL *);
VkResult (*p_vkGetPipelineCacheData)(VkDevice, VkPipelineCache, size_t *, void *); VkResult (*p_vkGetPipelineCacheData)(VkDevice, VkPipelineCache, size_t *, void *);
...@@ -2823,8 +2809,6 @@ struct vulkan_instance_funcs ...@@ -2823,8 +2809,6 @@ struct vulkan_instance_funcs
USE_VK_FUNC(vkGetImageViewAddressNVX) \ USE_VK_FUNC(vkGetImageViewAddressNVX) \
USE_VK_FUNC(vkGetImageViewHandleNVX) \ USE_VK_FUNC(vkGetImageViewHandleNVX) \
USE_VK_FUNC(vkGetMemoryHostPointerPropertiesEXT) \ USE_VK_FUNC(vkGetMemoryHostPointerPropertiesEXT) \
USE_VK_FUNC(vkGetMemoryWin32HandleKHR) \
USE_VK_FUNC(vkGetMemoryWin32HandlePropertiesKHR) \
USE_VK_FUNC(vkGetMicromapBuildSizesEXT) \ USE_VK_FUNC(vkGetMicromapBuildSizesEXT) \
USE_VK_FUNC(vkGetPerformanceParameterINTEL) \ USE_VK_FUNC(vkGetPerformanceParameterINTEL) \
USE_VK_FUNC(vkGetPipelineCacheData) \ USE_VK_FUNC(vkGetPipelineCacheData) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment