=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: winevulkan: Mark explicitly if driver function is needed in dispatch tables.

Alexandre Julliard julliard at winehq.org
Mon Mar 26 16:01:20 CDT 2018


Module: wine
Branch: master
Commit: f0c3f9e4948d96a789cf0496bda9e22da7261bd0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f0c3f9e4948d96a789cf0496bda9e22da7261bd0

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Sat Mar 24 14:28:02 2018 +0100

winevulkan: Mark explicitly if driver function is needed in dispatch tables.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Roderick Colenbrander <thunderbird2k at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winevulkan/make_vulkan | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/dlls/winevulkan/make_vulkan b/dlls/winevulkan/make_vulkan
index f214ce1..146b485 100755
--- a/dlls/winevulkan/make_vulkan
+++ b/dlls/winevulkan/make_vulkan
@@ -127,7 +127,7 @@ FUNCTION_OVERRIDES = {
 
     # Instance functions
     "vkCreateDevice" : {"dispatch" : True, "driver" : False, "thunk" : False},
-    "vkDestroyInstance" : {"dispatch" : True, "driver" : True, "thunk" : False },
+    "vkDestroyInstance" : {"dispatch" : False, "driver" : True, "thunk" : False },
     "vkEnumerateDeviceExtensionProperties" : {"dispatch" : True, "driver" : False, "thunk" : False},
     "vkEnumeratePhysicalDevices" : {"dispatch" : True, "driver" : False, "thunk" : False},
 
@@ -136,27 +136,27 @@ FUNCTION_OVERRIDES = {
     "vkCmdExecuteCommands" : {"dispatch" : True, "driver" : False, "thunk" : False},
     "vkDestroyDevice" : {"dispatch" : True, "driver" : False, "thunk" : False},
     "vkFreeCommandBuffers" : {"dispatch" : True, "driver" : False, "thunk" : False},
-    "vkGetDeviceProcAddr" : {"dispatch" : True, "driver" : True, "thunk" : False},
+    "vkGetDeviceProcAddr" : {"dispatch" : False, "driver" : True, "thunk" : False},
     "vkGetDeviceQueue" : {"dispatch": True, "driver" : False, "thunk" : False},
     "vkQueueSubmit" : {"dispatch": True, "driver" : False, "thunk" : False},
 
     # VK_KHR_surface
-    "vkDestroySurfaceKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkGetPhysicalDeviceSurfaceSupportKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkGetPhysicalDeviceSurfaceCapabilitiesKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkGetPhysicalDeviceSurfaceFormatsKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkGetPhysicalDeviceSurfacePresentModesKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
+    "vkDestroySurfaceKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkGetPhysicalDeviceSurfaceSupportKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkGetPhysicalDeviceSurfaceCapabilitiesKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkGetPhysicalDeviceSurfaceFormatsKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkGetPhysicalDeviceSurfacePresentModesKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
 
     # VK_KHR_win32_surface
-    "vkCreateWin32SurfaceKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkGetPhysicalDeviceWin32PresentationSupportKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
+    "vkCreateWin32SurfaceKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkGetPhysicalDeviceWin32PresentationSupportKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
 
     # VK_KHR_swapchain
-    "vkAcquireNextImageKHR": {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkCreateSwapchainKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkDestroySwapchainKHR" : {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkGetSwapchainImagesKHR": {"dispatch" : True, "driver" : True, "thunk" : False},
-    "vkQueuePresentKHR": {"dispatch" : True, "driver" : True, "thunk" : False},
+    "vkAcquireNextImageKHR": {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkCreateSwapchainKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkDestroySwapchainKHR" : {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkGetSwapchainImagesKHR": {"dispatch" : False, "driver" : True, "thunk" : False},
+    "vkQueuePresentKHR": {"dispatch" : False, "driver" : True, "thunk" : False},
 }
 
 
@@ -1876,7 +1876,7 @@ class VkGenerator(object):
             if not vk_func.is_required():
                 continue
 
-            if not vk_func.needs_dispatch() or vk_func.is_driver_func():
+            if not vk_func.needs_dispatch():
                 LOGGER.debug("skipping {0} in vulkan_device_funcs".format(vk_func.name))
                 continue
 
@@ -1896,7 +1896,7 @@ class VkGenerator(object):
             if not vk_func.is_required():
                 continue
 
-            if not vk_func.needs_dispatch() or vk_func.is_driver_func():
+            if not vk_func.needs_dispatch():
                 LOGGER.debug("skipping {0} in vulkan_instance_funcs".format(vk_func.name))
                 continue
 
@@ -1916,7 +1916,7 @@ class VkGenerator(object):
             if not vk_func.is_required():
                 continue
 
-            if not vk_func.needs_dispatch() or vk_func.is_driver_func():
+            if not vk_func.needs_dispatch():
                 LOGGER.debug("skipping {0} in ALL_VK_DEVICE_FUNCS".format(vk_func.name))
                 continue
 
@@ -1933,7 +1933,7 @@ class VkGenerator(object):
             if not vk_func.is_required():
                 continue
 
-            if not vk_func.needs_dispatch() or vk_func.is_driver_func():
+            if not vk_func.needs_dispatch():
                 LOGGER.debug("skipping {0} in ALL_VK_INSTANCE_FUNCS".format(vk_func.name))
                 continue
 




More information about the wine-cvs mailing list