winevulkan: Generate conversions only for autogenerated thunks.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Roderick Colenbrander <thunderbird2k@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-03-24 14:28:00 +01:00 committed by Alexandre Julliard
parent 00e50233d7
commit 789fc62574
2 changed files with 2 additions and 14 deletions

View File

@ -1710,9 +1710,8 @@ class VkGenerator(object):
conversions = func.get_conversions()
for conv in conversions:
# Pull in any conversions for vulkan_thunks.c. Driver conversions we
# handle manually in vulkan.c if needed.
if not func.is_driver_func():
# Pull in any conversions for vulkan_thunks.c.
if func.needs_thunk():
# Append if we don't already have this conversion.
if not any(c == conv for c in self.conversions):
self.conversions.append(conv)

View File

@ -12,17 +12,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(vulkan);
#if defined(USE_STRUCT_CONVERSION)
static inline void convert_VkCommandBufferAllocateInfo_win_to_host(const VkCommandBufferAllocateInfo *in, VkCommandBufferAllocateInfo_host *out)
{
if (!in) return;
out->sType = in->sType;
out->pNext = in->pNext;
out->commandPool = in->commandPool;
out->level = in->level;
out->commandBufferCount = in->commandBufferCount;
}
static inline void convert_VkDescriptorSetAllocateInfo_win_to_host(const VkDescriptorSetAllocateInfo *in, VkDescriptorSetAllocateInfo_host *out)
{
if (!in) return;