[PATCH 1/3] winevulkan: Get rid of unused "phys_dev" field from VkDevice_T.
Józef Kucia
jkucia at codeweavers.com
Mon Apr 9 03:25:56 CDT 2018
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/winevulkan/vulkan.c | 2 --
dlls/winevulkan/vulkan_private.h | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/winevulkan/vulkan.c b/dlls/winevulkan/vulkan.c
index c507e37abc02..8f674837ea68 100644
--- a/dlls/winevulkan/vulkan.c
+++ b/dlls/winevulkan/vulkan.c
@@ -532,8 +532,6 @@ VkResult WINAPI wine_vkCreateDevice(VkPhysicalDevice phys_dev,
return res;
}
- object->phys_dev = phys_dev;
-
/* Just load all function pointers we are aware off. The loader takes care of filtering.
* We use vkGetDeviceProcAddr as opposed to vkGetInstanceProcAddr for efficiency reasons
* as functions pass through fewer dispatch tables within the loader.
diff --git a/dlls/winevulkan/vulkan_private.h b/dlls/winevulkan/vulkan_private.h
index ce13b1a9b29d..86b8e3111b4a 100644
--- a/dlls/winevulkan/vulkan_private.h
+++ b/dlls/winevulkan/vulkan_private.h
@@ -64,7 +64,7 @@ struct wine_vk_base
struct VkCommandBuffer_T
{
struct wine_vk_base base;
- VkDevice device; /* parent */
+ struct VkDevice_T *device; /* parent */
VkCommandBuffer command_buffer; /* native command buffer */
};
@@ -72,7 +72,6 @@ struct VkDevice_T
{
struct wine_vk_base base;
struct vulkan_device_funcs funcs;
- struct VkPhysicalDevice_T *phys_dev; /* parent */
uint32_t max_queue_families;
struct VkQueue_T **queues;
@@ -112,7 +111,7 @@ struct VkPhysicalDevice_T
struct VkQueue_T
{
struct wine_vk_base base;
- VkDevice device; /* parent */
+ struct VkDevice_T *device; /* parent */
VkQueue queue; /* native queue */
};
--
2.16.1
More information about the wine-devel
mailing list