vkr: fix some misplaced dispatches

vkEnumerateDeviceExtensionProperties and
vkEnumerateDeviceLayerProperties should be physical device commands.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
macos/master
Chia-I Wu 3 years ago
parent 9d946bf3b2
commit dce3ea0701
  1. 7
      src/venus/vkr_device.c

@ -1214,6 +1214,10 @@ vkr_context_init_physical_device_dispatch(struct vkr_context *ctx)
vkr_dispatch_vkEnumeratePhysicalDevices; vkr_dispatch_vkEnumeratePhysicalDevices;
dispatch->dispatch_vkEnumeratePhysicalDeviceGroups = dispatch->dispatch_vkEnumeratePhysicalDeviceGroups =
vkr_dispatch_vkEnumeratePhysicalDeviceGroups; vkr_dispatch_vkEnumeratePhysicalDeviceGroups;
dispatch->dispatch_vkEnumerateDeviceExtensionProperties =
vkr_dispatch_vkEnumerateDeviceExtensionProperties;
dispatch->dispatch_vkEnumerateDeviceLayerProperties = NULL;
dispatch->dispatch_vkGetPhysicalDeviceFeatures = dispatch->dispatch_vkGetPhysicalDeviceFeatures =
vkr_dispatch_vkGetPhysicalDeviceFeatures; vkr_dispatch_vkGetPhysicalDeviceFeatures;
dispatch->dispatch_vkGetPhysicalDeviceProperties = dispatch->dispatch_vkGetPhysicalDeviceProperties =
@ -1257,9 +1261,6 @@ vkr_context_init_device_dispatch(struct vkr_context *ctx)
{ {
struct vn_dispatch_context *dispatch = &ctx->dispatch; struct vn_dispatch_context *dispatch = &ctx->dispatch;
dispatch->dispatch_vkEnumerateDeviceExtensionProperties =
vkr_dispatch_vkEnumerateDeviceExtensionProperties;
dispatch->dispatch_vkEnumerateDeviceLayerProperties = NULL;
dispatch->dispatch_vkCreateDevice = vkr_dispatch_vkCreateDevice; dispatch->dispatch_vkCreateDevice = vkr_dispatch_vkCreateDevice;
dispatch->dispatch_vkDestroyDevice = vkr_dispatch_vkDestroyDevice; dispatch->dispatch_vkDestroyDevice = vkr_dispatch_vkDestroyDevice;
dispatch->dispatch_vkGetDeviceProcAddr = NULL; dispatch->dispatch_vkGetDeviceProcAddr = NULL;

Loading…
Cancel
Save