From cf03851cc80426e3f8f7cb05b92b6ed72e4a717b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 Feb 2016 05:35:48 +0100 Subject: [PATCH] Add vkGetDeviceQueue funcptr --- gfx/common/vulkan_common.c | 3 ++- gfx/common/vulkan_common.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index 411ab1810a..b138de5da7 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -1036,6 +1036,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk, VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, GetPhysicalDeviceMemoryProperties); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, GetPhysicalDeviceQueueFamilyProperties); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateDevice); + VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, GetDeviceQueue); if (vk->fp.vkEnumeratePhysicalDevices(vk->context.instance, &gpu_count, NULL) != VK_SUCCESS) @@ -1112,7 +1113,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk, NULL, &vk->context.device) != VK_SUCCESS) return false; - vkGetDeviceQueue(vk->context.device, + vk->fp.vkGetDeviceQueue(vk->context.device, vk->context.graphics_queue_index, 0, &vk->context.queue); VK_GET_INSTANCE_PROC_ADDR(vk, diff --git a/gfx/common/vulkan_common.h b/gfx/common/vulkan_common.h index 4f5b8a30f9..7ff625e0ac 100644 --- a/gfx/common/vulkan_common.h +++ b/gfx/common/vulkan_common.h @@ -160,6 +160,7 @@ typedef struct gfx_ctx_vulkan_data struct { + PFN_vkGetDeviceQueue vkGetDeviceQueue; PFN_vkCreateInstance vkCreateInstance; PFN_vkEnumeratePhysicalDevices vkEnumeratePhysicalDevices; PFN_vkGetPhysicalDeviceProperties vkGetPhysicalDeviceProperties;