Commit 789fc625 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

winevulkan: Generate conversions only for autogenerated thunks.

parent 00e50233
......@@ -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)
......
......@@ -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;
......
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