From d00ae6b66bd44d8ff2a95013afff6fa9bce3fb5a Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 27 Jun 2016 23:43:26 +0200 Subject: [PATCH] Vulkan: Create command pool for correct queue family. --- cores/libretro-test-vulkan-async-compute/libretro-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/libretro-test-vulkan-async-compute/libretro-test.c b/cores/libretro-test-vulkan-async-compute/libretro-test.c index ce4bbb5b3a..2798166083 100644 --- a/cores/libretro-test-vulkan-async-compute/libretro-test.c +++ b/cores/libretro-test-vulkan-async-compute/libretro-test.c @@ -416,7 +416,8 @@ static void init_command(void) VkCommandPoolCreateInfo pool_info = { VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO }; VkCommandBufferAllocateInfo info = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO }; - pool_info.queueFamilyIndex = vulkan->queue_index; + pool_info.queueFamilyIndex = async_queue != VK_NULL_HANDLE ? + async_queue_index : vulkan->queue_index; pool_info.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; for (unsigned i = 0; i < vk.num_swapchain_images; i++)